/* ============================================
   TEMPLE DES AVENTURIERS - Hub Immersif
   Réutilise les variables de book-theme.css
   ============================================ */

/* ====================
   FACADE DU TEMPLE (Hero Section)
   ==================== */
.temple-facade {
    text-align: center;
    margin-bottom: 2rem;
}

.temple-facade h1 {
    font-family: 'Cinzel', serif;
    color: var(--color-leather-dark);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.temple-facade .temple-subtitle {
    font-family: 'Crimson Text', serif;
    color: var(--color-ink-faded);
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 0;
}

.temple-facade .temple-divider {
    border: none;
    border-top: 2px solid var(--color-gold);
    width: 50%;
    margin: 1.5rem auto;
}

/* ====================
   IMAGE HERO PANORAMIQUE
   ==================== */
.temple-hero {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-hard);
    border: 2px solid var(--color-leather);
}

.temple-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback gradient when image is missing */
.temple-hero__fallback {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            var(--color-leather-dark) 0%,
            var(--color-leather) 30%,
            var(--color-leather-light) 50%,
            var(--color-leather) 70%,
            var(--color-leather-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.temple-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(61, 40, 23, 0.3) 0%,
        rgba(61, 40, 23, 0.1) 40%,
        rgba(61, 40, 23, 0.1) 60%,
        rgba(61, 40, 23, 0.4) 100%
    );
    pointer-events: none;
}

/* ====================
   GRILLE DES ARCHES (5 colonnes)
   ==================== */
.temple-archways {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.temple-archway {
    position: relative;
    background: linear-gradient(to bottom, #faf8f3, #f0ebe0);
    border: 2px solid var(--color-leather);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.temple-archway:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hard), 0 0 20px rgba(184, 151, 77, 0.3);
    border-color: var(--color-gold);
    color: inherit;
    text-decoration: none;
}

.temple-archway:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Active state for expanded archway */
.temple-archway--active {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-hard), 0 0 20px rgba(184, 151, 77, 0.4);
}

.temple-archway__image-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.temple-archway__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.temple-archway:hover .temple-archway__image {
    transform: scale(1.08);
}

/* Fallback gradient for missing images */
.temple-archway__image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-gold);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.temple-archway__image-fallback--avatars {
    background: linear-gradient(135deg, #5a4a3a 0%, var(--color-leather) 100%);
}
.temple-archway__image-fallback--spheres {
    background: linear-gradient(135deg, #2a3a5a 0%, #4a5a8a 100%);
}
.temple-archway__image-fallback--tavern {
    background: linear-gradient(135deg, #5a3a2a 0%, #8a5a3a 100%);
}
.temple-archway__image-fallback--market {
    background: linear-gradient(135deg, #4a4a2a 0%, #7a6a3a 100%);
}
.temple-archway__image-fallback--noticeboard {
    background: linear-gradient(135deg, #3a3a3a 0%, #6a5a4a 100%);
}

.temple-archway__body {
    padding: 1rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.temple-archway__icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    transition: transform var(--transition-medium);
}

.temple-archway:hover .temple-archway__icon {
    transform: scale(1.15);
}

.temple-archway__title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-leather-dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.temple-archway__subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 0.8rem;
    color: var(--color-ink-faded);
    line-height: 1.3;
}

/* ====================
   ARCHE VERROUILLÉE
   ==================== */
.temple-archway--locked {
    position: relative;
}

.temple-archway--locked .temple-archway__image-wrap {
    filter: grayscale(0.6) brightness(0.85);
}

.temple-archway--locked .temple-archway__icon {
    color: var(--color-ink-faded);
}

/* Diagonal hatching overlay */
.temple-archway--locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(74, 56, 41, 0.06) 8px,
        rgba(74, 56, 41, 0.06) 16px
    );
    pointer-events: none;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.temple-archway__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-leather) 0%, var(--color-leather-dark) 100%);
    color: var(--color-parchment-light);
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.5px;
}

/* ====================
   PANNEAU DE ZONE (Expandable)
   ==================== */
.temple-zone-panel {
    display: none;
    background: linear-gradient(to bottom, #faf8f3, #ffffff);
    border: 2px solid var(--color-leather);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    animation: zonePanelReveal 0.4s ease-out;
}

.temple-zone-panel--open {
    display: block;
}

@keyframes zonePanelReveal {
    from {
        opacity: 0;
        transform: translateY(-12px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 3000px;
    }
}

.temple-zone-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gold);
}

.temple-zone-panel__title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-leather-dark);
    margin: 0;
}

.temple-zone-panel__title i {
    color: var(--color-gold);
    margin-right: 0.5rem;
}

.temple-zone-panel__close {
    background: transparent;
    border: 2px solid var(--color-leather);
    border-radius: var(--radius-sm);
    color: var(--color-leather-dark);
    font-size: 1.1rem;
    padding: 0.35rem 0.65rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    line-height: 1;
}

.temple-zone-panel__close:hover {
    background: var(--color-leather);
    color: var(--color-parchment-light);
    border-color: var(--color-leather-dark);
}

/* ====================
   NOTICEBOARD STATS CARDS
   ==================== */
.temple-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.temple-stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-leather-light);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.temple-stat-card__value {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.temple-stat-card__value--primary {
    color: var(--color-leather-dark);
}

.temple-stat-card__value--success {
    color: var(--color-success-leaf);
}

.temple-stat-card__value--info {
    color: #2a6a9a;
}

.temple-stat-card__label {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    color: var(--color-ink-faded);
}

.temple-stat-card__icon {
    font-size: 1.25rem;
    margin-right: 0.35rem;
}

.temple-noticeboard-footer {
    text-align: center;
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: var(--color-ink-faded);
    padding-top: 1rem;
    border-top: 1px solid var(--color-parchment-dark);
}

/* ====================
   UNDER CONSTRUCTION MODAL
   ==================== */
.under-construction-icon {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: block;
}

.under-construction-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: var(--color-ink-faded);
}

/* ====================
   RESPONSIVE - Tablette (991px)
   ==================== */
@media (max-width: 991px) {
    .temple-archways {
        grid-template-columns: repeat(3, 1fr);
    }

    .temple-hero {
        height: 220px;
    }

    .temple-facade h1 {
        font-size: 1.9rem;
    }

    .temple-zone-panel {
        padding: 1.5rem;
    }
}

/* ====================
   RESPONSIVE - Tablette portrait / petit (768px)
   ==================== */
@media (max-width: 768px) {
    .temple-archways {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .temple-hero {
        height: 180px;
    }

    .temple-facade h1 {
        font-size: 1.7rem;
    }

    .temple-archway__image-wrap {
        height: 120px;
    }

    .temple-archway__title {
        font-size: 0.85rem;
    }

    .temple-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .temple-stat-card__value {
        font-size: 2rem;
    }

    .temple-zone-panel {
        padding: 1.25rem;
    }

    .temple-zone-panel__title {
        font-size: 1.25rem;
    }
}

/* ====================
   RESPONSIVE - Mobile (576px)
   ==================== */
@media (max-width: 576px) {
    .temple-archways {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .temple-archway {
        flex-direction: row;
    }

    .temple-archway__image-wrap {
        width: 100px;
        height: auto;
        min-height: 100px;
        flex-shrink: 0;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    }

    .temple-archway__body {
        padding: 0.75rem;
        align-items: flex-start;
        text-align: left;
    }

    .temple-archway__icon {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .temple-archway__title {
        font-size: 0.9rem;
    }

    .temple-hero {
        height: 150px;
        margin-bottom: 1.5rem;
    }

    .temple-facade h1 {
        font-size: 1.5rem;
    }

    .temple-facade .temple-subtitle {
        font-size: 1rem;
    }

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

    .temple-stat-card {
        padding: 1rem;
    }

    .temple-stat-card__value {
        font-size: 1.75rem;
    }

    .temple-zone-panel {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .temple-zone-panel__header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .temple-zone-panel__title {
        font-size: 1.1rem;
    }

    .temple-archway__badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.6rem;
    }
}
