/* Modern Color Palette */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #4895ef;
  --secondary: #4cc9f0;
  --accent: #f72585;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f43f5e;
  --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;
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --bg-light: #ffffff;
  --bg-dark: #0f172a;
}

/* Base Styles */
body {
  --tw-bg-opacity: 1;
  background-color: var(--bg-light);
  color: var(--text-dark);
  /*font-family: 'Poppins', sans-serif;*/
}

/* Typography */
h1{
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  font-weight: 500;
}

a {
  color: var(--primary);
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: var(--primary-dark);
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: #3db8df;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

/* Header Styles */
.header-modern {
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

/* Background Pattern for Hero */
.bg-pattern-dots {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Spinner Animation */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hover Effects */
.hover\:scale-110:hover {
  transform: scale(1.1);
}

.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Switch Component */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.switch-label {
  margin-right: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: .4s;
}

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

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

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

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

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Navbar */
#navbar-default.show {
  transform: scale(1);
  opacity: 1;
}

/* Tooltips */
.coming-soon-link, .bookmark-link {
  position: relative;
  display: inline-block;
}

.coming-soon-link:hover::after {
  content: "Coming Soon!";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1;
  background-color: var(--gray-800);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 5px;
}

.bookmark-link {
  content: "Bookmarks this job";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1;
  background-color: var(--gray-800);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 5px;
}

.coming-soon-link:hover::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--gray-800) transparent;
}

/* Helper Classes */
.hidden {
 /* display: none;*/
}

.icon-up:before {
  content: "↑";
}

.icon-down:before {
  content: "↓";
}

/* Height Utilities */
@media (min-width: 640px) {
    .h-100 {
        height: 25rem;
    }
}

.text-gray-base {
  color: #4b5563;
}

.bg-gray-base {
  background-color: #f9fafb;
}

/* Loading Indicator */
.loader {
  border-top-color: var(--primary);
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Carousel Animation */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel.animate {
  animation: scroll 25s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel.animate:hover {
  animation-play-state: paused;
}

/* Job Card Styling */
.job-card {
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.job-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.job-card-company {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.job-card-location {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.job-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.job-card-tag:hover {
  transform: translateY(-1px);
}

.tag-remote {
  background-color: #f5f3ff;
  color: #7c3aed;
}

.tag-salary {
  background-color: #ecfdf5;
  color: #059669;
}

.tag-industry {
  background-color: #f3f4f6;
  color: #4b5563;
}

/* Footer Styling */
.footer-modern {
  background-color: var(--gray-900);
  color: white;
}

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

.footer-link {
  display: block;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* Industry Cards */
.industry-card {
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.industry-card:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.industry-card:hover svg {
  color: white;
}

/* Pagination Links */
.pagination-link {
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background-color: var(--gray-100);
}

.pagination-link.active {
  background-color: var(--primary);
  color: white;
}

.pagination-link.active:hover {
  background-color: var(--primary-dark);
}

/* Section Title Styling */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}

/* Custom Font Classes */
.customlight {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

.customnormal {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.customsemibold {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.custombold {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Indicators - only used for subtle underlines, not for changing background color */
.selected-link {
  position: relative;
}

.selected-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--primary);
}

/* Bookmark Icon Animation */
.bookmark-icon {
  transition: all 0.2s ease;
}

.bookmark-icon:hover {
  transform: scale(1.2);
}

.bookmark-icon.bookmarked path {
  fill: currentColor;
}

/* Minimalist Industry Links Styling */
.industry-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.industry-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--gray-600);
  background-color: var(--gray-100);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.industry-link:hover {
  background-color: var(--primary-light);
  color: white;
}

.industry-link.active {
  background-color: var(--primary);
  color: white;
}

.industry-count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

/* Minimalist Category Selector */
.category-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.category-button {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--gray-600);
  background-color: transparent;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-button.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Show More/Less Button */
.show-more-button {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--primary);
  background-color: transparent;
  border: 1px solid var(--primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.show-more-button:hover {
  background-color: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .industry-links-container {
    gap: 0.375rem;
  }
  
  .industry-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

.job-card .bookmark-icon {
  opacity: 0.7;
  transition: all 0.2s ease;
}

.job-card:hover .bookmark-icon {
  opacity: 1;
}

.bookmark-icon.text-primary {
  opacity: 1 !important;
  transform: scale(1.1);
}

/* Custom shadow transition for job cards */
.job-card {
  transition-property: box-shadow !important;
  transition-timing-function: cubic-bezier(.4,0,.2,1) !important;
  transition-duration: 150ms !important;
  transform: translate3d(0, 0, 0); /* Prevent vertical movement */
  backface-visibility: hidden;
}

.job-card:hover {
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
  transform: translate3d(0, 0, 0); /* Prevent vertical movement */
}

/* Styles moved from company.php */

.filter-select {
    @apply w-full px-4 py-2 rounded-lg border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent;
    background-color: white;
    transition: all 0.3s ease;
}

.filter-select:hover {
    @apply border-primary;
}

.company-stats {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    margin: 0.5rem;
}

.company-stats svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.company-stats span {
    color: white;
    font-weight: 500;
}

/* Logo Placeholder CSS */
.logo-placeholder-container {
    position: relative; /* Needed for ::before positioning */
    color: rgba(0,0,0,0.6); 
    font-weight: 600; /* Corresponds to font-semibold */
    font-size: 1.125rem; /* base size - text-lg */
    line-height: 1; /* Ensure text centers vertically */
}

.logo-placeholder-container::before {
    content: attr(data-initials); /* Display initials */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; /* Use flex to center content */
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: inherit;
    font-size: inherit; 
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
}

.logo-placeholder-container.img-error::before {
    opacity: 1; /* Show initials when image fails */
}

.logo-placeholder-container img:not([src*='.png']):not([src*='.jpg']):not([src*='.jpeg']):not([src*='.gif']):not([src*='.svg']) {
     display: none; 
}

/* Section title styles from index.php */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem; /* mb-6 */
}

.section-title::after {
    content: "";
    @apply absolute -bottom-2 left-0 w-10 h-[3px] bg-[var(--primary)] rounded-md;
}

.compact-title {
    margin-bottom: 0.5rem; /* mb-2 */
}

.compact-title::after {
    @apply absolute -bottom-1 w-8 h-0.5; /* Re-applied Tailwind for consistency */
}

/* Carousel styles from index.php */
.carousel-track {
    @apply will-change-transform;
}

.carousel-item {
    @apply select-none;
    /* -webkit-user-drag: none; Removed, select-none usually covers this */
}

.carousel-prev:hover, .carousel-next:hover {
    @apply hover:opacity-100 !important; /* Keep !important as in original */
}

