/* Custom Styles for CertFlash */

/* Bootstrap Utility Overrides */
.bg-primary {
  background-color: rgb(105, 109, 250) !important;
}

/* Navbar Signup Button */
.signup-btn {
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3) !important;
}

.signup-btn:hover {
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4) !important;
}

/* Hide signup button box shadow when button is hidden */
.signup-btn[style*="display: none"],
.signup-btn.d-none {
  box-shadow: none !important;
}

/* Hide signup button on auth pages to prevent double CTAs */
body[data-page="login"] .auth-signup-btn,
body[data-page="register"] .auth-signup-btn {
  display: none !important;
}

/* Alternative approach using URL-based hiding */
@media screen {
  /* Hide signup button when on login page */
  body:has([href="/auth/login"]:target) .auth-signup-btn,
  /* Hide signup button when current page is login/register */
  .page-auth .auth-signup-btn {
    display: none !important;
  }
}

/* Global Styles */
body {
  background-color: #f8f9fa;
}

/* Google-like search styles */
.search-container {
  max-width: 640px;
  margin: 0 auto;
}

.search-input {
  border-radius: 24px !important;
  height: 56px;
  padding-left: 20px;
  padding-right: 20px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  transition: box-shadow 0.3s;
}

.search-input:focus {
  box-shadow: 0 1px 12px rgba(32, 33, 36, 0.5);
}

.search-input-group .input-group-text {
  border-radius: 24px 0 0 24px !important;
  border-color: transparent !important;
  padding-left: 20px;
  background-color: #fff !important;
}

.search-input-group .form-control {
  /*  border-radius: 0 24px 24px 0 !important;
*/
}

.search-button {
  border-radius: 24px !important;
  padding: 10px 24px !important;
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* Course Card Delete Button */
.card .btn-close {
  opacity: 0.3;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

.card:hover .btn-close {
  opacity: 0.8;
}

.card .btn-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.9);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
}

/* Footer */
.footer {
  margin-top: 5rem;
}

/* Course Content Styling */
.section-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-content p {
  margin-bottom: 1.25rem;
}

.section-content ul,
.section-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.section-content li {
  margin-bottom: 0.5rem;
}

.section-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.section-content blockquote {
  border-left: 4px solid #ced4da;
  padding-left: 1rem;
  color: #6c757d;
  font-style: italic;
  margin: 1.5rem 0;
}

/* Quiz Styling */
.question {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.question:last-child {
  border-bottom: none;
}

/* Progress Indicators */
.progress {
  height: 0.6rem;
  border-radius: 1rem;
}

/* Cards */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Feature cards on homepage */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  transition: transform 0.3s ease;
}

.hover-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Buttons */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
}

.btn-primary {
  background-color: #be0bec;
  border-color: #be0bec;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }

  .section-content {
    font-size: 1rem;
  }
}