/**
 * C5Z Custom Styles
 * Main stylesheet for c5z.tech
 *
 * Table of Contents:
 * 1. CSS Variables (Colors)
 * 2. Layout
 * 3. Navigation
 * 4. Buttons & Links
 * 5. Theme Toggle
 * 6. Utilities
 */

/* ==========================================
   1. CSS VARIABLES (COLORS)
   ========================================== */

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
}

/* Dark mode color adjustments */
[data-bs-theme="dark"] {
    --primary-color: #64B5F6;
    --primary-dark: #42A5F5;
}

/* ==========================================
   2. LAYOUT
   ========================================== */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

footer {
    border-top: 1px solid var(--bs-border-color);
    margin-top: auto;
}

/* ==========================================
   3. NAVIGATION
   ========================================== */

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* ==========================================
   4. BUTTONS & LINKS
   ========================================== */

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   5. THEME TOGGLE
   ========================================== */

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    color: var(--bs-nav-link-color);
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* ==========================================
   6. UTILITIES
   ========================================== */

/* Smooth transitions for interactive elements */
.card,
.btn,
.form-control,
.alert {
    transition: all 0.3s ease;
}

/* Card hover effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.theme-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 6px;
}

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

/* ==========================================
   PAGE-SPECIFIC STYLES
   ========================================== */

/* Homepage hero section */
.hero-section {
    padding: 4rem 0;
}

/* Feature cards */
.feature-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.15);
}

/* Icon styling */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .navbar,
    footer,
    .theme-toggle,
    .dropdown {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* ==========================================
   COOKIE BANNER
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

[data-bs-theme="dark"] .cookie-banner {
    background: linear-gradient(135deg, #0d47a1 0%, #1565C0 100%);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: white;
    font-weight: 500;
}

.cookie-banner a:hover {
    color: #e3f2fd;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem 0;
    }

    .cookie-banner .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}
