﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Blood Type Report V2 - Cinematic Narrative Design
 * A warm, human-centered design presenting blood type as ancestral inheritance.
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    /* Primary Colors - Warm Earth Tones */
    --btr-primary: #5D4E37;
    --btr-primary-dark: #4A3D2C;
    --btr-primary-light: #7A6B54;
    
    /* Secondary - Soft Sage */
    --btr-secondary: #7A8B7A;
    --btr-secondary-dark: #5F6F5F;
    --btr-secondary-light: #9AAA9A;
    
    /* Accent - Warm Amber */
    --btr-accent: #C9A962;
    --btr-accent-light: #E5D4A0;
    --btr-accent-dark: #A68942;
    
    /* Neutral Colors */
    --btr-dark: #2D2D2D;
    --btr-dark-soft: #3D3D3D;
    --btr-text: #333333;
    --btr-text-muted: #6B6B6B;
    --btr-text-light: #8A8A8A;
    
    /* Background Colors */
    --btr-bg-cream: #FDFBF7;
    --btr-bg-light: #F8F6F2;
    --btr-bg-warm: #F5F0E8;
    --btr-white: #FFFFFF;
    --btr-border: rgba(93, 78, 55, 0.12);
    
    /* Blood Type Colors (muted, ancestral feel) */
    --btr-type-o: #8B7355;
    --btr-type-a: #6B8B6B;
    --btr-type-b: #7B6B8B;
    --btr-type-ab: #8B7B6B;
    
    /* Status Colors */
    --btr-success: #5F8B5F;
    --btr-warning: #B8956B;
    --btr-info: #6B7B9B;
    --btr-danger: #9B6B6B;
    
    /* Typography */
    --btr-font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --btr-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows - Soft and warm */
    --btr-shadow-xs: 0 1px 3px rgba(45, 45, 45, 0.04);
    --btr-shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.06);
    --btr-shadow-md: 0 8px 24px rgba(45, 45, 45, 0.08);
    --btr-shadow-lg: 0 16px 48px rgba(45, 45, 45, 0.10);
    --btr-shadow-xl: 0 24px 64px rgba(45, 45, 45, 0.12);
    --btr-shadow-warm: 0 8px 32px rgba(201, 169, 98, 0.15);
    
    /* Border Radius */
    --btr-radius-sm: 8px;
    --btr-radius-md: 12px;
    --btr-radius-lg: 20px;
    --btr-radius-xl: 28px;
    --btr-radius-full: 9999px;
    
    /* Transitions */
    --btr-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --btr-transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --btr-transition-fast: all 0.15s ease;
}

/* ========================================
   Base & Typography
   ======================================== */
.btr-main {
    font-family: var(--btr-font-sans);
    color: var(--btr-text);
    background: var(--btr-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btr-main h1,
.btr-main h2,
.btr-main h3,
.btr-main h4 {
    font-family: var(--btr-font-serif);
    font-weight: 600;
    color: var(--btr-dark);
    line-height: 1.2;
}

.btr-main p {
    line-height: 1.7;
    color: var(--btr-text);
}

/* ========================================
   Accessibility
   ======================================== */
.btr-skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 2000;
    background: var(--btr-white);
    color: var(--btr-dark);
    padding: 12px 20px;
    border-radius: var(--btr-radius-sm);
    box-shadow: var(--btr-shadow-lg);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--btr-font-sans);
}

.btr-skip-link:focus {
    left: 10px;
    outline: 3px solid var(--btr-accent);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btr-scroll-progress,
    .btr-scroll-indicator {
        display: none;
    }
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.btr-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--btr-primary) 0%, var(--btr-accent) 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ========================================
   Page Navigation Dots
   ======================================== */
.btr-page-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--btr-transition);
}

.btr-page-nav.visible {
    opacity: 1;
    visibility: visible;
}

.btr-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(93, 78, 55, 0.2);
    border: 2px solid rgba(93, 78, 55, 0.4);
    position: relative;
    transition: var(--btr-transition);
    cursor: pointer;
}

.btr-nav-dot:hover,
.btr-nav-dot:focus {
    transform: scale(1.2);
    background: rgba(93, 78, 55, 0.4);
    outline: none;
}

.btr-nav-dot.active {
    background: var(--btr-primary);
    border-color: var(--btr-primary);
    transform: scale(1.2);
}

.btr-nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--btr-dark);
    color: var(--btr-white);
    padding: 8px 14px;
    border-radius: var(--btr-radius-sm);
    font-size: 0.8rem;
    font-family: var(--btr-font-sans);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.btr-nav-dot:hover::after,
.btr-nav-dot:focus::after {
    opacity: 1;
}

@media (max-width: 991px) {
    .btr-page-nav {
        display: none;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.btr-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--btr-primary);
    color: var(--btr-white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--btr-transition);
    box-shadow: var(--btr-shadow-md);
    z-index: 1100;
}

.btr-back-to-top:hover {
    background: var(--btr-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--btr-shadow-lg);
}

.btr-back-to-top:focus {
    outline: 3px solid var(--btr-accent);
    outline-offset: 2px;
}

.btr-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Section
   ======================================== */
.btr-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btr-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/img/reports/traits/bloodtype/bloodtype-hero.webp') center/cover no-repeat;
}

.btr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 45, 45, 0.75) 0%,
        rgba(93, 78, 55, 0.65) 50%,
        rgba(45, 45, 45, 0.75) 100%
    );
}

.btr-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.btr-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--btr-white);
    padding: 10px 24px;
    border-radius: var(--btr-radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btr-hero-title {
    color: var(--btr-white) !important;
    margin-bottom: 1.5rem;
}

.btr-title-line {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    opacity: 0.95;
}

.btr-title-accent {
    display: block;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--btr-accent-light) !important;
    margin-top: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btr-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

/* Scroll Indicator */
.btr-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btr-scroll-indicator i {
    margin-top: 8px;
    animation: btr-bounce 2s ease-in-out infinite;
}

@keyframes btr-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ========================================
   Not Found Hero Variant
   ======================================== */
.btr-hero-not-found .btr-title-accent {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: rgba(255, 255, 255, 0.7) !important;
}

.btr-hero-not-found .btr-hero-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

/* ========================================
   Section Styles
   ======================================== */
.btr-section {
    padding: 100px 0;
    position: relative;
}

.btr-section-light {
    background: var(--btr-bg-light);
}

.btr-section-cream {
    background: var(--btr-bg-cream);
}

.btr-section-warm {
    background: var(--btr-bg-warm);
}

.btr-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.btr-section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--btr-primary);
    margin-bottom: 1rem;
}

.btr-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--btr-dark);
}

.btr-section-subtitle {
    font-size: 1.15rem;
    color: var(--btr-text-muted);
    line-height: 1.7;
}

/* ========================================
   Prediction Result Card
   ======================================== */
.btr-prediction-card {
    background: var(--btr-white);
    border-radius: var(--btr-radius-xl);
    padding: 3rem;
    box-shadow: var(--btr-shadow-lg);
    border: 1px solid var(--btr-border);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.btr-blood-type-display {
    font-family: var(--btr-font-serif);
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--btr-primary);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(93, 78, 55, 0.15);
}

.btr-prediction-label {
    font-size: 1rem;
    color: var(--btr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.btr-prediction-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--btr-bg-warm);
    padding: 1.25rem 1.5rem;
    border-radius: var(--btr-radius-md);
    text-align: left;
    margin-bottom: 2rem;
    border-left: 4px solid var(--btr-accent);
}

.btr-prediction-disclaimer i {
    color: var(--btr-accent-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.btr-prediction-disclaimer p {
    font-size: 0.95rem;
    color: var(--btr-text);
    margin: 0;
}

/* Score Buttons Container */
.btr-score-container {
    padding-top: 1rem;
    border-top: 1px solid var(--btr-border);
}

.btr-score-label {
    font-size: 0.85rem;
    color: var(--btr-text-muted);
    margin-bottom: 0.75rem;
}

/* ========================================
   Information Cards
   ======================================== */
.btr-card {
    background: var(--btr-white);
    border-radius: var(--btr-radius-lg);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--btr-shadow-sm);
    border: 1px solid var(--btr-border);
    transition: var(--btr-transition);
    text-align: center;
}

.btr-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--btr-shadow-md);
}

.btr-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--btr-bg-warm) 0%, var(--btr-bg-cream) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--btr-primary);
    transition: var(--btr-transition);
}

.btr-card:hover .btr-card-icon {
    background: linear-gradient(135deg, var(--btr-primary) 0%, var(--btr-primary-light) 100%);
    color: var(--btr-white);
}

.btr-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--btr-dark);
}

.btr-card p {
    color: var(--btr-text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

.btr-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.btr-card ul li {
    padding: 0.5rem 0;
    color: var(--btr-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.btr-card ul li::before {
    content: "•";
    color: var(--btr-accent);
    font-weight: bold;
}

/* ========================================
   Narrative Section
   ======================================== */
.btr-section-narrative {
    background: linear-gradient(180deg, var(--btr-bg-cream) 0%, var(--btr-bg-warm) 100%);
    padding: 120px 0;
}

.btr-narrative-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.btr-narrative-content {
    margin-bottom: 3rem;
}

.btr-narrative-lead {
    font-family: var(--btr-font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--btr-primary);
    font-style: italic;
    margin-bottom: 2rem;
}

.btr-narrative-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Quote Styles */
.btr-quote {
    background: var(--btr-white);
    border-left: 4px solid var(--btr-accent);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    border-radius: 0 var(--btr-radius-md) var(--btr-radius-md) 0;
    box-shadow: var(--btr-shadow-sm);
}

.btr-quote p {
    font-family: var(--btr-font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--btr-dark);
    margin: 0;
    line-height: 1.6;
}

.btr-quote-centered {
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--btr-accent);
    border-radius: var(--btr-radius-md);
}

/* ========================================
   Distribution Table
   ======================================== */
.btr-table-container {
    background: var(--btr-white);
    border-radius: var(--btr-radius-lg);
    overflow: hidden;
    box-shadow: var(--btr-shadow-md);
    border: 1px solid var(--btr-border);
}

.btr-table {
    width: 100%;
    margin: 0;
}

.btr-table thead {
    background: linear-gradient(135deg, var(--btr-primary) 0%, var(--btr-primary-light) 100%);
    color: var(--btr-white);
}

.btr-table th,
.btr-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border: none;
    font-weight: 500;
}

.btr-table tbody tr {
    border-bottom: 1px solid var(--btr-border);
    transition: var(--btr-transition);
}

.btr-table tbody tr:last-child {
    border-bottom: none;
}

.btr-table tbody tr:nth-child(even) {
    background: var(--btr-bg-light);
}

.btr-table tbody tr:hover {
    background: var(--btr-bg-warm);
}

/* Distribution Bar */
.btr-distribution-bar {
    height: 16px;
    background: linear-gradient(90deg, var(--btr-primary) 0%, var(--btr-accent) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-width: 20px;
}

.btr-distribution-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: btr-shimmer 2.5s infinite;
}

@keyframes btr-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Stats Sidebar */
.btr-stats-card {
    background: var(--btr-white);
    border-radius: var(--btr-radius-lg);
    padding: 2rem;
    box-shadow: var(--btr-shadow-sm);
    border: 1px solid var(--btr-border);
    height: 100%;
}

.btr-stats-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--btr-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btr-stats-card h4 i {
    color: var(--btr-accent);
}

.btr-stats-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.btr-stats-card ul li {
    padding: 0.75rem 0;
    color: var(--btr-text);
    border-bottom: 1px solid var(--btr-border);
    font-size: 0.95rem;
}

.btr-stats-card ul li:last-child {
    border-bottom: none;
}

/* ========================================
   Genetic Markers
   ======================================== */
.btr-marker-card {
    background: var(--btr-white);
    border-radius: var(--btr-radius-md);
    padding: 1.5rem;
    box-shadow: var(--btr-shadow-sm);
    border: 1px solid var(--btr-border);
    border-left: 4px solid var(--btr-primary);
    height: 100%;
}

.btr-marker-card h5 {
    font-family: var(--btr-font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--btr-primary);
    margin-bottom: 0.75rem;
}

.btr-allele-display {
    display: inline-block;
    background: var(--btr-primary);
    color: var(--btr-white);
    padding: 0.35rem 0.75rem;
    border-radius: var(--btr-radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0.25rem;
}

.btr-marker-function {
    font-size: 0.9rem;
    color: var(--btr-text-muted);
    margin-top: 0.75rem;
}

/* ========================================
   Alternatives Section (Not Found State)
   ======================================== */
.btr-alternatives-list {
    max-width: 700px;
    margin: 0 auto;
}

.btr-alternative-item {
    display: flex;
    gap: 1.5rem;
    background: var(--btr-white);
    padding: 2rem;
    border-radius: var(--btr-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--btr-shadow-sm);
    border: 1px solid var(--btr-border);
    transition: var(--btr-transition);
}

.btr-alternative-item:hover {
    box-shadow: var(--btr-shadow-md);
}

.btr-alternative-number {
    width: 50px;
    height: 50px;
    background: var(--btr-primary);
    color: var(--btr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--btr-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.btr-alternative-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--btr-dark);
}

.btr-alternative-content p {
    color: var(--btr-text-muted);
    margin: 0;
}

/* ========================================
   Dark Section (Unity Theme)
   ======================================== */
.btr-section-dark {
    background: linear-gradient(180deg, var(--btr-primary) 0%, var(--btr-primary-dark) 100%);
    color: var(--btr-white);
    padding: 120px 0;
}

.btr-section-dark .btr-section-label {
    color: var(--btr-accent-light);
}

.btr-section-dark .btr-section-title {
    color: var(--btr-white);
}

.btr-section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* Blood Type Visual Circles */
.btr-types-visual {
    position: relative;
    height: 200px;
    max-width: 400px;
    margin: 3rem auto;
}

.btr-type-circle {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--btr-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--btr-white);
    opacity: 0.85;
    transition: var(--btr-transition);
    cursor: default;
}

.btr-type-circle:hover {
    transform: scale(1.15);
    opacity: 1;
    z-index: 10;
}

.btr-type-circle-o { background: var(--btr-type-o); top: 20%; left: 15%; }
.btr-type-circle-a { background: var(--btr-type-a); top: 20%; right: 15%; }
.btr-type-circle-b { background: var(--btr-type-b); bottom: 10%; left: 25%; }
.btr-type-circle-ab { background: var(--btr-type-ab); bottom: 10%; right: 25%; }

.btr-type-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: var(--btr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--btr-white);
    z-index: 5;
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.5);
}

/* Dark Section Quote */
.btr-section-dark .btr-quote {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--btr-accent);
    backdrop-filter: blur(10px);
}

.btr-section-dark .btr-quote p {
    color: var(--btr-white);
}

/* ========================================
   CTA Section
   ======================================== */
.btr-section-cta {
    background: linear-gradient(180deg, var(--btr-bg-warm) 0%, var(--btr-bg-cream) 100%);
    padding: 100px 0;
    text-align: center;
}

.btr-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.btr-cta-icon {
    font-size: 3rem;
    color: var(--btr-danger);
    margin-bottom: 1.5rem;
}

.btr-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--btr-dark);
}

.btr-cta-text {
    font-size: 1.1rem;
    color: var(--btr-text-muted);
    margin-bottom: 2rem;
}

.btr-cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--btr-danger);
    color: var(--btr-white);
    padding: 16px 36px;
    border-radius: var(--btr-radius-full);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--btr-transition);
    box-shadow: var(--btr-shadow-md);
}

.btr-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--btr-shadow-lg);
    color: var(--btr-white);
    text-decoration: none;
}

.btr-cta-button i {
    margin-right: 0.5rem;
}

/* ========================================
   AI Assistant Overrides
   ======================================== */
.btr-main .ai-assistant-section {
    background: linear-gradient(135deg, rgba(93, 78, 55, 0.08) 0%, rgba(201, 169, 98, 0.08) 100%);
    border: 2px solid var(--btr-primary);
    border-radius: var(--btr-radius-lg);
    margin: 0;
}

.btr-main .ai-assistant-section h4 {
    font-family: var(--btr-font-serif);
    color: var(--btr-dark);
}

.btr-main .ai-assistant-section h4 i {
    color: var(--btr-primary);
}

.btr-main .ai-assistant-section .btn-light {
    background: var(--btr-white);
    border: 2px solid var(--btr-primary);
    color: var(--btr-primary);
}

.btr-main .ai-assistant-section .btn-light:hover {
    background: var(--btr-primary);
    color: var(--btr-white);
}

.btr-main .ai-assistant-section .btn-outline-primary {
    border-color: var(--btr-primary);
    color: var(--btr-primary);
}

.btr-main .ai-assistant-section .btn-outline-primary:hover {
    background: var(--btr-primary);
    color: var(--btr-white);
}

/* ========================================
   Animations
   ======================================== */
.btr-animate-fade-in {
    animation: btr-fadeIn 0.8s ease-out forwards;
}

.btr-animate-fade-in-up {
    animation: btr-fadeInUp 0.8s ease-out forwards;
}

.btr-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--btr-transition-slow);
}

.btr-animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.btr-delay-1 { animation-delay: 0.15s; }
.btr-delay-2 { animation-delay: 0.3s; }
.btr-delay-3 { animation-delay: 0.45s; }
.btr-delay-4 { animation-delay: 0.6s; }

.btr-animate-on-scroll.btr-delay-1 { transition-delay: 0.1s; }
.btr-animate-on-scroll.btr-delay-2 { transition-delay: 0.2s; }
.btr-animate-on-scroll.btr-delay-3 { transition-delay: 0.3s; }

@keyframes btr-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes btr-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .btr-section {
        padding: 80px 0;
    }
    
    .btr-section-narrative,
    .btr-section-dark,
    .btr-section-cta {
        padding: 80px 0;
    }
    
    .btr-hero-content {
        padding: 100px 20px 50px;
    }
    
    .btr-alternative-item {
        flex-direction: column;
        text-align: center;
    }
    
    .btr-alternative-number {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .btr-section {
        padding: 60px 0;
    }
    
    .btr-section-header {
        margin-bottom: 3rem;
    }
    
    .btr-card {
        padding: 2rem;
    }
    
    .btr-prediction-card {
        padding: 2rem;
    }
    
    .btr-blood-type-display {
        font-size: 5rem;
    }
    
    .btr-types-visual {
        transform: scale(0.8);
    }
    
    .btr-marker-card {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .btr-hero-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    
    .btr-title-accent {
        font-size: 4rem;
    }
    
    .btr-scroll-indicator {
        display: none;
    }
    
    .btr-quote {
        padding: 1.5rem;
    }
    
    .btr-quote p {
        font-size: 1.1rem;
    }
    
    .btr-table th,
    .btr-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .btr-scroll-progress,
    .btr-page-nav,
    .btr-back-to-top,
    .btr-scroll-indicator,
    .btr-cta-button,
    .btr-score-container,
    .ai-assistant-section {
        display: none !important;
    }
    
    .btr-hero {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .btr-section {
        padding: 40px 0;
    }
    
    .btr-card,
    .btr-prediction-card,
    .btr-marker-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btr-animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

