/* WCS Skill India Core Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Light Mode Default Variables */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-card: rgba(255, 255, 255, 0.5);
    --border-outline: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-grad: linear-gradient(135deg, #6366f1, #a855f7);
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --success-color: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --accent-glow: 0 0 15px rgba(99, 102, 241, 0.3);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-blur: blur(12px);
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --bg-main: #0b0f19;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-outline: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --accent-glow: 0 0 20px rgba(168, 85, 247, 0.4);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(168, 85, 247, 0.25);
}

/* Gradient text & backgrounds */
.text-gradient {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient {
    background: var(--primary-grad);
    color: white !important;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

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

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 4s ease-in-out infinite;
}

/* Hero Section */
.hero-wrapper {
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 90%);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-outline);
}

.card-accent-green {
    border-left: 5px solid var(--success-color);
}

.card-accent-purple {
    border-left: 5px solid var(--secondary-color);
}

/* Badges styling */
.badge-custom {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-verified {
    background-color: var(--success-bg);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-expert {
    background-color: rgba(168, 85, 247, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-skilled {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-beginner {
    background-color: rgba(71, 85, 105, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Video Resume Reels Feed Layout */
.reels-container {
    max-width: 450px;
    margin: 0 auto;
    height: calc(100vh - 120px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
}

.reels-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.reel-card {
    height: calc(100vh - 120px);
    scroll-snap-align: start;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    color: white;
    padding: 30px 20px 20px 20px;
    z-index: 2;
}

.reel-actions {
    position: absolute;
    right: 15px;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 3;
}

.action-btn {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--primary-grad);
}

.action-count {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Typing Test styling */
.test-box {
    border: 1px solid var(--border-outline);
    border-radius: 12px;
    padding: 20px;
    background: rgba(0,0,0,0.02);
    font-size: 1.15rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .test-box {
    background: rgba(255,255,255,0.02);
}

.test-words span {
    border-bottom: 2px solid transparent;
}

.test-words span.highlight {
    background-color: rgba(99, 102, 241, 0.25);
    border-bottom: 2px solid var(--primary-color);
}

.test-words span.correct {
    color: var(--success-color);
}

.test-words span.incorrect {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.15);
}

/* Map placeholder integration */
.map-placeholder {
    height: 400px;
    background-color: #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

[data-theme="dark"] .map-placeholder {
    background-color: #1e293b;
}

/* Dark Mode Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: relative;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: block;
    height: 26px;
    width: 50px;
}

.slider:before {
    background-color: white;
    bottom: 3px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 20px;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary-grad);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Grid overlay background */
.grid-bg {
    position: relative;
}

.grid-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Profile header in dashboards */
.dashboard-hdr {
    background: var(--primary-grad);
    border-radius: 20px;
    color: white;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

/* Loader style */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(99, 102, 241, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Live status indicator pulse animation */
.pulse-green {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green-anim 2s infinite;
}

@keyframes pulse-green-anim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
