/*
* homepage.css
* Solo estructura de la portada (grid de tablones, stats, intro).
* Los colores van en cada hoja de tema, igual que options-panel.css.
*/

.home-logo {
    display: block;
    margin: 0 auto 4px;
    opacity: 0.9;
}

.home-box {
    max-width: 640px;
    margin: 1.6em auto 0;
    padding: 1em 1.4em;
    box-sizing: border-box;
}

.home-intro {
    text-align: center;
    font-size: 0.95em;
    line-height: 1.6;
}

.home-rules {
    text-align: left;
    font-size: 0.9em;
    line-height: 1.65;
}

.home-rules h2 {
    margin: 0 0 0.6em;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-rules ol {
    margin: 0;
    padding-left: 1.3em;
}

.home-rules li {
    margin-bottom: 0.5em;
}

.home-rules li:last-child {
    margin-bottom: 0;
}

.home-rule-cite {
    font-size: 0.9em;
    opacity: 0.8;
}

.home-rule-highlight {
    color: #b667f2;
    font-weight: 700;
}

.home-faq {
    margin: 0;
}

.home-faq dt {
    font-weight: 700;
    margin: 0 0 0.35em;
    scroll-margin-top: 80px;
}

.home-faq dd {
    margin: 0 0 1.3em;
    line-height: 1.6;
}

.home-faq dd:last-of-type {
    margin-bottom: 0;
}

.home-faq code {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.1em 0.4em;
    border-radius: 2px;
    word-break: break-all;
}

.home-faq dd ul {
    margin: 0.5em 0 0.6em;
    padding-left: 1.3em;
}

.home-faq dd li {
    margin-bottom: 0.35em;
}

.home-nav {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 1em 0 0;
}

.home-nav-link {
    padding: 0.45em 1.4em;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9em;
}

.home-stats {
    display: flex;
    justify-content: center;
    gap: 1.6em;
    flex-wrap: wrap;
    margin: 1.6em 0;
    font-size: 0.85em;
    text-align: center;
}

.home-boards {
    list-style: none;
    margin: 1.6em 0;
    padding: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.home-boards li {
    padding: 5px 0;
    font-size: 0.92em;
    display: flex;
    gap: 0.5em;
    align-items: baseline;
    flex-wrap: wrap;
}

.home-board-uri {
    font-weight: bold;
    text-decoration: none !important;
    flex-shrink: 0;
}
.home-board-title {
    flex-shrink: 0;
}
.home-board-subtitle {
    opacity: 0.75;
    font-size: 0.9em;
}
.home-board-count {
    font-size: 0.78em;
    opacity: 0.55;
    margin-left: auto;
    flex-shrink: 0;
}

.home-section-title {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 2em 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid;
}

.home-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1.5em;
}
.home-image-item {
    position: relative;
    display: block;
    width: 90px;
    height: 90px;
    overflow: hidden;
}
.home-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-image-board {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    font-size: 0.65em;
    text-align: center;
    padding: 2px 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
}

.home-threads {
    list-style: none;
    margin: 0 0 1.5em;
    padding: 0;
}
.home-threads li {
    padding: 6px 0;
    font-size: 0.9em;
    display: flex;
    gap: 0.6em;
    align-items: baseline;
    flex-wrap: wrap;
}
.home-thread-board {
    font-weight: bold;
    flex-shrink: 0;
}
.home-thread-title {
    flex: 1;
    min-width: 120px;
}
.home-thread-replies {
    font-size: 0.8em;
    opacity: 0.6;
    flex-shrink: 0;
}

@media screen and (max-width: 700px) {
    .home-boards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .home-stats {
        gap: 1em;
        font-size: 0.78em;
    }
    .home-image-item {
        width: 72px;
        height: 72px;
    }
}
