/**
 * Welten (World Hub) Styles
 * Dark-themed world selection page
 */

/* ── Page layout ────────────────────────────────────────────────── */
.welten-page {
    background-color: #0a1628;
    color: #c9d1d9;
    min-height: 100vh;
}

.welten-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.welten-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

.welten-hero .subtitle {
    font-size: 1.15rem;
    color: #8b949e;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── World cards ────────────────────────────────────────────────── */
.world-card {
    background: linear-gradient(145deg, #0d1f3c, #162d50);
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.world-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 100, 255, 0.18);
}

.world-card.world-card--ended {
    opacity: 0.55;
    filter: grayscale(0.4);
}

.world-card.world-card--ended:hover {
    transform: none;
    box-shadow: none;
}

.world-card.world-card--current {
    border-color: #58a6ff;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.15);
}

/* Card header */
.world-card__header {
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid #1e3a5f;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.world-card__title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.world-card__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.world-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f0f6fc;
    margin: 0;
}

.world-card__speed {
    font-size: 1.5rem;
    font-weight: 700;
    color: #58a6ff;
}

/* Card body */
.world-card__body {
    padding: 1.25rem 1.5rem;
    flex: 1 1 auto;
}

.world-card__desc {
    color: #8b949e;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    line-height: 1.55;
}

/* Stats grid */
.world-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.world-stats__item {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.world-stats__label {
    font-size: 0.78rem;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.world-stats__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f0f6fc;
}

/* Feature badges */
.world-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.world-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    line-height: 1;
}

.world-feature--on {
    background-color: rgba(25, 135, 84, 0.25);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.world-feature--off {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6e7681;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.world-feature__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.world-feature--on .world-feature__dot {
    background: #3fb950;
}

.world-feature--off .world-feature__dot {
    background: #6e7681;
}

/* Type badge */
.world-type-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
}

.world-type-badge--permanent {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.25);
}

.world-type-badge--saison {
    background: rgba(210, 153, 34, 0.15);
    color: #d2992a;
    border: 1px solid rgba(210, 153, 34, 0.25);
}

.world-type-badge--event {
    background: rgba(188, 63, 188, 0.15);
    color: #d278d2;
    border: 1px solid rgba(188, 63, 188, 0.25);
}

/* Current-world badge */
.world-current-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    background: rgba(63, 185, 80, 0.18);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.3);
}

/* Ended badge */
.world-ended-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.25);
}

/* Player count */
.world-players {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #8b949e;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.world-players__icon {
    font-size: 1rem;
    opacity: 0.7;
}

/* Season countdown */
.world-countdown {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.world-countdown__label {
    font-size: 0.78rem;
    color: #d2992a;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.world-countdown__timer {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

.world-countdown__bar {
    height: 6px;
    background: rgba(210, 153, 34, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.world-countdown__bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #d2992a, #e8b84a);
    transition: width 0.5s ease;
}

/* Start date */
.world-start-date {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.world-start-date__text {
    font-size: 0.9rem;
    color: #58a6ff;
    font-weight: 500;
}

/* Card footer */
.world-card__footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-world-enter {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-world-enter--active {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
}

.btn-world-enter--active:hover {
    background: linear-gradient(135deg, #2196f3, #1565c0);
    color: #fff;
    text-decoration: none;
}

.btn-world-enter--current {
    background: linear-gradient(135deg, #238636, #196c2e);
    color: #fff;
}

.btn-world-enter--current:hover {
    background: linear-gradient(135deg, #2ea043, #1f883d);
    color: #fff;
    text-decoration: none;
}

.btn-world-enter--disabled {
    background: rgba(108, 117, 125, 0.2);
    color: #6e7681;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-world-enter--outline {
    background: transparent;
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.4);
}

.btn-world-enter--outline:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    text-decoration: none;
}

.world-subdomain-link {
    text-align: center;
    margin-top: 0.5rem;
}

.world-subdomain-link a {
    color: #58a6ff;
    font-size: 0.82rem;
}

.world-subdomain-link a:hover {
    color: #79c0ff;
}

/* ── Season info section ────────────────────────────────────────── */
.welten-season-section {
    background: linear-gradient(145deg, #0d1f3c, #162d50);
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    padding: 2rem;
    margin-top: 3rem;
}

.welten-season-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

.welten-season-section p {
    color: #8b949e;
    line-height: 1.6;
}

.welten-season-section .season-feature {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(30, 58, 95, 0.5);
}

.welten-season-section .season-feature__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welten-season-section .season-feature__title {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.3rem;
}

.welten-season-section .season-feature__desc {
    font-size: 0.85rem;
    color: #8b949e;
}

/* ── Back link ──────────────────────────────────────────────────── */
.welten-back-link {
    text-align: center;
    padding: 2rem 0 3rem;
}

.welten-back-link a {
    color: #58a6ff;
    font-size: 1rem;
    text-decoration: none;
}

.welten-back-link a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .welten-hero h1 {
        font-size: 1.8rem;
    }

    .welten-hero .subtitle {
        font-size: 1rem;
    }

    .world-card__header {
        padding: 1rem 1.15rem;
    }

    .world-card__body {
        padding: 1rem 1.15rem;
    }

    .world-card__footer {
        padding: 0 1.15rem 1.15rem;
    }

    .world-stats {
        gap: 0.5rem;
    }

    .welten-season-section {
        padding: 1.25rem;
    }
}
