/* Public Site CSS */

/* Typography */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
}

/* Standardized Card Styles - Following README_CARD_STYLE.md */
.card {
  background: white;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500 !important;
  font-family: 'Libre Baskerville', serif !important;
}

/* Card Header Color Themes */
.card-header.bg-primary {
  background: #007bff !important;
  color: white;
  border-color: #007bff;
}

.card-header.bg-success {
  background: #28a745 !important;
  color: white;
  border-color: #28a745;
}

.card-header.bg-info {
  background: #17a2b8 !important;
  color: white;
  border-color: #17a2b8;
}

.card-header.bg-warning {
  background: #ffc107 !important;
  color: #212529;
  border-color: #ffc107;
}

.card-header.bg-secondary {
  background: #6c757d !important;
  color: white;
  border-color: #6c757d;
}

.card-header.bg-danger {
  background: #dc3545 !important;
  color: white;
  border-color: #dc3545;
}

.card-header.bg-dark {
  background: #343a40 !important;
  color: white;
  border-color: #343a40;
}

.card-body {
  padding: 1.5rem;
}

/* Icon spacing in card headers and content */
.card-header i,
.card-body i {
  margin-right: 0.75rem;
}

/* Bootstrap 5 icon spacing classes */
.me-2 {
  margin-right: 0.75rem;
}

/* Ensure consistent card spacing */
.card.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Dark mode support for cards */
body.dark-mode .card {
  background: #2a2d31 !important;
  color: #e0e0e0 !important;
  border: 1px solid #393d45 !important;
}

body.dark-mode .card-header.bg-primary {
  background-color: #0d2236 !important;
  color: #bdd0ee !important;
  border-color: #3085d6 !important;
}

body.dark-mode .card-header.bg-success {
  background-color: #0f2c1a !important;
  color: #c3e6cb !important;
  border-color: #28a745 !important;
}

body.dark-mode .card-header.bg-info {
  background-color: #0c2c36 !important;
  color: #bee5eb !important;
  border-color: #17a2b8 !important;
}

body.dark-mode .card-header.bg-warning {
  background-color: #3d3215 !important;
  color: #fff3cd !important;
  border-color: #ffc107 !important;
}

body.dark-mode .card-header.bg-secondary {
  background-color: #1e2124 !important;
  color: #d6d8db !important;
  border-color: #6c757d !important;
}

body.dark-mode .card-header.bg-danger {
  background-color: #3d1014 !important;
  color: #f5c6cb !important;
  border-color: #dc3545 !important;
}

body.dark-mode .card-header.bg-dark {
  background-color: #12191f !important;
  color: #d1ecf1 !important;
  border-color: #343a40 !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(41, 128, 185, 0.9), rgba(41, 128, 185, 0.7)), 
              url('/static/images/hero-bg.jpg') center/cover;
  color: white;
  padding: 100px 0;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero .btn {
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 5px;
}

/* Solutions Cards */
.solution-card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.solution-card .card-header {
  background: #f8f9fa;
  border-bottom: 2px solid #2980b9;
  text-align: center;
  padding: 1.5rem;
}

.solution-card .card-header i {
  font-size: 3rem;
  color: #2980b9;
  margin-bottom: 1rem;
}

.solution-card h5 {
  color: #2c3e50;
  margin-bottom: 0;
}

/* Stats Section */
.stats-section {
  background: #f8f9fa;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  margin-bottom: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #2980b9;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: #6c757d;
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-section .row {
  align-items: center;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2980b9, #3498db);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

.cta-section .btn {
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 5px;
}

/* Navbar Customization */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #2c3e50 !important;
  margin: 0 10px;
}

.navbar-nav .nav-link:hover {
  color: #2980b9 !important;
}

/* Button Styles */
.btn-primary {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-primary:hover {
  background-color: #1f5582;
  border-color: #1f5582;
}

.btn-outline-primary {
  color: #2980b9;
  border-color: #2980b9;
}

.btn-outline-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* Page-specific styles */
.page-header {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.content-section {
  padding: 60px 0;
}

/* Footer */
footer a.text-light:hover {
  color: #3498db !important;
  text-decoration: none;
}

/* Login Modal Styles */
.modal-content {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 0.5rem 0.5rem 0 0;
}

.modal-title {
  color: #495057;
  font-weight: 500;
}

.modal-body {
  padding: 2rem;
}

/* Social Login Buttons in Modal */
.social-buttons {
  margin-bottom: 1.5rem;
}

.social-buttons .btn {
  width: 100%;
  margin-bottom: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.social-buttons .btn:hover {
  transform: translateY(-1px);
}

/* OR Divider in Modal */
.or-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: #666;
}

.or-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #dee2e6;
  z-index: 1;
}

.or-divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* Email Form in Modal */
.email-form .form-group {
  margin-bottom: 1rem;
}

.email-form .form-control {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out;
}

.email-form .form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.email-form .btn-primary {
  background: #007bff;
  border: 1px solid #007bff;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.email-form .btn-primary:hover:not(:disabled) {
  background: #0056b3;
  border-color: #004085;
  transform: translateY(-1px);
}

/* Input group styles */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.375rem 0 0 0.375rem;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
  border-radius: 0 0.375rem 0.375rem 0;
}

.input-group .form-control:focus {
  z-index: 3;
}

/* Button block utility */
.btn-block {
  display: block;
  width: 100%;
}

/* Button color variants for social login */
.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  color: #fff;
  background-color: #c82333;
  border-color: #bd2130;
}

.btn-info {
  color: #fff;
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.btn-info:hover {
  color: #fff;
  background-color: #138496;
  border-color: #117a8b;
}

.btn-dark {
  color: #fff;
  background-color: #343a40;
  border-color: #343a40;
}

.btn-dark:hover {
  color: #fff;
  background-color: #23272b;
  border-color: #1d2124;
}
