/* Base styles */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* CVMatchMaker Brand Colors */
:root {
    --brand-primary: #245fbe;
    --brand-teal: #2ddac6;
    --brand-sky: #49d7fd;
    --bs-primary: #245fbe;
    --bs-primary-rgb: 36, 95, 190;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0a1628;
    --bs-body-bg-rgb: 10, 22, 40;
    --bs-tertiary-bg: #0d1a2d;
    --bs-tertiary-bg-rgb: 13, 26, 45;
    --bs-secondary-bg: #0d1a2d;
    --bs-secondary-bg-rgb: 13, 26, 45;
    --bs-primary: #49d7fd;
    --bs-primary-rgb: 73, 215, 253;
    --accent-gradient: linear-gradient(135deg, #245fbe 0%, #2ddac6 100%);
    --accent-glow: rgba(45, 218, 198, 0.4);
}

/* Gradient text utility */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient background utility */
.bg-gradient-primary {
    background: var(--accent-gradient) !important;
}

/* Focus states */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--bs-body-bg), 0 0 0 0.25rem var(--bs-primary);
}

/* Card styles for dark mode */
.card {
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    border-color: rgba(255, 255, 255, 0.1);
}

.card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

/* Glass morphism effect for cards */
.card-glass {
    background: rgba(18, 32, 53, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 218, 198, 0.1);
}

/* Kanban board styles - dark mode optimized */
.kanban-column .card-body {
    background-color: var(--bs-tertiary-bg);
}

.kanban-column .card-body .card {
    transition: transform 0.1s ease-in-out;
    background-color: var(--bs-secondary-bg);
}

.kanban-column .card-body .card:hover {
    transform: translateY(-2px);
}

/* Score badges - dark mode optimized */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
}

.score-badge.score-high {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 2px solid #22c55e;
}

.score-badge.score-medium {
    background-color: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 2px solid #eab308;
}

.score-badge.score-low {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 2px solid #ef4444;
}

/* Loading spinner - dark mode */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Mascot animations */
.mascot-pulse {
    animation: mascot-pulse 2s ease-in-out infinite;
}

@keyframes mascot-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mascot-bounce {
    animation: mascot-bounce 1s ease-in-out infinite;
}

@keyframes mascot-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mascot-float {
    animation: mascot-float 3s ease-in-out infinite;
}

@keyframes mascot-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

/* Custom scrollbar for dark mode */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-tertiary-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Kanban specific scrollbar */
.kanban-column .card-body::-webkit-scrollbar {
    width: 6px;
}

.kanban-column .card-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.kanban-column .card-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.kanban-column .card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Hero section enhancements */
.hero-section {
    background: linear-gradient(160deg, #0a1628 0%, #0d2847 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(36, 95, 190, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 100%, rgba(45, 218, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated gradient border */
.border-gradient {
    position: relative;
    border-radius: 0.5rem;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Glow effect for primary buttons */
.btn-primary {
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(45, 218, 198, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d6fd4 0%, #3ae8d4 100%);
    box-shadow: 0 6px 20px rgba(45, 218, 198, 0.5);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Outline buttons for dark mode */
.btn-outline-primary {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

.btn-outline-primary:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

/* Form controls dark mode enhancement */
.form-control, .form-select {
    background-color: var(--bs-tertiary-bg);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--bs-body-color);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 0.25rem rgba(45, 218, 198, 0.2);
}

/* Navbar dark mode */
.navbar {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 218, 198, 0.1);
    z-index: 1030;
    position: relative;
}

/* Feature cards with icons */
.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(45, 218, 198, 0.25);
}

/* Dimension icons with gradient variants */
.dimension-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.dimension-icon.dimension-skills {
    background: linear-gradient(135deg, #245fbe 0%, #2ddac6 100%);
    box-shadow: 0 4px 12px rgba(45, 218, 198, 0.3);
}

.dimension-icon.dimension-experience {
    background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.dimension-icon.dimension-tools {
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.dimension-icon.dimension-culture {
    background: linear-gradient(135deg, #ca8a04 0%, #facc15 100%);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.dimension-icon.dimension-constraints {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.dimension-icon.dimension-overall {
    background: linear-gradient(135deg, #245fbe 0%, #49d7fd 100%);
    box-shadow: 0 4px 12px rgba(73, 215, 253, 0.3);
}

/* Stats/numbers styling */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge enhancements */
.badge.bg-light {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .kanban-board {
        padding-bottom: 1rem;
    }

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

/* Blog card styles */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.4) !important;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(45, 218, 198, 0.35);
    }
    50% {
        box-shadow: 0 4px 25px rgba(45, 218, 198, 0.55);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Code/pre blocks */
pre, code {
    background-color: var(--bs-tertiary-bg);
    border-radius: 0.375rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

code {
    padding: 0.125rem 0.375rem;
    color: #2ddac6;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid var(--brand-teal);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--bs-secondary-color);
    font-style: italic;
}

/* Testimonials carousel */
#testimonialCarousel .carousel-indicators {
    margin: 0;
}

#testimonialCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    opacity: 0.5;
}

#testimonialCarousel .carousel-indicators button.active {
    opacity: 1;
}

#testimonialCarousel blockquote {
    border-left: none;
    font-style: normal;
}

/* Google Sign-In Button */
.btn-google {
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    color: #3c4043;
    border-color: #dadce0;
}

.btn-google:focus {
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
    border-color: #4285f4;
}

.btn-google:active {
    background-color: #f1f3f4;
}

/* CV Content Box - dark theme compatible */
.cv-content-box {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 600px;
    overflow-y: auto;
}

/* Marquee/Ticker Section */
.marquee-section {
    overflow: hidden;
    background: var(--bs-tertiary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-container {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-container:hover {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    padding: 0 1.5rem;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.marquee-item .marquee-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marquee-item .marquee-label {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    max-width: 120px;
    line-height: 1.2;
}

.marquee-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    align-self: center;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Fade edges */
.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(90deg, var(--bs-tertiary-bg) 0%, transparent 100%);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(270deg, var(--bs-tertiary-bg) 0%, transparent 100%);
}

.marquee-section {
    position: relative;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 1rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--bs-border-color);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bs-secondary-color);
}

.cookie-consent-text i {
    font-size: 1.1rem;
    color: var(--bs-warning);
}

.cookie-privacy-link {
    color: var(--bs-primary);
    text-decoration: none;
}

.cookie-privacy-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}
