/* ========================================
   JOUFUJI TEMPLE - FIREFLY EVENT PAGE STYLES
   ======================================== */

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.page-title .title-jp {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
}

.page-title .title-en {
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.page-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== FIREFLY HERO SECTION ===== */
.firefly-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.9), rgba(20, 24, 36, 0.9));
}

.firefly-container,
.firefly-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.firefly-container {
    z-index: 1;
}

.firefly-bg {
    z-index: 2;
    opacity: 0.3;
}

.firefly {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-gold), 0 0 40px rgba(255, 167, 38, 0.5);
    animation: firefly-float 15s infinite ease-in-out;
}

@keyframes firefly-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        opacity: 1;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.8;
    }
    75% {
        opacity: 0.5;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.firefly-badge {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--accent-gold);
    padding: 12px 30px;
    background: rgba(255, 167, 38, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    margin-bottom: 30px;
    text-shadow: var(--glow-gold);
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.2);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(24px, 5vw, 48px);
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-shadow: var(--glow-gold);
}

.hero-description {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== EVENT REPORT SECTION ===== */
.event-report-section {
    background: var(--bg-secondary);
    position: relative;
}

.event-report-section .firefly-bg {
    z-index: 1;
}

.event-report-section .container {
    position: relative;
    z-index: 3;
}

.report-main {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 60px;
    border: 2px solid rgba(255, 167, 38, 0.2);
}

.report-highlight-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 2px solid rgba(255, 167, 38, 0.2);
}

.highlight-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: var(--glow-gold);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.report-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    color: var(--accent-gold);
    margin-bottom: 25px;
    text-shadow: var(--glow-gold);
}

.report-intro {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(255, 167, 38, 0.1);
}

.report-section {
    margin-bottom: 35px;
}

.report-section h4 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.report-section p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 15px;
}

.report-section p:last-child {
    margin-bottom: 0;
}

.signature {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 20px;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: var(--bg-primary);
    position: relative;
}

.gallery-section .firefly-bg {
    z-index: 1;
}

.gallery-section .container {
    position: relative;
    z-index: 3;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 167, 38, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 167, 38, 0.3);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.1), rgba(216, 67, 21, 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.2), rgba(216, 67, 21, 0.2));
}

.gallery-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--accent-gold);
    stroke-width: 1.5;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-placeholder svg {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-placeholder p {
    font-size: 16px;
    color: var(--accent-gold);
    font-weight: 500;
}

.gallery-note {
    margin-top: 40px;
    padding: 25px 30px;
    background: rgba(255, 167, 38, 0.05);
    border-left: 4px solid var(--accent-gold);
    border-radius: 10px;
}

.gallery-note p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== EVENT DETAILS SECTION ===== */
.event-details-section {
    background: var(--bg-secondary);
    position: relative;
}

.event-details-section .firefly-bg {
    z-index: 1;
}

.event-details-section .container {
    position: relative;
    z-index: 3;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.detail-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid rgba(255, 167, 38, 0.15);
    text-align: center;
    transition: var(--transition-smooth);
}

.detail-card:hover {
    border-color: rgba(255, 167, 38, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255, 167, 38, 0.2);
}

.detail-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 167, 38, 0.1);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.detail-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--accent-gold);
    stroke-width: 2;
}

.detail-card:hover .detail-icon {
    background: var(--accent-gold);
    box-shadow: var(--glow-gold);
}

.detail-card:hover .detail-icon svg {
    stroke: var(--bg-primary);
}

.detail-card h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.detail-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.detail-sub {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== ABOUT EVENT SECTION ===== */
.about-event-section {
    background: var(--bg-primary);
    position: relative;
    perspective: 1200px;
    overflow: hidden;
}

.about-event-section .firefly-bg {
    z-index: 1;
    perspective: 1200px;
}

.about-event-section .container {
    position: relative;
    z-index: 3;
}

/* 3D Firefly Styles */
.firefly-3d {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 150, 0.8), var(--accent-gold));
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(255, 183, 77, 0.6),
        0 0 20px rgba(255, 167, 38, 0.4),
        0 0 30px rgba(255, 167, 38, 0.2),
        inset -2px -2px 5px rgba(0, 0, 0, 0.3),
        inset 1px 1px 3px rgba(255, 255, 200, 0.6);
    filter: drop-shadow(0 0 8px rgba(255, 167, 38, 0.8));
    animation: firefly-3d-flight 20s infinite ease-in-out;
    will-change: transform;
}

/* Different depth layers for 3D effect */
.firefly-3d.depth-1 {
    animation: firefly-3d-flight-far 25s infinite ease-in-out;
    opacity: 0.4;
}

.firefly-3d.depth-2 {
    animation: firefly-3d-flight 20s infinite ease-in-out;
    opacity: 0.6;
}

.firefly-3d.depth-3 {
    animation: firefly-3d-flight-near 18s infinite ease-in-out;
    opacity: 0.8;
}

.firefly-3d.depth-4 {
    animation: firefly-3d-flight-very-near 16s infinite ease-in-out;
    opacity: 1;
}

/* Far background - slow, subtle movement */
@keyframes firefly-3d-flight-far {
    0% {
        transform: translate3d(0, 0, -100px) scale(0.4) rotateZ(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate3d(40px, -50px, -80px) scale(0.45) rotateZ(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(60px, -80px, -60px) scale(0.5) rotateZ(180deg);
        opacity: 0.45;
    }
    75% {
        transform: translate3d(20px, -40px, -90px) scale(0.42) rotateZ(270deg);
        opacity: 0.38;
    }
    100% {
        transform: translate3d(0, 0, -100px) scale(0.4) rotateZ(360deg);
        opacity: 0.3;
    }
}

/* Middle background - moderate speed */
@keyframes firefly-3d-flight {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8) rotateZ(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translate3d(80px, -100px, 20px) scale(0.85) rotateZ(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(120px, -150px, 40px) scale(0.9) rotateZ(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translate3d(40px, -80px, 10px) scale(0.8) rotateZ(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(0.8) rotateZ(360deg);
        opacity: 0.5;
    }
}

/* Close foreground - faster, more dramatic */
@keyframes firefly-3d-flight-near {
    0% {
        transform: translate3d(0, 0, 100px) scale(1.2) rotateZ(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translate3d(120px, -120px, 120px) scale(1.3) rotateZ(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translate3d(180px, -200px, 150px) scale(1.4) rotateZ(180deg);
        opacity: 1;
    }
    75% {
        transform: translate3d(60px, -100px, 100px) scale(1.2) rotateZ(270deg);
        opacity: 0.8;
    }
    100% {
        transform: translate3d(0, 0, 100px) scale(1.2) rotateZ(360deg);
        opacity: 0.7;
    }
}

/* Very close foreground - fastest, most dramatic */
@keyframes firefly-3d-flight-very-near {
    0% {
        transform: translate3d(0, 0, 200px) scale(1.5) rotateZ(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translate3d(150px, -150px, 220px) scale(1.6) rotateZ(90deg);
        opacity: 1;
    }
    50% {
        transform: translate3d(220px, -250px, 250px) scale(1.7) rotateZ(180deg);
        opacity: 0.95;
    }
    75% {
        transform: translate3d(80px, -120px, 180px) scale(1.5) rotateZ(270deg);
        opacity: 0.85;
    }
    100% {
        transform: translate3d(0, 0, 200px) scale(1.5) rotateZ(360deg);
        opacity: 0.8;
    }
}

/* Glow pulse for realistic flickering */
@keyframes firefly-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 167, 38, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 167, 38, 1)) drop-shadow(0 0 25px rgba(255, 183, 77, 0.6));
    }
}

.firefly-3d {
    animation-composition: add;
    animation: firefly-3d-flight 20s infinite ease-in-out, firefly-glow-pulse 3s infinite ease-in-out;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 36px);
    color: var(--accent-gold);
    margin-bottom: 25px;
    text-shadow: var(--glow-gold);
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 167, 38, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--accent-gold);
    transition: var(--transition-fast);
}

.feature:hover {
    background: rgba(255, 167, 38, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 32px;
    min-width: 50px;
}

.feature-text h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.firefly-illustration {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.firefly-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold), transparent);
    opacity: 0.2;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

.firefly-svg {
    position: relative;
    z-index: 2;
    width: 150px;
    height: 150px;
    stroke: var(--accent-gold);
    animation: firefly-dance 4s ease-in-out infinite;
}

@keyframes firefly-dance {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(0, 30px);
    }
    75% {
        transform: translate(-20px, -10px);
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--accent-vermilion), var(--accent-gold));
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.cta-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.cta-content .cta-button {
    background: white;
    color: var(--accent-vermilion);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-content .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.cta-content .secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.cta-content .secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .report-main {
        padding: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .report-highlight-box {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .firefly-hero {
        min-height: 400px;
    }

    .report-main {
        padding: 30px 20px;
    }

    .report-highlight-box {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-features {
        gap: 20px;
    }

    .feature {
        gap: 15px;
        padding: 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-content .cta-button,
    .cta-content .secondary-button {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 50px;
    }

    .firefly-badge {
        font-size: 14px;
        padding: 10px 20px;
    }

    .report-main {
        padding: 20px;
        border-radius: 20px;
    }

    .report-section h4 {
        font-size: 18px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 16 / 9;
    }

    .stat-number {
        font-size: 36px;
    }
}
