/* =================================================================
   MAIN.CSS - Foundation Styles for Genealogy Research Platform
   Pathfinder Design Philosophy Implementation
   ================================================================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* =================================================================
   PATHFINDER CORE COMPONENTS
   ================================================================= */

/* Pathfinder Container - Main research workspace */
.research-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Pathfinder Section - Core building block */
.pathfinder {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Pathfinder Navigation - Core States Implementation */
.pathfinder-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.orientation {
    font-weight: bold;
    color: #34495e;
    font-size: 1.1em;
}

.nav-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Pathfinder Buttons - Core Navigation Elements */
.pathfinder-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

/* Pathfinder Button States */
.btn-back { 
    background: #95a5a6; 
    color: white; 
}

.btn-exit { 
    background: #e74c3c; 
    color: white; 
}

.btn-explore { 
    background: #3498db; 
    color: white; 
}

.btn-more { 
    background: #9b59b6; 
    color: white; 
}

.pathfinder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =================================================================
   LAYOUT FOUNDATIONS
   ================================================================= */

/* Research Workspace - Main content grid */
.research-workspace {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Main Content Pathfinder Section */
.main-content {
    /* Pathfinder base styles applied via .pathfinder class */
}

/* Sidebar Pathfinder Section */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =================================================================
   INTERACTIVE ELEMENTS
   ================================================================= */

/* Hotspots - Interactive text elements */
.hotspot {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 4px;
    color: #2c3e50;
}

.hotspot:hover {
    background: #e3f2fd;
    color: #1976d2;
}

/* View Selector - Tab-style navigation */
.view-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #ecf0f1;
    padding: 8px;
    border-radius: 12px;
}

.view-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.view-btn.active {
    background: #3498db;
    color: white;
}

/* =================================================================
   CARD COMPONENTS
   ================================================================= */

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

/* =================================================================
   FORM ELEMENTS
   ================================================================= */

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
}

/* Export/Action Buttons */
.export-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 5px;
    transition: background 0.3s ease;
}

.export-btn:hover {
    background: #219a52;
}

/* Sidebar Action Buttons */
.sidebar-btn {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing Utilities */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .research-workspace {
        grid-template-columns: 1fr;
    }
    
    .pathfinder-nav {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .research-container {
        padding: 10px;
    }
    
    .pathfinder {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .nav-actions {
        justify-content: center;
    }
    
    .pathfinder-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
    .view-selector {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .pathfinder-btn {
        width: 100%;
    }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

/* Focus Indicators */
.pathfinder-btn:focus,
.view-btn:focus,
.hotspot:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .pathfinder {
        border: 2px solid #000;
    }
    
    .hotspot:hover {
        background: #000;
        color: #fff;
    }
}

/* Hero Section */
        .hero-section {
            text-align: center;
            padding: 60px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 20px;
            margin-bottom: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }
        
        .hero-title {
            font-size: 3.5em;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            font-weight: normal;
        }
        
        .hero-subtitle {
            font-size: 1.4em;
            margin-bottom: 30px;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }
        
        .hero-description {
            font-size: 1.1em;
            opacity: 0.8;
            max-width: 700px;
            margin: 0 auto 40px;
            line-height: 1.7;
        }
        
        /* Vision Cards Grid */
        .vision-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin: 40px 0;
        }
        
        .vision-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .vision-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            border-color: #3498db;
        }
        
        .vision-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
            display: block;
        }
        
        .vision-title {
            font-size: 1.3em;
            color: #2c3e50;
            margin-bottom: 15px;
            font-weight: 600;
        }
        
        .vision-text {
            color: #5a6c7d;
            line-height: 1.6;
        }
             
        /* Demo Section */
        .demo-section {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 50px;
            text-align: center;
            margin: 40px 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .demo-title {
            font-size: 2.2em;
            color: #2c3e50;
            margin-bottom: 20px;
        }
        
        .demo-description {
            font-size: 1.2em;
            color: #5a6c7d;
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.7;
        }
        
        .demo-button {
            display: inline-block;
            padding: 18px 40px;
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-size: 1.2em;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
        }
        
        .demo-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
            background: linear-gradient(135deg, #2980b9, #3498db);
        }

        /* FEATURES PREVIEW COMPONENTS - Missing from main.css */
.features-preview {
    margin: 50px 0;
}

.features-title {
    text-align: center;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-emoji {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.feature-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9em;
    color: #5a6c7d;
}