/* Career.Solar - Custom Styles */

/* ============================================
   CSS Custom Properties (Color Palette)
   ============================================ */
:root {
  /* Primary - Solar Energy */
  --solar-50: #fffbeb;
  --solar-100: #fef3c7;
  --solar-200: #fde68a;
  --solar-300: #fcd34d;
  --solar-400: #fbbf24;
  --solar-500: #f59e0b;
  --solar-600: #d97706;
  --solar-700: #b45309;
  --solar-800: #92400e;
  --solar-900: #78350f;

  /* Secondary - Eco Green */
  --eco-50: #f0fdf4;
  --eco-100: #dcfce7;
  --eco-200: #bbf7d0;
  --eco-300: #86efac;
  --eco-400: #4ade80;
  --eco-500: #22c55e;
  --eco-600: #16a34a;
  --eco-700: #15803d;
  --eco-800: #166534;
  --eco-900: #14532d;

  /* Accent - Sky Blue */
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Shadows */
  --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);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* ============================================
   Base Styles
   ============================================ */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background-color: white;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display font for headings */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

/* ============================================
   Utility Classes
   ============================================ */

/* Gradient backgrounds */
.bg-solar-gradient {
  background: linear-gradient(135deg, var(--solar-400) 0%, var(--solar-600) 100%);
}

.bg-eco-gradient {
  background: linear-gradient(135deg, var(--eco-400) 0%, var(--eco-600) 100%);
}

.bg-hero-gradient {
  background: linear-gradient(180deg, var(--solar-50) 0%, white 100%);
}

/* Text gradients */
.text-solar-gradient {
  background: linear-gradient(135deg, var(--solar-500) 0%, var(--solar-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-eco-gradient {
  background: linear-gradient(135deg, var(--eco-500) 0%, var(--eco-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   Component Styles
   ============================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--solar-500) 0%, var(--solar-600) 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-eco {
  background: linear-gradient(135deg, var(--eco-500) 0%, var(--eco-600) 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.4);
}

.btn-eco:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(34, 197, 94, 0.5);
}

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

.btn-outline:hover {
  background: var(--solar-500);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.card-flat:hover {
  border-color: var(--solar-400);
  box-shadow: var(--shadow-md);
}

/* Job Card specific */
.job-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  overflow: hidden;
  min-width: 0; /* Prevent flex/grid children from overflowing */
  max-width: 100%;
  word-break: break-word;
}

/* Ensure job card content doesn't overflow on mobile */
.job-card * {
  min-width: 0;
}

.job-card:hover {
  border-color: var(--solar-200);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.job-card-featured {
  border: 2px solid var(--solar-400);
  background: linear-gradient(180deg, var(--solar-50) 0%, white 100%);
  position: relative;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.job-card-featured::before {
  content: '⭐';
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.job-card-featured:hover {
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
}

/* Tags/Badges */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-700);
}

.tag-solar {
  background: var(--solar-100);
  color: var(--solar-700);
}

.tag-eco {
  background: var(--eco-100);
  color: var(--eco-700);
}

.tag-sky {
  background: var(--sky-100);
  color: var(--sky-700);
}

/* Input styles */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  background: white;
}

.input:focus {
  outline: none;
  border-color: var(--solar-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-lg {
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
}

/* Search box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  background: transparent;
}

.search-box input:focus {
  outline: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav-link {
  position: relative;
  color: var(--gray-600);
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--gray-900);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--solar-500);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--solar-600);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 100;
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 101;
}

.mobile-menu.active .mobile-menu-panel {
  transform: translateX(0);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--solar-50) 0%, white 50%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--solar-500), var(--eco-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* ============================================
   Category Cards
   ============================================ */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.category-card:hover {
  border-color: var(--solar-200);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
  transform: translateY(-4px);
}

.category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--solar-50);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  color: var(--solar-600);
  font-size: 1.75rem;
}

.category-card:hover .category-icon {
  background: var(--solar-100);
}

.category-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: white;
}

.footer-heading {
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Form Styles
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.form-error {
  font-size: 0.875rem;
  color: #ef4444;
  margin-top: 0.5rem;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

textarea.input {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox & Radio */
.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input,
.radio-label input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--solar-500);
}

/* ============================================
   Filter Sidebar
   ============================================ */
.filter-section {
  margin-bottom: 2rem;
}

.filter-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.filter-option:hover {
  color: var(--gray-900);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pagination-btn:hover {
  border-color: var(--solar-400);
  color: var(--solar-600);
}

.pagination-btn.active {
  background: var(--solar-500);
  border-color: var(--solar-500);
  color: white;
}

/* ============================================
   Dashboard Styles
   ============================================ */
.dashboard-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
}

.dashboard-stat {
  text-align: center;
  padding: 1.5rem;
}

.dashboard-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.dashboard-stat-label {
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* ============================================
   Profile Styles
   ============================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.profile-section {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-section-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--solar-500);
  border: 2px solid white;
  box-shadow: 0 0 0 3px var(--solar-100);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .search-box input {
    width: 100%;
    padding: 0.75rem;
  }

  .search-box .btn {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.25rem;
  }
}

/* ============================================
   Loading States
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: 1em;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}
