/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #4f46e5; /* Indigo */
    --primary-hover: #4338ca;
    --secondary: #0ea5e9; /* Sky Blue */
    --background: #f0fdf4; /* Light Greenish background for freshness, or maybe slate? Let's use #f8fafc */
    --background: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --danger: #ef4444;
    --success: #10b981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --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-glow: 0 0 20px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] {
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --secondary: #38bdf8;
    --background: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.85);
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.8);
    --danger: #f87171;
    --success: #34d399;
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--background);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0.03) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.03) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.03) 0, transparent 50%);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 0% 0%, hsla(253, 50%, 20%, 0.15) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225, 50%, 20%, 0.15) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339, 50%, 20%, 0.15) 0, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.main-content {
    flex: 1;
    padding: 3rem 0;
}

/* Header & Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    gap: 0.5rem;
}

.btn-block { width: 100%; display: flex; }
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; 
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}
.btn-outline { 
    background-color: transparent; 
    border: 2px solid var(--border); 
    color: var(--text-dark); 
}
.btn-outline:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
    background: rgba(79, 70, 229, 0.05);
}
.btn-danger { background-color: var(--danger); color: white; }

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem;
    position: relative;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 800px;
    background: linear-gradient(135deg, var(--text-dark), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Features Grid */
.features-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 2rem; 
}

/* Cards & Glassmorphism */
.card, .feature-card, .job-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card {
    text-align: center;
}

.feature-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-card:hover, .job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Auth Pages */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 2rem 0;
}
.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-family: var(--font-heading);
    font-weight: 500; 
    font-size: 0.95rem; 
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

[data-theme="dark"] .form-control {
    background: rgba(30, 41, 59, 0.9);
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); 
    background: white;
}

[data-theme="dark"] .form-control:focus {
    background: rgba(15, 23, 42, 1);
}

/* Jobs Grid */
.job-card {
    display: flex;
    flex-direction: column;
}

.job-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    line-height: 1.3;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(79, 70, 229, 0.1));
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.job-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-description {
    flex: 1;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dashboard Extras */
.dashboard-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 2.5rem; 
    flex-wrap: wrap; 
    gap: 1.5rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.widget-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: block;
    transition: color 0.2s;
}

.widget-list a:hover {
    color: var(--primary);
}

.widget-list .date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Alerts */
.alert { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid transparent; display: flex; align-items: center; gap: 0.75rem; }
.alert-danger { background-color: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: var(--danger); }
.alert-success { background-color: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: var(--success); }

/* Footer */
.footer { 
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); 
    padding: 3rem 0; 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-top: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .footer {
    background: rgba(15, 23, 42, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero::before {
        width: 300px;
        height: 300px;
        left: 50%;
        transform: translateX(-50%);
    }
    .navbar .container { flex-direction: column; text-align: center; }
    .nav-links { justify-content: center; gap: 1rem; width: 100%; }
    .grid-3 { grid-template-columns: 1fr; }
    .card { padding: 1.5rem; }
}

