/* Gamemode announcement wrapper */
.gamemode-announcement-wrapper {
    position: relative;
    z-index: 5;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.gamemode-announcement-wrapper.hidden {
    display: none;
}

/* Gamemode announcement card - inspired by mod-card */
.gamemode-announcement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.gamemode-announcement-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Thumbnail */
.gamemode-thumbnail-wrapper {
    width: 200px;
    background: transparent;
    overflow: visible;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    position: relative;
    padding: 12px;
}

.gamemode-thumbnail-bg {
    display: none;
}

.gamemode-thumbnail {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gamemode-announcement-card:hover .gamemode-thumbnail {
    transform: scale(1.05);
}

/* Content */
.gamemode-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.gamemode-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gamemode-subtitle {
    font-size: 0.7rem;
    color: #60a5fa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gamemode-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.gamemode-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.35;
}

/* Countdown Section */
.gamemode-countdown-section {
    margin-top: auto;
}

.gamemode-countdown-label {
    font-size: 0.65rem;
    color: #fbbf24;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.gamemode-countdown {
    display: flex;
    gap: 4px;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    justify-content: center;
}

.countdown-item {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.countdown-item:not(:last-child)::after {
    content: ':';
    color: rgba(255, 255, 255, 0.4);
    margin-left: 2px;
    font-weight: 700;
}

.countdown-value {
    font-size: 0.95rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    font-weight: 500;
}

.gamemode-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-weight: 500;
    margin-top: 4px;
}

/* Play button when countdown ends */
.gamemode-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(96, 165, 250, 0.3);
    width: 100%;
}

.gamemode-play-button:hover {
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-1px);
}

.gamemode-play-button svg {
    width: 14px;
    height: 14px;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .gamemode-announcement-card {
        flex-direction: column;
    }
    
    .gamemode-thumbnail-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .gamemode-content {
        padding: 12px 14px;
    }
    
    .gamemode-title {
        font-size: 1rem;
    }
    
    .gamemode-description {
        font-size: 0.75rem;
    }
    
    .gamemode-countdown {
        gap: 5px;
    }
    
    .countdown-item {
        min-width: 42px;
        padding: 5px 6px;
    }
    
    .countdown-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 38px;
        padding: 4px 5px;
    }
    
    .countdown-value {
        font-size: 1rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }
}
