/* Hispachan Index Design */

/* Body Styling */
.hispachan-body {
    background-color: #ffffee;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* Main Header / Logo */
.main-header {
    text-align: center;
    padding: 20px 0 10px 0;
}

.logo-container {
    display: inline-block;
}

.logo-text {
    font-size: 72px;
    font-weight: bold;
    color: #c41e3a;
    letter-spacing: -2px;
    font-family: 'Impact', 'Arial Black', sans-serif;
}

.logo-ene {
    display: inline-block;
    background-color: #ffc107;
    color: #006400;
    font-size: 48px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

/* Description Box */
.description-box {
    background-color: #f5deb3;
    border: 1px solid #d2b48c;
    max-width: 900px;
    margin: 15px auto;
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.description-box em {
    font-style: italic;
}

.rules-link {
    color: #c41e3a;
    text-decoration: none;
}

.rules-link:hover {
    text-decoration: underline;
}

/* Main Container */
.main-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Boards Grid */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.board-column {
    display: flex;
    flex-direction: column;
}

.column-title {
    color: #800000;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-decoration: underline;
}

.sexy-title {
    margin-top: 20px;
}

.region-subtitle {
    color: #800000;
    font-size: 13px;
    font-weight: bold;
    margin: 10px 0 5px 0;
}

.board-link {
    color: #800000;
    text-decoration: none;
    font-size: 13px;
    margin: 2px 0;
    display: block;
}

.board-link:hover {
    text-decoration: underline;
}

.nsfw {
    color: #c41e3a;
    font-size: 11px;
}

/* Country Flags */
.flag {
    display: inline-block;
    width: 16px;
    height: 11px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.flag-es {
    background: linear-gradient(to bottom, #c60b1e 0%, #c60b1e 25%, #ffc400 25%, #ffc400 75%, #c60b1e 75%);
}

.flag-ar {
    background: linear-gradient(to bottom, #74acdf 0%, #74acdf 33%, #fff 33%, #fff 66%, #74acdf 66%);
}

.flag-cl {
    background: linear-gradient(to bottom, #fff 50%, #d52b1e 50%);
    position: relative;
}

.flag-co {
    background: linear-gradient(to bottom, #fcd116 0%, #fcd116 50%, #003893 50%, #003893 75%, #ce1126 75%);
}

.flag-mx {
    background: linear-gradient(to right, #006847 0%, #006847 33%, #fff 33%, #fff 66%, #ce1126 66%);
}

.flag-pe {
    background: linear-gradient(to right, #d91023 0%, #d91023 33%, #fff 33%, #fff 66%, #d91023 66%);
}

.flag-ve {
    background: linear-gradient(to bottom, #fcf000 0%, #fcf000 33%, #003da5 33%, #003da5 66%, #d52b1e 66%);
}

/* Twitter Button */
.twitter-btn {
    display: inline-block;
    background-color: #1da1f2;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    margin-top: 15px;
}

.twitter-btn:hover {
    background-color: #0d8ddb;
}

/* Statistics Section */
.stats-section {
    margin-top: 30px;
}

.stats-header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clock-icon {
    margin-right: 8px;
}

.posts-link {
    color: #800000;
    text-decoration: none;
    font-size: 13px;
}

.posts-link:hover {
    text-decoration: underline;
}

/* Stats Grid (3 columns) */
.stats-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
    padding: 15px 0;
}

/* Statistics Box (Left) */
.stats-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.stats-box-header {
    background-color: #4a7c3f;
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
}

.stats-box-content {
    padding: 15px;
}

.stat-item {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #2e7d32;
}

.stat-item strong {
    color: #1b5e20;
}

.stat-icon {
    margin-right: 5px;
}

.mascot-container {
    text-align: center;
    margin-top: 15px;
}

.mascot {
    max-width: 100px;
    max-height: 100px;
}

/* Posts Box (Center) */
.posts-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.posts-box-header {
    background-color: #c41e3a;
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
}

.posts-box-content {
    padding: 0;
}

.post-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.post-item:last-child {
    border-bottom: none;
}

.post-time {
    color: #999;
    min-width: 35px;
    margin-right: 10px;
}

.post-board {
    color: #c41e3a;
    font-weight: bold;
    margin-right: 10px;
    min-width: 50px;
}

.post-text {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Images Box (Right) */
.images-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.images-box-header {
    background-color: #c41e3a;
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
}

.images-box-content {
    padding: 10px;
}

.recent-image-link {
    display: block;
    margin-bottom: 10px;
}

.recent-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.placeholder-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.placeholder-img {
    width: 100%;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* Statistics Link Section */
.stats-link-section {
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

.stats-page-link {
    color: #333;
    text-decoration: underline;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .boards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 48px;
    }

    .logo-ene {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }
}