/* Root CSS Custom Properties for Theme Colors */
:root {
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --soft-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -3px rgba(0, 0, 0, 0.03);
  --hover-shadow: 0 20px 40px -5px rgba(59, 130, 246, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
  --dark-glass-bg: rgba(30, 41, 59, 0.85);
  --dark-glass-border: rgba(255, 255, 255, 0.08);
}

/* Base Typography */
body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: hidden;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Custom Navigation Logo & Buttons */
.bg-gradient-primary {
  background: var(--primary-gradient);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tracking-tight {
  letter-spacing: -0.025em;
}

/* Glassmorphism Classes */
.glass-navbar {
  background: var(--dark-glass-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--soft-shadow);
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Custom Cards */
.sign-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.sign-card .img-container {
  background: #f1f5f9;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: 200px;
}

.sign-card .img-container img {
  max-height: 120px;
  max-width: 120px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 6rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 40%);
  pointer-events: none;
}

/* Badges */
.badge-category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: 50px;
}

.badge-mandatory {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-cautionary {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-informational {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Footer elements */
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.social-icon-btn:hover {
  background: var(--primary-gradient);
  color: #ffffff;
}

/* Quiz UI Components */
.quiz-container {
  max-width: 750px;
  margin: 0 auto;
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
  cursor: pointer;
  outline: none;
}

.option-btn:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.option-btn.correct {
  background-color: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.option-btn.wrong {
  background-color: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.option-btn:disabled {
  cursor: not-allowed;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
  border-radius: 8px;
}

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

.skeleton-title {
  height: 1.75rem;
  margin-bottom: 1rem;
  width: 60%;
}

.skeleton-image {
  height: 150px;
  margin-bottom: 1rem;
  border-radius: 12px;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 4rem 0;
    text-align: center;
  }
  .hero-section form {
    margin: 0 auto;
  }
}


/* Prevent nav links from wrapping and style search bar */
.navbar-nav .nav-link {
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-size: 0.90rem;
  font-weight: 500;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.90rem;
  }
  .search-input {
    width: 120px !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .search-input:focus {
    width: 170px !important;
  }
}

/* SEO Internal Backlinks */
.text-primary.fw-semibold.border-bottom {
  transition: all 0.2s ease-in-out;
  border-bottom: 1.5px solid rgba(59, 130, 246, 0.25) !important;
}
.text-primary.fw-semibold.border-bottom:hover {
  color: #1d4ed8 !important;
  border-bottom-color: #1d4ed8 !important;
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: 4px;
  padding-left: 2px;
  padding-right: 2px;
}

/* Typography UX Optimizations */
.leading-relaxed {
  line-height: 1.8 !important;
  font-size: 1.05rem;
}
.lead-sm {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ==========================================================================
   Google Translate Styling & UI Stabilization
   ========================================================================== */

/* Hide Google Translate top banner, tooltips, and frame overlays */
.skiptranslate, 
.goog-te-banner-frame, 
.goog-te-banner, 
#goog-gt-tt, 
.goog-te-balloon-frame,
.goog-te-balloon-frame-escaped,
iframe[id*="google-translate"] {
  display: none !important;
  visibility: hidden !important;
}

/* Stabilize html and body layout offsets caused by Google Translate injection */
html {
  top: 0px !important;
  scrollbar-gutter: stable;
}

body {
  top: 0px !important;
  position: static !important;
}

/* Hide Google logo branding inside gadgets */
.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0px !important;
  height: 0px !important;
  overflow: hidden !important;
}

.goog-te-gadget span {
  display: none !important;
}

.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
}

/* ==========================================================================
   Instant Translation Skeleton Blur effect
   ========================================================================== */

/* Apply a smooth transition for text reveal when translation completes */
.translate-content {
  transition: filter 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  filter: blur(0px);
  opacity: 1;
}

/* Blur only the dynamic content layout while Google Translate works */
.translation-pending .translate-content {
  filter: blur(2px);
  opacity: 0.95;
  pointer-events: none;
}
