/*
Theme Name: AnnuaireCI
Description: Modern WordPress directory theme for Côte d'Ivoire businesses. French-first with English support, featuring advanced search, maps integration, and monetization.
Version: 1.0.0
Author: AnnuaireCI
Text Domain: annuaireci
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* CSS Custom Properties for AnnuaireCI Brand */
:root {
  /* Colors - Warm neutrals with gold/orange accent */
  --primary-color: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8c69;
  --secondary-color: #2c3e50;
  --accent-gold: #f39c12;
  --accent-orange: #e67e22;
  
  /* Neutrals */
  --white: #ffffff;
  --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;
  
  /* Status colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Inter', var(--font-system);
  --font-body: var(--font-system);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Business placeholder styles */
.business-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 2rem;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    position: relative;
}

.business-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.business-placeholder span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode variables */
[data-theme="dark"] {
  --white: #111827;
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-400: #9ca3af;
  --gray-500: #d1d5db;
  --gray-600: #e5e7eb;
  --gray-700: #f3f4f6;
  --gray-800: #f9fafb;
  --gray-900: #ffffff;
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
  box-sizing: border-box;
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
  box-sizing: border-box;
}

/* Blog single post layout fixes */
.single .container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.single .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  width: 100%;
}

.single .col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 15px;
  box-sizing: border-box;
}

.single .col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Ensure content doesn't overflow */
.single article {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.single .post-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

.single .entry-content {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.single .entry-content * {
  max-width: 100%;
  box-sizing: border-box;
}

.single .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.single .entry-content table {
  width: 100%;
  table-layout: fixed;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.single .entry-content pre,
.single .entry-content code {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.single .entry-content iframe,
.single .entry-content embed,
.single .entry-content object,
.single .entry-content video {
  max-width: 100%;
  height: auto;
}

/* Blog post heading spacing to match WordPress editor */
.single .entry-content h2,
.single .post-content h2,
.entry-content h2,
.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.single .entry-content h3,
.single .post-content h3,
.entry-content h3,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.single .entry-content h4,
.single .post-content h4,
.entry-content h4,
.post-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Ensure first heading doesn't have top margin */
.single .entry-content h2:first-child,
.single .entry-content h3:first-child,
.single .entry-content h4:first-child,
.single .post-content h2:first-child,
.single .post-content h3:first-child,
.single .post-content h4:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child {
  margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .single .col-lg-8,
  .single .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--space-sm);
}

.col {
  flex: 1;
  padding: 0 var(--space-sm);
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

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

.btn-secondary:hover {
  background-color: var(--gray-200);
  color: var(--gray-900);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #1da851;
  color: var(--white);
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(255 107 53 / 0.1);
}

.form-group {
  margin-bottom: var(--space-lg);
}

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

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-verified {
  background-color: var(--success);
  color: var(--white);
}

.badge-popular {
  background-color: var(--accent-gold);
  color: var(--white);
}

.badge-open {
  background-color: var(--success);
  color: var(--white);
}

.badge-closed {
  background-color: var(--error);
  color: var(--white);
}

/* Header */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  background-color: var(--gray-50);
  padding: var(--space-xs) 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.header-top .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-left {
  display: flex;
  align-items: center;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--gray-600);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--primary-color);
}

.user-menu a {
  color: var(--gray-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.user-menu a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Auth Forms */
.annuaireci-auth-forms {
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  background: var(--gray-100);
}

.auth-tab {
  flex: 1;
  padding: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary-color);
}

.auth-form {
  display: none !important;
  padding: var(--space-xl);
}

.auth-form.active {
  display: block !important;
}

.auth-form h3 {
  margin-bottom: var(--space-lg);
  color: var(--gray-800);
}

.form-row {
  display: flex;
  gap: var(--space-md);
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: var(--space-md);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.btn-block {
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.form-message {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Business Submission Form */
.business-submission-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
}

.form-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section h3 {
  margin-bottom: var(--space-lg);
  color: var(--gray-800);
  font-size: 1.25rem;
}

.form-actions {
  text-align: center;
  margin-top: var(--space-xl);
}

.image-preview {
  position: relative;
  display: inline-block;
  margin-top: var(--space-sm);
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--radius-sm);
}

.remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--error);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* Submission Info Sidebar */
.submission-info {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.benefits-list i {
  color: var(--primary-color);
  width: 16px;
}

.submission-process {
  margin-top: var(--space-lg);
}

.process-steps {
  margin-top: var(--space-md);
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.step-number {
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.step-text {
  color: var(--gray-700);
  font-size: 0.875rem;
}

/* Multi-step Form Improvements */
.form-progress {
  margin-bottom: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-200);
  z-index: 1;
}

.progress-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 0 var(--space-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-steps .step.active .step-number {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.progress-steps .step.completed .step-number {
  background: var(--success);
  color: var(--white);
}

.progress-steps .step.completed .step-number::after {
  content: '✓';
  font-size: 0.75rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
  font-weight: 500;
}

.progress-steps .step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.form-step.active {
  display: block;
}

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

.step-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.step-header h3 {
  color: var(--gray-800);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.step-header p {
  color: var(--gray-600);
  font-size: 1rem;
  margin: 0;
}

/* Enhanced Form Fields */
.form-group {
  position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.field-help {
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  display: block;
}

.char-count {
  color: var(--primary-color);
  font-weight: 500;
}

.field-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* File Upload Area */
.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.file-upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(255, 107, 53, 0.05);
}

.file-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.upload-placeholder p {
  margin: 0 0 var(--space-xs) 0;
  color: var(--gray-700);
  font-weight: 500;
}

.upload-placeholder small {
  color: var(--gray-500);
}

.file-preview {
  position: relative;
}

.file-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.remove-file {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--error);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* Form Summary */
.form-summary {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.summary-section {
  margin-bottom: var(--space-lg);
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h4 {
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: var(--space-xs);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item strong {
  color: var(--gray-700);
  font-weight: 500;
}

.summary-item span {
  color: var(--gray-600);
}

/* Confirmation Notice */
.confirmation-notice {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.notice-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.notice-content i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: var(--space-xs);
}

.notice-content h4 {
  color: var(--gray-800);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.notice-content p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border: 1px solid var(--success);
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
  .progress-steps {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  
  .step-label {
    display: none;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .form-navigation .btn {
    width: 100%;
  }
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-content {
  position: relative;
  max-width: 650px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: var(--gray-500);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.auth-modal-close:hover {
  color: var(--gray-700);
}

.header-main {
  padding: var(--space-md) 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-logo {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo img {
  height: auto;
  max-height: 50px;
  width: auto;
}

/* Logo theme switching */
.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: inline-block;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
}

/* Search form */
.search-hero {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  margin: 0 auto;
}

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--space-md);
  align-items: end;
}

@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
  }
}

/* Business listings */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.business-card {
  position: relative;
}

.business-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.business-badges {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.business-info {
  padding: var(--space-lg);
}

.business-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.business-category {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.business-location {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.business-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.stars {
  color: var(--accent-gold);
}

.business-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Footer */
.site-footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-section a {
  color: var(--gray-300);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--space-lg);
  color: var(--gray-400);
}

.footer-bottom .row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.footer-bottom .col {
  flex: 1 !important;
}

.footer-bottom .copyright {
  text-align: left !important;
  margin: 0 !important;
}

.footer-bottom-right {
  text-align: right !important;
}

/* Côte d'Ivoire flag colors accent */
.ci-flag-accent {
  background: linear-gradient(to right, #ff6600 33%, #ffffff 33%, #ffffff 66%, #00cc00 66%);
  height: 4px;
  width: 100%;
}

/* User menu styles */
.user-menu {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.user-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.user-menu .btn-account {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: 2px solid transparent;
}

.user-menu .btn-account:hover {
  background: linear-gradient(135deg, #e55a2b, #d67d1a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.user-menu .btn-logout {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--gray-300);
}

.user-menu .btn-logout:hover {
  background: var(--gray-100);
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .user-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .user-menu a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Responsive utilities */
@media (max-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

/* Dark mode toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--gray-600);
  color: var(--gray-400);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: var(--gray-700);
  color: var(--gray-200);
}

/* ----------------------------------------------
   Blog Single: "Confort" balanced spacing
   Applies consistent vertical rhythm to article content
----------------------------------------------- */
.single .entry-content {
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.8;
}

.single .entry-content > * + * {
  margin-top: 1.25rem; /* default gap between blocks */
}

/* Headings spacing */
.single .entry-content h2 { margin-top: 2.25rem; margin-bottom: 0.75rem; }
.single .entry-content h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6 { margin-top: 1.25rem; margin-bottom: 0.25rem; }

/* Paragraphs & lists */
.single .entry-content p { margin: 0; }
.single .entry-content ul,
.single .entry-content ol { padding-left: 1.25rem; }
.single .entry-content li { margin: 0.375rem 0; }

/* Blockquotes */
.single .entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--gray-300);
  background: var(--gray-50);
}

/* Media */
.single .entry-content figure { margin: 1.5rem 0; }
.single .entry-content img { border-radius: 8px; }

/* Code blocks */
.single .entry-content pre { padding: 1rem; background: #0f172a0d; border-radius: 8px; }
.single .entry-content code { background: #0f172a14; padding: 0.15rem 0.35rem; border-radius: 4px; }

/* Tables */
.single .entry-content table { margin: 1.25rem 0; border-collapse: collapse; }
.single .entry-content table th,
.single .entry-content table td { border: 1px solid var(--gray-200); padding: 0.6rem 0.75rem; }
.single .entry-content table th { background: var(--gray-50); }

/* Horizontal rule */
.single .entry-content hr { margin: 2rem 0; border: 0; height: 1px; background: var(--gray-200); }

/* Table of Contents (generic selectors to match various outputs) */
.single .entry-content .toc,
.single .entry-content .table-of-contents,
.single .entry-content nav[aria-label="Table of contents"],
.single .entry-content nav[aria-label="Sommaire"],
.single .entry-content nav[aria-label="Table des matières"] {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

/* Top/bottom breathing around the article container */
.single .post-content { padding-top: 2rem; padding-bottom: 2rem; }

/* Invisible spacer for normalized textual separators */
.single .entry-content hr.content-sep {
  border: 0;
  height: 0;
  background: transparent;
  margin: 2rem 0; /* keep vertical space only */
}
