/* CSS Custom Properties */
:root {
    /* Primary Blue Theme (based on SRED From The Shed logo) */
    --primary: 210 100% 40%;        /* Deep blue */
    --primary-foreground: 210 11% 98%;
    --secondary: 210 40% 70%;       /* Light blue */
    --secondary-foreground: 210 11% 15%;
    --accent: 210 60% 85%;          /* Very light blue */
    --accent-foreground: 210 11% 20%;
    
    /* Neutral colors */
    --background: 210 11% 98%;      /* #F5F7FA */
    --foreground: 210 11% 15%;      /* #222426 */
    --muted: 210 11% 95%;           /* #F1F3F5 */
    --muted-foreground: 210 11% 45%; /* #6B7280 */
    
    /* Semantic colors */
    --success: 142 76% 36%;         /* Green */
    --warning: 38 92% 50%;          /* Orange */
    --danger: 0 84% 60%;            /* Red */
    --info: 199 89% 48%;            /* Light blue */
    
    /* Borders and shadows */
    --border: 210 20% 90%;
    --border-light: 210 20% 95%;
    
    /* Spacing and sizing */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Typography */
    --font-family-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-family-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.3;
    color: hsl(var(--foreground));
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
}

/* Custom Bootstrap Color Classes */
.text-primary {
    color: hsl(var(--primary)) !important;
}

.bg-primary {
    background-color: hsl(var(--primary)) !important;
}

.btn-primary {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
}

.btn-primary:hover {
    background-color: hsl(210 100% 35%);
    border-color: hsl(210 100% 35%);
}

.btn-outline-primary {
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.btn-outline-primary:hover {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: white;
}

/* Navigation */
.navbar {
    padding: 0.5rem 0;
    background-color: white !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-text {
    color: hsl(var(--primary));
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1.2rem;
    color: hsl(var(--foreground)) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: hsl(var(--primary)) !important;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
}

.min-vh-50 {
    min-height: 50vh;
}

/* Page Headers */
.page-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, hsl(var(--muted)) 0%, hsl(var(--accent)) 100%);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Video Cards */
.video-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: hsl(var(--primary));
}

.video-meta {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.video-duration {
    display: inline-block;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(210 100% 50%) 100%);
    color: white;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Cards */
.card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Loading States */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Social Links */
.social-links a {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: hsl(var(--primary)) !important;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background-color: hsl(var(--primary)) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .page-header {
        padding: 2.5rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .video-meta {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--muted-foreground));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}

/* Utility Classes */
.text-decoration-none {
    text-decoration: none !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* Animation for loading states */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none !important;
    }
}
