/* ==========================================================
   AR-DPCBF Project Page - Optimized Stylesheet
   ========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Google Sans", "Noto Sans", sans-serif;
    color: #333;
    background: #ffffff;
    line-height: 1.6;
}

/* Base Section & Spacing Control */
.section-compact {
    padding: 1.1rem 1.5rem !important;
}

.hero-body {
    padding: 1.5rem 1.5rem;
}

.title {
    color: #111827;
    font-weight: 700;
}

.title.is-3 {
    margin-bottom: 0.75rem;
}

.subtitle {
    color: #4b5563;
    max-width: 850px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}

/* Subtle Inline Highlights */
.highlight {
    color: #dc2626;
    font-weight: 600;
}

.content p {
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    background: #fff;
}

.publication-title {
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.publication-authors {
    color: #4b5563;
}

.teaser-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.figure-caption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ==========================================================
   Central Research Question Callout Box (Bright Orange)
   ========================================================== */
.question-callout {
    background: #fffcf8; /* Subtle warm white tint */
    border: 1.5px solid #ffedd5; /* Soft orange outer border */
    border-left: 5px solid #ff6b00; /* Bright orange side accent */
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin: 0.5rem auto;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.05);
    max-width: 800px;
}

.uppercase-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ea580c; /* Deep orange label */
}

.icon-accent {
    color: #ff6b00; /* Bright orange icon */
}

.callout-question {
    color: #ff6b00 !important; /* Bright orange question text */
    font-size: 1.05rem !important; /* Decreased font size */
    font-weight: 600 !important;
    font-style: italic;
    line-height: 1.5 !important;
    text-align: center;
    margin: 0 !important;
}

/* ==========================================================
   Interactive Cards & Dynamic Iframe Heights
   ========================================================== */
.interactive-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.interactive-frame {
    width: 100%;
    height: 860px; /* Fully displays motivation.html without scrollbar */
    border: none;
    border-radius: 8px;
    background: #ffffff;
    display: block;
    overflow: hidden;
}

/* Increased height for the AR-DPCBF variation embed */
.interactive-frame.frame-large {
    height: 920px;
}

/* ==========================================================
   Boxes, Results & Footer
   ========================================================== */
.box {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    border: 1px solid #f3f4f6;
}

.insight-box {
    height: 100%;
    padding: 1.25rem;
}

.text-accent {
    color: #2563eb;
}

.result-card {
    background: #ffffff;
}

.result-gif {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Static result figures (quantitative sweep plots) shown smaller than the demo GIFs */
.result-figure {
    width: 75%;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

pre {
    border-radius: 8px;
    padding: 1rem;
}

.footer {
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    padding: 1.25rem;
    color: #9ca3af;
}

/* Responsive Adjustments */
@media screen and (max-width: 850px) {
    .section-compact {
        padding: 1rem 1rem !important;
    }
    
    .interactive-frame {
        height: 1050px; /* Automatically expands on smaller screens when controls stack */
    }

    .interactive-frame.frame-large {
        height: 1100px;
    }

    .question-callout {
        padding: 1rem;
    }

    .callout-question {
        font-size: 0.98rem !important;
    }
}
