/* Bazical Data Academy Brand Styling - UX Optimized */

:root {
    /* Primary Brand Colors */
    --bazical-primary: #1a365d;        /* Deep blue - high contrast */
    --bazical-secondary: #2d3748;      /* Dark gray - readable text */
    --bazical-accent: #3182ce;         /* Medium blue - links/accents */
    
    /* Brand Pink - UX Optimized */
    --bazical-pink: #D946A8;           /* Adjusted for better contrast */
    --bazical-pink-hover: #BE2A7E;     /* Darker hover state */
    --bazical-pink-light: #F3E8FF;     /* Light pink for backgrounds */
    
    /* Semantic Colors */
    --bazical-success: #059669;        /* Green - better contrast */
    --bazical-warning: #D97706;        /* Orange - accessible */
    --bazical-error: #DC2626;          /* Red for errors */
    
    /* Neutral Colors */
    --bazical-light: #F8FAFC;          /* Light background */
    --bazical-gray-50: #F9FAFB;        /* Lightest gray */
    --bazical-gray-100: #F3F4F6;       /* Very light gray */
    --bazical-gray-200: #E5E7EB;       /* Light gray borders */
    --bazical-gray-300: #D1D5DB;       /* Medium light gray */
    --bazical-gray-600: #4B5563;       /* Medium gray text */
    --bazical-gray-700: #374151;       /* Dark gray text */
    --bazical-gray-900: #111827;       /* Darkest text */
    
    /* Text Colors */
    --bazical-text-primary: #111827;   /* Main text - highest contrast */
    --bazical-text-secondary: #4B5563; /* Secondary text */
    --bazical-text-muted: #6B7280;     /* Muted text */
    
    /* Interactive States */
    --bazical-focus: #3B82F6;          /* Focus ring color */
    --bazical-focus-ring: rgba(59, 130, 246, 0.2); /* Focus ring background */
}

/* Logo styling */
.nav-logo .logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo .logo-img:hover {
    transform: scale(1.05);
}

/* Navigation - UX Optimized */
.nav-link {
    color: #553575 !important;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--bazical-pink) !important;
    background: var(--bazical-pink-light);
}

.nav-link:focus {
    outline: 2px solid var(--bazical-focus);
    outline-offset: 2px;
}

/* Buttons - UX Optimized with proper contrast */
.login-btn {
    background: var(--bazical-pink);
    color: white !important;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    background: var(--bazical-pink-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 70, 168, 0.3);
}

.login-btn:focus {
    outline: 2px solid var(--bazical-focus);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--bazical-pink);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--bazical-pink-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 70, 168, 0.3);
}

.btn-primary:focus {
    outline: 2px solid var(--bazical-focus);
    outline-offset: 2px;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--bazical-pink);
    border: 2px solid var(--bazical-pink);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--bazical-pink);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 70, 168, 0.2);
}

.btn-outline:focus {
    outline: 2px solid var(--bazical-focus);
    outline-offset: 2px;
}

.btn-secondary {
    background: var(--bazical-gray-100);
    color: var(--bazical-text-primary);
    border: 1px solid var(--bazical-gray-200);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bazical-gray-200);
    border-color: var(--bazical-gray-300);
    transform: translateY(-1px);
}

/* Course cards - Enhanced UX */
.course-card {
    transition: all 0.3s ease;
    border: 1px solid var(--bazical-gray-200);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced text contrast for course cards */
.course-card .course-content h3 {
    color: #111827; /* Very dark for maximum contrast */
    font-weight: 700; /* Bolder weight for better visibility */
}

.course-card .course-content p {
    color: #1F2937; /* Dark gray for excellent readability */
    font-weight: 400;
}

.course-card .course-meta {
    color: #374151; /* Darker meta text for better contrast */
    font-weight: 500;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--bazical-pink);
}

.course-card .course-image {
    background: linear-gradient(135deg, var(--bazical-pink), var(--bazical-pink-hover));
}

/* Course buttons container */
.course-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.course-buttons .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.course-buttons .btn i {
    font-size: 0.9rem;
}

/* PDF download button styling */
.btn-secondary {
    background: var(--bazical-gray-100);
    color: var(--bazical-text-primary);
    border: 1px solid var(--bazical-gray-200);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bazical-gray-200);
    border-color: var(--bazical-gray-300);
    transform: translateY(-1px);
    color: var(--bazical-text-primary);
    text-decoration: none;
}

.btn-secondary:focus {
    outline: 2px solid var(--bazical-focus);
    outline-offset: 2px;
}

/* Mobile responsive for course buttons */
@media (max-width: 768px) {
    .course-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .course-buttons .btn {
        width: 100%;
        flex: none;
    }
}

/* Course-specific theming with better contrast */
.course-card:nth-child(1) .course-image {
    background: linear-gradient(135deg, #3776ab, #306998); /* Python blue */
}

.course-card:nth-child(2) .course-image {
    background: linear-gradient(135deg, var(--bazical-success), #047857); /* SQL green */
}

.course-card:nth-child(3) .course-image {
    background: linear-gradient(135deg, var(--bazical-warning), #B45309); /* AI orange */
}

/* Hero section - UX optimized */
.hero {
    color: white; /* Ensure all hero text is white */
}

.hero-title {
    color: white; /* White title text for contrast */
}

.hero .highlight {
    color: white; /* Override any yellow/pink highlights to white */
    font-weight: 700; /* Make it bold for emphasis */
}

.hero-title .highlight {
    color: white; /* White text for contrast against gradient background */
    font-weight: 700; /* Make it bold for emphasis */
}

.hero-description {
    color: white; /* White description text for contrast */
    opacity: 0.9; /* Slightly transparent for hierarchy */
    line-height: 1.7;
}

/* Hero graphic icon - make white for consistency */
.hero-graphic i {
    color: white !important; /* Override yellow color to white */
}

/* Text hierarchy - improved readability for non-hero sections */
.section-title {
    color: #553575 !important; /* Purple color for all section titles */
    font-weight: 800 !important; /* Extra bold for better visibility */
}

/* Stats section */
.stat h3 {
    color: var(--bazical-pink);
}

/* Form styling - UX optimized */
.form-group input,
.form-group textarea {
    border: 1px solid var(--bazical-gray-300);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bazical-pink);
    box-shadow: 0 0 0 3px var(--bazical-focus-ring);
    outline: none;
}

.form-group input:invalid,
.form-group textarea:invalid {
    border-color: var(--bazical-error);
}

/* Footer links */
.social-links a {
    background: var(--bazical-gray-100);
    color: var(--bazical-text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--bazical-pink);
    color: white;
    transform: translateY(-2px);
}

/* Footer color fixes - change yellow to white */
.footer-section h3,
.footer-section h4 {
    color: white !important; /* Override yellow (#fbbf24) to white */
}

.footer-section a:hover {
    color: white !important; /* Override yellow hover to white */
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
*:focus {
    outline: 2px solid var(--bazical-focus);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bazical-pink: #C1185C;
        --bazical-pink-hover: #A0145A;
        --bazical-text-primary: #000000;
        --bazical-text-secondary: #333333;
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bazical-light: #1F2937;
        --bazical-text-primary: #F9FAFB;
        --bazical-text-secondary: #D1D5DB;
        --bazical-gray-100: #374151;
        --bazical-gray-200: #4B5563;
    }
    
    .course-card {
        background: var(--bazical-gray-100);
        border-color: var(--bazical-gray-200);
    }
    
    /* Enhanced dark mode text contrast */
    .course-card .course-content h3 {
        color: #F9FAFB; /* Very light for dark backgrounds */
        font-weight: 700;
    }
    
    .course-card .course-content p {
        color: #E5E7EB; /* Light gray for good readability on dark */
        font-weight: 400;
    }
    
    .course-card .course-meta {
        color: #D1D5DB; /* Light meta text for dark mode */
        font-weight: 500;
    }
}
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .nav-logo .logo-img {
        height: 35px;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Loading animations - UX optimized */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card {
    animation: fadeInUp 0.6s ease forwards;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
