/* JB Estrella Minimalist Theme - Mobile App Experience */

:root {
  /* Minimalist color palette */
  --primary-color: #6c5ce7;      /* Soft purple */
  --secondary-color: #00cec9;    /* Soft teal */
  --accent-color: #fd79a8;       /* Soft pink */
  --text-color: #2d3436;         /* Dark gray for text */
  --text-light: #636e72;         /* Light gray for secondary text */
  --bg-color: #ffffff;           /* White background */
  --bg-light: #ededed;           /* Light gray background */
  --card-bg: #ffffff;            /* Card background */
  --border-color: #dfe6e9;       /* Light border color */
  
  /* Font settings */
  --title-font: 'Great Vibes','Inter', system-ui, -apple-system, sans-serif;
  --body-font: 'Inter', system-ui, -apple-system, sans-serif;
  --ui-font: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* Global styling */
body.theme-minimalist {
  color: var(--text-color);
  font-family: var(--body-font);
  line-height: 1.6;
  background-color: var(--bg-light);
  min-height: 100vh;
}

/* Navigation styling */
.theme-minimalist .navbar {
  background-color: transparent !important;
  box-shadow: none;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
}

.theme-minimalist .navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
  font-family: var(--title-font);  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-minimalist .navbar-light .navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-minimalist .navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* Button styling */
.theme-minimalist .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-weight: 500;
}

.theme-minimalist .btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-weight: 500;
}

/* Footer styling */
.theme-minimalist footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.theme-minimalist footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.theme-minimalist footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* .site-footer (the copyright line) */
.theme-minimalist .site-footer {
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

/* Hero section for homepage */
.theme-minimalist .hero {
  padding: 4rem 0 2rem 0;
  margin-bottom: var(--spacing-lg);
}

/* Wagtail content styling */
.theme-minimalist .rich-text img {
  max-width: 100%;
  height: auto;
  margin: var(--spacing-md) 0;
}

.theme-minimalist .rich-text h2 {
  color: var(--text-color);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.theme-minimalist .rich-text h3 {
  color: var(--text-color);
  margin-top: var(--spacing-lg);
  font-weight: 600;
}

.theme-minimalist .rich-text a {
  color: var(--primary-color);
  text-decoration: none;
}

.theme-minimalist .rich-text a:hover {
  text-decoration: underline;
}

.theme-minimalist .page-header {
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.theme-minimalist .page-meta {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

/* Card styling for blog listings */
.theme-minimalist .content-card {
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: var(--spacing-lg);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.theme-minimalist .content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.theme-minimalist .content-card .card-body {
  padding: var(--spacing-lg);
}

/* Custom badge styling */
.theme-minimalist .badge {
  padding: 0.4em 0.8em;
  font-weight: 500;
  border-radius: var(--radius-full);
}

/* Form styling */
.theme-minimalist form {
  margin-bottom: var(--spacing-lg);
}

.theme-minimalist .form-control {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.theme-minimalist .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.theme-minimalist .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.theme-minimalist .form-text {
  color: var(--text-light);
}

/* Theme-specific mobile styles */
@media (max-width: 768px) {
  .theme-minimalist .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .theme-minimalist .content-container {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-sm);
  }
  
  /* Mobile menu theme-specific styling */
  .theme-minimalist .mobile-menu {
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-right: 1px solid var(--border-color);
  }
  
  .theme-minimalist .mobile-menu-item {
    color: var(--text-color);
  }
  
  .theme-minimalist .mobile-menu-item:hover,
  .theme-minimalist .mobile-menu-item.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
  }
  
  .theme-minimalist .close-menu {
    color: var(--text-color);
  }
  
  .theme-minimalist .hamburger-menu {
    color: var(--text-color);
  }
  
  .theme-minimalist .mobile-header .brand {
    color: var(--primary-color);
    font-family: var(--title-font);
  }
  
  .theme-minimalist .mobile-header .actions button {
    color: var(--text-color);
  }
  
  /* Card adjustments for mobile */
  .theme-minimalist .content-card {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}