@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Outfit:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --primary-dark: #0a0a1a;
  --primary-card: #111128;
  --primary-border: #1e1e3f;
  --gradient-hero: linear-gradient(135deg, #6c3de8 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-button: linear-gradient(135deg, #7c3aed, #3b82f6);
  --gradient-badge: linear-gradient(135deg, #f59e0b, #ef4444);
  --accent-neon: #00f5ff;
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --max-width: 1200px;
}

[data-theme="light"] {
  --primary-dark: #f8fafc;
  --primary-card: #ffffff;
  --primary-border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(0, 245, 255, 0.15), transparent 25%);
  filter: blur(80px);
  z-index: -2;
  animation: floatOrb 6s infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 100%);
  background-size: 100% 40px;
  z-index: -1;
  pointer-events: none;
}

[data-theme="light"] body::after {
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 100%);
}

h1, h2, h3, h4, h5, h6 { font-family: 'Syne', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
code, .tag { font-family: 'JetBrains Mono', monospace; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Glassmorphism System */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(108, 61, 232, 0.15);
  transition: all 0.3s ease;
}
[data-theme="light"] .glass-card { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 0, 0, 0.05); }
.glass-card:hover { transform: translateY(-6px); box-shadow: 0 12px 48px rgba(108, 61, 232, 0.25); }

/* Typography Scale */
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 2rem; }
.card-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.text-small { font-size: 0.85rem; color: var(--text-secondary); }
.tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.gradient-text { background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.3s ease; font-family: 'Outfit', sans-serif; gap: 0.5rem; text-align: center;
}
.btn-primary { background: var(--gradient-button); color: #fff; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(124, 58, 237, 0.4); }
.btn-primary:hover { transform: translateY(-2px); animation: neonPulse 1.5s infinite alternate; }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); border: 1px solid var(--primary-border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes neonPulse { 0% { box-shadow: 0 0 10px var(--accent-neon); } 100% { box-shadow: 0 0 20px var(--accent-neon), 0 0 30px var(--accent-purple); } }
@keyframes floatOrb { from { transform: translateY(-20px); } to { transform: translateY(20px); } }

.animate-up { animation: fadeInUp 0.6s forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; height: 72px; display: flex; align-items: center; z-index: 1000; transition: background 0.3s, backdrop-filter 0.3s; }
.navbar.scrolled { background: rgba(10, 10, 26, 0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--primary-border); }
[data-theme="light"] .navbar.scrolled { background: rgba(255, 255, 255, 0.8); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient-button); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle, .mobile-toggle { background: none; border: none; color: var(--text-primary); font-size: 1.2rem; cursor: pointer; padding: 0.5rem; }
.mobile-toggle { display: none; }
.saved-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.05); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; }

@media (max-width: 768px) {
  .nav-links { position: fixed; top: 72px; left: 0; width: 100%; background: var(--primary-dark); flex-direction: column; padding: 2rem; gap: 1.5rem; align-items: center; border-bottom: 1px solid var(--primary-border); clip-path: circle(0% at top right); transition: all 0.4s ease; }
  .nav-links.open { clip-path: circle(150% at top right); }
  .mobile-toggle { display: block; }
  .nav-actions .btn-primary { display: none; }
}

/* Base Job Layout/Cards - Common for all Job Pages */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.jobs-list { display: flex; flex-direction: column; gap: 1rem; }

.job-card { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 1.5rem; height: 100%; }
.job-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-blue); }
.job-card.cat-tech::before { background: #3b82f6; } .job-card.cat-finance::before { background: #10b981; } .job-card.cat-design::before { background: #f59e0b; } .job-card.cat-marketing::before { background: #8b5cf6; } .job-card.cat-internship::before { background: #f59e0b; } .job-card.cat-remote::before { background: #00f5ff; }

.job-card-header { display: flex; gap: 1rem; margin-bottom: 1rem; }
.company-logo { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-border); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; color: #fff; }
.job-meta { display: flex; flex-direction: column; justify-content: center; }
.company-name { font-size: 0.9rem; color: var(--text-secondary); }
.job-location { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.job-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.job-desc-snippet { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.salary { font-weight: 600; color: var(--success); }

/* List layout modifications */
.job-card-list { flex-direction: row; align-items: center; padding: 1.5rem; gap: 1.5rem; }
@media (max-width: 768px) { .job-card-list { flex-direction: column; align-items: flex-start; } }
.job-card-list .job-desc-snippet { margin-bottom: 0; }
.job-card-list .job-actions { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
@media (max-width: 768px) { .job-card-list .job-actions { margin-left: 0; width: 100%; justify-content: space-between; margin-top: 1rem; } }

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, var(--primary-border) 25%, rgba(255, 255, 255, 0.05) 50%, var(--primary-border) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
.skeleton-text { height: 1em; width: 100%; margin-bottom: 0.5rem; }
.skeleton-title { height: 1.5em; width: 80%; }
.skeleton-logo { width: 50px; height: 50px; border-radius: 12px; }
.skeleton-btn { height: 40px; width: 100px; border-radius: 8px; }

/* Ads Section Global */
.ad-container { margin: 30px 0; padding: 10px; text-align: center; }
.ad-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }

/* Footer */
.footer { background: var(--primary-card); border-top: 1px solid var(--primary-border); padding: 4rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: var(--text-secondary); } .footer-links a:hover { color: var(--accent-blue); }
.social-icons { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.social-icon:hover { background: var(--accent-purple); color: #fff; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--primary-border); color: var(--text-muted); font-size: 0.9rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--primary-card); border: 1px solid var(--primary-border); cursor: pointer; transition: all 0.3s; }
.page-btn:hover:not(:disabled) { background: var(--accent-purple); color: #fff; border-color: var(--accent-purple); }
.page-btn.active { background: var(--gradient-button); color: #fff; border: none; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Empty / Error States */
.state-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; height: 100%; }
.state-icon { font-size: 4rem; margin-bottom: 1rem; }
.state-message { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--primary-card); color: var(--text-primary); padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); border-left: 4px solid var(--accent-blue); transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); display: flex; align-items: center; gap: 0.8rem; }
.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* Text Alignment Utility */
.text-center { text-align: center; }

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
