/* ========================================
   CSS VARIABLES (Easy to modify)
   ======================================== */
:root {
    --c21-primary: #bea987;
    --c21-secondary: #a89674;
    --c21-light: #E5DFCF;
    --c21-dark: #2B2B2B;
    --c21-gray: #6B7280;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--c21-dark);
    overflow: hidden;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.presentation-header {
    background: linear-gradient(135deg, var(--c21-primary), var(--c21-secondary));
    color: white;
    box-shadow: var(--box-shadow);
}

.logo-main {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-tagline {
    font-size: 0.75rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.slide-counter {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.875rem;
}

/* ========================================
   NAVIGATION TABS
   ======================================== */
.nav-tabs .nav-link {
    color: var(--c21-gray);
    border: none;
    border-radius: 0;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: var(--c21-primary);
    background-color: #f8f9fa;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--c21-primary);
    background-color: var(--c21-light);
    border-color: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c21-primary);
}

.nav-tabs {
    border-bottom: 2px solid var(--c21-light);
}

/* ========================================
   SLIDE ANIMATIONS
   ======================================== */
.slide {
    display: none;
    animation: slideIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CARD COMPONENTS
   ======================================== */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--c21-primary);
}

/* ========================================
   STATS COMPONENTS
   ======================================== */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c21-primary);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.comparison-table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-header {
    background: var(--c21-primary);
    color: white;
}

.current-state {
    background-color: #FEF2F2;
    border-left: 4px solid #EF4444;
}

.future-state {
    background-color: #F0FDF4;
    border-left: 4px solid #10B981;
}

/* ========================================
   SB7 FRAMEWORK DIAGRAM
   ======================================== */
.sb7-step {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.sb7-step:hover {
    transform: translateY(-3px);
}

.step-number {
    background: var(--c21-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
}

/* ========================================
   INTERACTIVE SITEMAP STYLES
   ======================================== */
.sitemap-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    width: 200px;
}

.sitemap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(190, 169, 135, 0.3);
    border-color: var(--c21-primary);
}

.sitemap-card.expanded {
    border-color: var(--c21-primary);
    box-shadow: 0 8px 25px rgba(190, 169, 135, 0.3);
}

.card-header-custom {
    background: var(--c21-primary);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.homepage .card-header-custom {
    background: linear-gradient(135deg, var(--c21-primary), var(--c21-secondary));
}

.main-nav .card-header-custom {
    background: var(--c21-dark);
}

.subpage .card-header-custom {
    background: var(--c21-gray);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sitemap-card.expanded .card-content {
    max-height: 300px;
}

.content-section {
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   CONTENT SECTION COLORS
   ======================================== */
.hero-section { 
    background: #ff6b6b; 
    color: white; 
}

.navigation-section { 
    background: #4ecdc4; 
    color: white; 
}

.content-section-blue { 
    background: #45b7d1; 
    color: white; 
}

.content-section-orange { 
    background: #f39c12; 
    color: white; 
}

.content-section-green { 
    background: #27ae60; 
    color: white; 
}

.footer-section { 
    background: #9b59b6; 
    color: white; 
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
    .logo-main {
        font-size: 1.25rem;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .sitemap-card {
        width: 100%;
        max-width: 280px;
    }

    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .presentation-header {
        padding: 1rem !important;
    }

    .logo-main {
        font-size: 1rem;
    }

    .logo-tagline {
        font-size: 0.625rem;
    }

    .presentation-content {
        padding: 1rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    .card-icon {
        font-size: 2rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.bg-primary-custom {
    background-color: var(--c21-primary) !important;
}

.bg-secondary-custom {
    background-color: var(--c21-secondary) !important;
}

.bg-light-custom {
    background-color: var(--c21-light) !important;
}

.text-primary-custom {
    color: var(--c21-primary) !important;
}

.border-primary-custom {
    border-color: var(--c21-primary) !important;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.sitemap-card:focus {
    outline: 3px solid var(--c21-primary);
    outline-offset: 2px;
}

.nav-tabs .nav-link:focus {
    box-shadow: 0 0 0 3px rgba(190, 169, 135, 0.3);
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .presentation-header,
    .nav-tabs {
        display: none !important;
    }

    .presentation-content {
        padding: 0 !important;
    }

    .tab-pane {
        display: block !important;
        page-break-before: always;
    }

    .tab-pane:first-child {
        page-break-before: auto;
    }

    .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   DARK MODE SUPPORT (OPTIONAL)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support */
    /*
    :root {
        --c21-dark: #ffffff;
        --c21-gray: #a0a0a0;
    }

    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: var(--c21-dark);
    }

    .info-card {
        background: #2a2a2a;
        color: white;
    }

    .comparison-table .current-state {
        background-color: #2a1a1a;
    }

    .comparison-table .future-state {
        background-color: #1a2a1a;
    }
    */
}