/* 
 * Premium Design System for Namma Jobhub 
 * Modern, Clean, and Professional
 */

:root {
    /* Color Palette - Premium Indigo & Royal Blue */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --white: #ffffff;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(79, 70, 229, 0.2); }
    50% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.4); }
    100% { box-shadow: 0 0 5px rgba(79, 70, 229, 0.2); }
}

.fade-in-up {
    opacity: 0;
}

.page-loaded .fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.glow-on-hover:hover {
    animation: glow 2s infinite;
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-red {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-blue {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.animate-pulse-red { animation: pulse-red 2s infinite; }
.animate-pulse-blue { animation: pulse-blue 2s infinite; }

.pulse-primary { animation: pulse-soft 2s infinite; }

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Navbar Caret Removal */
.navbar .dropdown-toggle::after {
    display: none;
}

.hvr-grow {
    transition: transform 0.2s ease;
}

.hvr-grow:hover {
    transform: scale(1.05);
}

.stagger-1 { animation-delay: 0.2s; }
.stagger-2 { animation-delay: 0.4s; }
.stagger-3 { animation-delay: 0.6s; }
.stagger-4 { animation-delay: 0.8s; }
.stagger-5 { animation-delay: 1s; }

/* Premium Navigation */
.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utility Classes */
.extra-small { font-size: 0.725rem; }
.line-height-1 { line-height: 1.2; }
.opacity-10 { opacity: 0.1 !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.05);
}

/* Premium Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent),
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.08), transparent);
    padding: 100px 0;
    overflow: hidden;
}

.search-bar {
    background: var(--white);
    padding: 8px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.search-bar .form-control {
    font-size: 1rem;
    padding-left: 15px;
}

/* Premium Cards */
.card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.hover-shadow:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Category Cards */
.cat-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.cat-icon-premium {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .cat-icon-premium {
    transform: scale(1.1) rotate(5deg);
}

/* Job Listing Cards */
.job-card {
    border-left: 4px solid transparent;
}

.job-card:hover {
    border-left-color: var(--primary);
}

.job-type-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.type-full-time { background: #ecfdf5; color: #059669; }
.type-part-time { background: #eff6ff; color: #2563eb; }

/* Dashboard Sidebar */
.sidebar-premium {
    background: var(--white);
    border-radius: 24px;
    padding: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-premium .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px !important;
    margin: 4px 12px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    transition: all 0.25s ease;
}

.sidebar-premium .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all 0.25s ease;
}

.sidebar-premium .nav-link:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary) !important;
}

.sidebar-premium .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    font-weight: 600;
}

.sidebar-premium .nav-link.active i {
    opacity: 1;
}

.sidebar-premium .logout-link:hover {
    background: rgba(239, 68, 68, 0.05);
    color: var(--danger) !important;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.hvr-grow {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hvr-grow:hover {
    transform: scale(1.05);
}

.rounded-4 { border-radius: 1.5rem !important; }
.rounded-5 { border-radius: 2rem !important; }

.bg-indigo { background-color: #4f46e5 !important; }
.text-indigo { color: #4f46e5 !important; }
.border-indigo { border-color: #4f46e5 !important; }

.bg-emerald { background-color: #10b981 !important; }
.text-emerald { color: #10b981 !important; }
.border-emerald { border-color: #10b981 !important; }

.object-fit-cover { object-fit: cover; }

.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.75rem !important; }

/* Footer Premium */
footer {
    background: var(--dark) !important;
    padding-top: 80px !important;
}

footer h4, footer h5 {
    color: var(--white);
}

footer .nav-link, footer .text-secondary {
    color: #94a3b8 !important;
}

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

/* =============================================
   Responsive Design & Media Queries
   ============================================= */

/* Large Tablets & Small Laptops (992px and below) */
@media (max-width: 991.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section {
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2.8rem !important;
    }
    
    .display-6 {
        font-size: 2.2rem !important;
    }
}

/* Tablets & Mobile (768px and below) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }

    .display-3 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .display-6 {
        font-size: 1.8rem !important;
    }

    .lead {
        font-size: 1.1rem !important;
    }

    /* Stack Search Bar on Mobile */
    .search-bar {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 24px !important;
        padding: 1.25rem !important;
        gap: 12px !important;
    }

    .search-bar .vr {
        display: none !important;
    }

    .search-bar .input-group {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 8px;
    }

    .search-bar .form-control {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 0.95rem !important;
    }

    .search-bar .btn {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }

    /* Popular Tags Mobile */
    .hero-section .gap-3 {
        gap: 10px !important;
    }

    /* Job Card Adjustments */
    .job-card .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .job-card .d-flex.align-items-center {
        width: 100%;
    }

    .job-card .d-flex.gap-2 {
        width: 100% !important;
    }

    .job-card .btn {
        width: 100% !important;
        text-align: center;
    }

    /* Category Cards - Better Grid */
    .cat-card {
        padding: 1.25rem 0.5rem !important;
    }

    .cat-icon-premium {
        width: 50px !important;
        height: 50px !important;
        border-radius: 12px !important;
        font-size: 1.2rem !important;
    }

    .cat-card h6 {
        font-size: 0.75rem !important;
        letter-spacing: 0 !important;
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 575.98px) {
    .display-3 {
        font-size: 1.9rem !important;
    }

    .hero-section p.lead {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Improve Job Card spacing */
    .job-card {
        padding: 1.25rem !important;
    }
    
    .job-card .bg-light.rounded-4 {
        width: 55px !important;
        height: 55px !important;
        margin-right: 12px !important;
    }

    .job-card h5 {
        font-size: 1rem !important;
    }

    .job-card .job-type-pill {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
    }

    .job-card p {
        font-size: 0.75rem !important;
        gap: 8px !important;
    }

    .job-card p span i {
        display: none; /* Hide icons on very small screens to save space if needed */
    }

    .job-card p span {
        display: inline-block;
    }
}