/* Custom CSS for Tone-of-Voice Wizard - Bootstrap 5 Component */

/* Wizard Container */
#wizard {
  margin: 0 auto 90px 0;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.wizard-header {
  color: white;
  padding: 2rem;
}

/* Step Indicators */
.step-indicator {
  background: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-width: 80px;
  border: none;
}

.step-indicator.active {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--bs-primary) !important;
  transform: translateY(-2px);
}

.step-indicator.completed {
  background: var(--bs-success) !important;
  color: white !important;
}

/* Enhanced Buttons */
.btn-primary-highlighted {
  background: var(--bs-success) !important;
  border-color: var(--bs-success) !important;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-success-rgb), 0.25); 
  }
  50% { 
    box-shadow: 0 0 0 0.5rem rgba(var(--bs-success-rgb), 0.15); 
  }
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--bs-border-color);
  border-radius: 0.75rem;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.upload-area.dragover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--bs-secondary);
}

.file-input { display: none; }

/* File Items */
.file-item {
  background: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.file-icon {
  width: 24px;
  height: 24px;
  color: var(--bs-secondary);
}

.file-details h4 {
  margin: 0;
  font-size: 14px;
  color: var(--bs-emphasis-color);
}

.file-details small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--bs-secondary-color);
  word-break: break-all;
}

/* Material Collection Area */
.material-collection-area {
  margin-bottom: 2rem;
}

.collection-card {
  background: var(--bs-light);
  border: 2px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.collection-card:hover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  transform: translateY(-2px);
}

.collection-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.collection-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-emphasis-color);
}

.collection-description {
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.upload-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  min-height: 120px;
  border: 2px dashed var(--bs-border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.upload-area:hover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.upload-area.dragover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  transform: scale(1.02);
}

.url-input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.url-input-group {
  display: flex;
  align-items: center;
}

.url-input-group .url-input {
  flex: 1;
  transition: border-color 0.2s ease;
}

.url-input-group .url-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Materials Queue */
.materials-queue {
  background: var(--bs-success-bg-subtle);
  border: 1px solid var(--bs-success-border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.queue-header h3 {
  color: var(--bs-success-text-emphasis);
}

.materials-list {
  max-height: 300px;
  overflow-y: auto;
}

.material-item {
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.material-type-icon {
  width: 20px;
  height: 20px;
  color: var(--bs-secondary);
}

.material-details h5 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.material-details small {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}

.material-count-badge {
  background: var(--bs-light);
  color: var(--bs-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Processed Materials */
.processed-materials {
  background: var(--bs-success-bg-subtle);
  border: 1px solid var(--bs-success-border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.processed-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Help Section */
.help-section details[open] summary {
  margin-bottom: 0.5rem;
}

/* Pre-filled Fields */
.prefilled-field {
  background: var(--bs-success-bg-subtle) !important;
  border-color: var(--bs-success-border-subtle) !important;
}

.prefilled-field:focus {
  border-color: var(--bs-success) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-success-rgb), 0.25) !important;
}

/* Quiz Options */
.quiz-option {
  background: var(--bs-light);
  border: 2px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.quiz-option:hover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.quiz-option.selected {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

.checkbox-option input[type="checkbox"] { margin-right: 0.5rem; }

/* Template Cards */
.templates-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-card {
  background: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.template-card.default-tone {
  background: var(--bs-primary-bg-subtle);
  border-color: var(--bs-primary-border-subtle);
}

.template-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--bs-dark);
  margin-bottom: 0.5rem;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.template-content {
  flex: 1;
}

.tone-instruction {
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
  padding: 1rem;
  font-family: var(--bs-font-monospace);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  height: 100%;
}

.template-placeholder {
  background: var(--bs-warning-bg-subtle);
  color: var(--bs-warning-text-emphasis);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.template-section-header {
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 1rem 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.template-section {
  margin-bottom: 2rem;
}

.template-section-title {
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-section-description {
  color: var(--bs-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Copy Button */
.copy-btn {
  background: var(--bs-success);
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover, .copy-btn.copied { 
  background: var(--bs-success-dark); 
  color: white;
}

/* Start Over Button - make it more visible */
.btn-outline-secondary {
  border-width: 2px;
  font-weight: 600;
}

/* Progress indicator improvements */
.wizard-header .d-flex.justify-content-between {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* New E-E-A-T Component Styles */

/* Creator / About Section */
.creator-section {
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}
.creator-section a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}
.creator-section a:hover {
    text-decoration: underline;
}

/* Social Proof - Logos */
.social-proof-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.social-proof-section img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.social-proof-section img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Social Proof - Testimonials */
.testimonial-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--bs-body-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.author-name {
    font-weight: 700;
    margin-bottom: 0;
    color: var(--bs-dark);
}
.author-title {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
}
.step-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    text-align: center;
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: -3.5rem auto 1.5rem auto;
    border: 4px solid var(--bs-light);
}

/* Trust & Security Section */
.trust-security-section {
    background: var(--bs-light);
    border-top: 1px solid var(--bs-border-color);
}
.trust-security-section .badge {
    font-size: 1rem;
    font-weight: 500;
}

/* --- End of E-E-A-T Component Styles --- */

/* Section Indicators */
.section-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 auto;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.section-indicator.active {
  background: var(--bs-primary);
  color: white;
}

/* Business Progress Section */
.business-progress .flex-fill {
  min-width: 0;
}

.business-progress .flex-fill:not(:last-child) {
  margin-right: 0.5rem;
}

/* Business Complete Message */
.business-complete-message {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.progress-steps .step {
  color: var(--bs-secondary);
  font-size: 0.9rem;
}

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

/* Loading State */
.generating-state .spinner-large { margin-bottom: 1rem; }

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
  #wizard { 
    border-radius: 0; 
    min-height: 100vh;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  
  .wizard-header { 
    padding: 1rem; 
  }
  
  /* Step indicators for 2x2 grid */
  .step-indicator { 
    font-size: 0.7rem; 
    padding: 0.4rem 0.5rem; 
    min-width: 90px;
    max-width: 150px;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    border-radius: 1rem;
    box-sizing: border-box;
  }
  
  /* Override any flex properties on mobile */
  .wizard-header .step-indicator {
    flex: none !important;
  }
  
  /* Force grid layout on the actual container */
  header.wizard-header .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  
  /* Target Bootstrap classes specifically */
  .wizard-header .d-flex.justify-content-between.flex-wrap.gap-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
  }
  
  /* 2x2 Grid layout for step indicators - use higher specificity */
  .wizard-header .d-flex.justify-content-between.flex-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    justify-items: center !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    padding: 0.5rem !important;
    flex-wrap: nowrap !important;
  }
  
  /* Target the specific step indicator container */
  div.wizard-header .d-flex.justify-content-between {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 0.5rem !important;
    justify-items: center !important;
    align-items: center !important;
  }
  
  /* Ensure all step indicators are visible */
  .wizard-header .step-indicator,
  .wizard-header .badge.step-indicator {
    display: block !important;
    visibility: visible !important;
    position: static !important;
  }
  
  /* Main content padding */
  #step-container {
    padding: 1rem !important;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 300px;
  }
  
  /* Fix buttons to stay on screen */
  .copy-btn {
    position: relative;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 120px;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
  
  /* Template cards mobile layout */
  .template-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .template-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .template-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Fix textarea sizing */
  .tone-instruction {
    min-height: 120px;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.75rem;
  }
  
  /* Button improvements */
  .btn {
    min-height: 44px; /* Proper touch target */
    font-size: 0.9rem;
  }
  
  .btn-primary, .btn-outline-secondary {
    padding: 0.6rem 1.2rem;
  }
  
  /* Fix footer buttons */
  footer {
    padding: 0.75rem !important;
    gap: 0.5rem;
  }
  
  footer .btn {
    flex: 1;
    max-width: none;
    min-width: 80px;
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
  }
  
  /* Ensure footer doesn't clip buttons */
  footer.border-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Quiz options mobile */
  .quiz-option {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  /* File upload area */
  .upload-area {
    padding: 2rem 1rem;
  }
  
  /* Form controls */
  .form-control, .form-select {
    font-size: 1rem; /* Prevent zoom on iOS */
    min-height: 44px;
  }
  
  /* Progress steps fix */
  .progress-steps {
    gap: 0.25rem;
  }
  
  .progress-steps .step {
    font-size: 0.8rem;
    text-align: center;
  }
  
  /* Section indicators mobile */
  .section-indicator {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    margin: 0 auto;
  }
  
  /* Keep progress text compact */
  .progress-steps .small,
  .business-step .small {
    font-size: 0.7rem;
  }
  
  /* Business progress mobile - 2x2 grid for the actual business step indicators */
  .business-progress .d-flex.justify-content-between.align-items-center {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 0.75rem !important;
    justify-items: center !important;
    align-items: center !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    padding: 1rem 0 !important;
  }
  
  .business-progress .flex-fill {
    margin: 0 !important;
    flex: none !important;
    width: 100% !important;
    max-width: 120px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .business-progress .small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
  
  /* Dense layout adjustments */
  .mb-3 { margin-bottom: 0.75rem !important; }
  .mb-4 { margin-bottom: 1rem !important; }
  .mb-5 { margin-bottom: 1.25rem !important; }
  
  .p-4 { padding: 1rem !important; }
  .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  
  /* Fix text overflow issues */
  .template-placeholder {
    font-size: 0.8rem;
    word-break: break-word;
  }
  
  /* Ensure buttons don't go off-canvas */
  .template-header .copy-btn {
    position: static;
    align-self: flex-end;
    margin-left: auto;
  }
  
  /* Fix specific button issues */
  .btn-outline-secondary {
    min-height: 48px;
    font-size: 0.9rem;
    border-width: 2px;
    font-weight: 600;
  }
  
  /* Generate Templates button fix */
  .btn-primary-highlighted {
    width: 100%;
    max-width: none;
    margin-top: 1rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    padding: 0.75rem 0.5rem;
    min-height: 48px;
    text-align: center;
  }
  
  /* Only fix very long button text */
  .btn-primary-highlighted {
    /* Keep the specific fixes for generate button only */
  }
  
  /* Better form spacing */
  .form-group, .mb-3 {
    margin-bottom: 1rem;
  }
  
  /* Fix alert text clipping */
  .alert, .alert-success, .alert-info {
    white-space: normal !important;
    word-wrap: break-word;
    overflow: visible;
    padding: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Fix any notification text */
  .alert .small, .alert small {
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* Fix text areas and inputs */
  textarea.form-control {
    min-height: 100px;
    resize: vertical;
  }
  
  input.form-control {
    padding: 0.75rem;
  }
  
  /* Progress indicator text fix */
  .step-indicator {
    line-height: 1.2;
  }
  
  /* Hero section mobile fixes */
  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-section .display-6 {
    font-size: 1.1rem;
  }
  
  /* Fix overlapping text in progress */
  .wizard-header .badge {
    margin: 0.1rem;
    min-width: 65px;
    text-align: center;
  }
  
  /* Make sure all clickable elements are properly sized */
  button, .btn, .copy-btn, .quiz-option {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Fix template content overflow */
  .template-content {
    overflow: hidden;
  }
  
  .tone-instruction {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Better container handling */
  .container, .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Fix step container to prevent horizontal scroll */
  #step-container {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    overflow-y: visible !important;
  }
  
  /* Ensure step content is visible */
  .step-content, .api-key-step, .upload-step, .business-step, .templates-step {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* FAQ Section Styles */
#faq-section {
  transition: opacity 0.3s ease-in-out;
}

#faq-section.hidden {
  display: none;
}

.faq-item {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border-left: 4px solid var(--bs-primary);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.faq-item h3 {
  color: var(--bs-primary);
}

.faq-item p {
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-item {
    padding: 1rem;
  }
}

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .display-6 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
}

.benefit-card {
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--bs-border-color);
  height: 100%;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--bs-primary);
}

.benefit-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.cta-section {
  border: 2px solid var(--bs-primary-border-subtle);
  background: var(--bs-primary-bg-subtle) !important;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.social-proof .badge {
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--bs-success-border-subtle);
}

/* Hero responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
    margin: 1rem;
    border-radius: 0.5rem;
  }
  
  .benefit-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .benefit-icon {
    font-size: 2rem;
  }
  
  .cta-section {
    padding: 1.5rem !important;
  }
  
  .social-proof .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem !important;
  }
}

.hidden { display: none !important; }

/* Utility class to fix circular images */
.square-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/* Showcase Examples Section */
.showcase-section {
  background: var(--bs-light, #f8f9fa);
}

.showcase-card {
  background: white;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--bs-primary, #0d6efd);
}

.showcase-header {
  margin-bottom: 1rem;
}

.showcase-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 300px; /* Fixed height for cropping */
}

.showcase-image-container img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Show the top portion of the templates */
}

.showcase-image-container:hover img {
  transform: scale(1.05);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.showcase-footer {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.showcase-card:hover .showcase-footer {
  opacity: 1;
}

/* Demo Video Section */
.demo-section {
  background: var(--bs-light, #f8f9fa) !important;
}

.demo-section iframe {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.demo-section iframe:hover {
  transform: scale(1.02);
}

/* Responsive adjustments for showcase */
@media (max-width: 768px) {
  .showcase-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .showcase-card:hover {
    transform: translateY(-4px);
  }
  
  .showcase-image-container {
    height: 250px; /* Smaller height on mobile */
  }
  
  .demo-section {
    padding: 2rem 1rem !important;
  }
}