/* Index page - Minecraft theme styling */
/* All structural/theme styles come from news.css (loaded above) */

/* Game Modes Grid - 2 column layout */
.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Stats Grid - matches step cards style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

/* Hide scrollbar */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Hide irrelevant feature list on game mode cards */
.game-modes-grid .card-features {
    display: none;
}

/* Make section labels visible against background image */
.section-label span {
    background: rgba(13, 17, 23, 0.95) !important;
    border-color: #d4a847 !important;
    box-shadow: 2px 2px 0 #3d2e0a, 0 0 15px rgba(0,0,0,0.9) !important;
}

.stat-card {
    background: #13171e;
    border: 3px solid #252d3a;
    box-shadow: 0 4px 0 #080c12, 2px 2px 0 #080c12;
    padding: 16px 12px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #d4a847;
    box-shadow: 0 8px 0 #080c12, 2px 2px 0 #080c12, 0 16px 40px rgba(0,0,0,0.5);
}

.stat-number {
    font-family: "Press Start 2P", monospace;
    font-size: 1.5rem;
    color: #d4a847;
    font-weight: 800;
    margin: 0 0 6px 0;
    text-shadow: 1px 1px 0 #3d2e0a;
}

.stat-name {
    font-size: 0.75rem;
    color: #7a8fa8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Feature Cards - restyle to match step cards */
.feature-card {
    background: #13171e;
    border: 3px solid #252d3a;
    box-shadow: 0 4px 0 #080c12, 2px 2px 0 #080c12;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #d4a847;
    box-shadow: 0 8px 0 #080c12, 2px 2px 0 #080c12, 0 16px 40px rgba(0,0,0,0.5);
}

.card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feature-card:hover .card-image-overlay {
    opacity: 1;
}

.card-image-overlay h4 {
    font-family: "Press Start 2P", monospace;
    font-size: 0.7rem;
    color: #d4a847;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 0 #3d2e0a;
    margin: 0;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.card-body p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #7a8fa8;
    margin: 0;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 6px 0;
    border-bottom: 1px solid #252d3a;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-feature-label {
    color: #5a6f8f;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.65rem;
}

.card-feature-value {
    color: #d4a847;
    font-weight: 600;
    font-size: 0.75rem;
}

.card-button {
    margin-top: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d4a847 0%, #8a6820 100%);
    border: 3px solid #8a6820;
    color: #0d1117;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
    box-shadow: 0 4px 0 #3d2e0a;
    transition: all 0.2s ease;
    font-family: "Montserrat", sans-serif;
}

.card-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e8c960 0%, #d4a847 100%);
    box-shadow: 0 6px 0 #3d2e0a;
    color: #0d1117;
}

.card-button:disabled,
.coming-soon-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Coming Soon card styling */
.feature-card.coming-soon {
    opacity: 0.7;
}

.coming-soon-image {
    background: linear-gradient(135deg, #0d1117 0%, #13171e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-coming-tag {
    font-family: "Press Start 2P", monospace;
    font-size: 0.5rem;
    color: #d4a847;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(212, 168, 71, 0.2);
    padding: 6px 10px;
    border: 1px solid #d4a847;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
