/* ============================================
   YouTube Thumbnail Concept Generator Styles
   ============================================ */

/* Generate Button Glow Animation */
@keyframes gentle-glow {
  0% { 
    box-shadow: 0 6px 20px rgba(255,214,1,0.4), 
                0 0 0 2px rgba(255,214,1,0.1), 
                inset 0 2px 0 rgba(255,255,255,0.3); 
  }
  50% { 
    box-shadow: 0 8px 30px rgba(255,214,1,0.65), 
                0 0 0 3px rgba(255,214,1,0.2), 
                inset 0 2px 0 rgba(255,255,255,0.5); 
  }
  100% { 
    box-shadow: 0 6px 20px rgba(255,214,1,0.4), 
                0 0 0 2px rgba(255,214,1,0.1), 
                inset 0 2px 0 rgba(255,255,255,0.3); 
  }
}

.generate-btn-glow {
  animation: gentle-glow 3s infinite ease-in-out;
}

.generate-btn-glow:disabled {
  animation: none;
  opacity: 0.7;
  cursor: not-allowed;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* ============================================
   Concept Card Styles
   ============================================ */

.concept-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.concept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #1B3C6B;
}

.concept-card.selected {
  border-color: #FFD601;
  background: linear-gradient(to bottom, #fffef0, #ffffff);
  box-shadow: 0 0 0 3px rgba(255, 214, 1, 0.3);
}

.concept-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  min-height: 7rem;
}

.concept-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: all 0.2s ease;
  accent-color: #FFD601;
}

.concept-checkbox:checked {
  background-color: #FFD601;
  border-color: #FFD601;
}

.concept-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B3C6B;
  margin-bottom: 0.25rem;
  font-family: 'Playfair Display', serif;
}

.concept-trigger {
  display: inline-block;
  background: #1B3C6B;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.concept-headline {
  background: linear-gradient(135deg, #1B3C6B 0%, #2d5a9e 100%);
  color: white;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  min-height: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.concept-section {
  margin-bottom: 1rem;
}

.concept-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1B3C6B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concept-section-title svg {
  width: 1rem;
  height: 1rem;
  color: #FFD601;
}

.concept-section-content {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
}

.concept-why-it-works {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: auto;
}

.concept-why-it-works .concept-section-title {
  color: #166534;
}

.concept-why-it-works .concept-section-content {
  color: #15803d;
}

/* ============================================
   Email Capture Module
   ============================================ */

.email-capture-module {
  background: linear-gradient(135deg, #1B3C6B 0%, #2d5a9e 100%);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
  color: white;
}

.email-capture-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.email-capture-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.email-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .email-input-wrapper {
    flex-direction: row;
  }
}

.email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
  border-color: #FFD601;
  background: rgba(255, 255, 255, 0.15);
}

.email-submit-btn {
  background: #FFD601;
  color: #1B3C6B;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.email-submit-btn:hover {
  background: white;
  transform: translateY(-2px);
}

.email-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.email-consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.email-consent-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  accent-color: #FFD601;
}

.email-consent-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ============================================
   Toast Notification Styles
   ============================================ */

.toast-container {
  position: fixed;
  top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease-in-out;
  background-color: #1B3C6B;
  color: white;
}

/* Mobile: centered */
@media (max-width: 1023px) {
  .toast-container {
    left: 50% !important;
    right: auto !important;
    width: 80% !important;
    max-width: 80% !important;
    transform: translateX(-50%) !important;
  }
  
  .toast-container.-translate-y-full,
  .toast-container[class*="-translate-y-full"] {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-100%) !important;
  }
  
  .toast-container:not(.hidden):not(.-translate-y-full),
  .toast-container:not(.hidden):not([class*="-translate-y-full"]) {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
  
  div#toast.toast-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
  
  div#toast.toast-container.-translate-y-full {
    transform: translateX(-50%) translateY(-100%) !important;
  }
}

@media (min-width: 1024px) {
  .toast-container {
    left: auto;
    right: 1rem;
    transform: translateX(0);
  }
  
  .toast-container.translate-x-full {
    transform: translateX(100%);
  }
  
  .toast-container.translate-x-0 {
    transform: translateX(0);
  }
}

.toast-container.hidden {
  display: none !important;
}

.toast-success {
  background-color: #1B3C6B;
  color: white;
}

.toast-error {
  background-color: #b91c1c;
  color: white;
}

.toast-info {
  background-color: #eab308;
  color: #111827;
}

/* ============================================
   Loading Spinner
   ============================================ */

.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Selected Concepts Counter
   ============================================ */

.selected-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFD601;
  color: #1B3C6B;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.selected-count-badge svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   Results Section Header
   ============================================ */

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.results-icon {
  width: 3rem;
  height: 3rem;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.results-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1B3C6B;
  font-family: 'Playfair Display', serif;
}

/* ============================================
   Concepts Grid
   ============================================ */

.concepts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .concepts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Mockup Preview Section
   ============================================ */

.mockup-preview {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.mockup-preview-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1B3C6B;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-preview-image {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 640px) {
  #generate-btn {
    padding: 1.25rem 0.75rem;
  }
  
  #btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
  }
  
  .concept-card {
    padding: 1rem;
  }
  
  .concept-headline {
    font-size: 1.25rem;
    padding: 0.75rem;
  }
  
  .email-capture-module {
    padding: 1.5rem;
  }
  
  .email-capture-title {
    font-size: 1.25rem;
  }
}

/* ============================================
   Copy Button Styles
   ============================================ */

.copy-concept-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.copy-concept-btn:hover {
  background: #e5e7eb;
  color: #1B3C6B;
}

.copy-concept-btn svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   Error State
   ============================================ */

.input-error {
  border-color: #ef4444 !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

/* ============================================
   Regenerate Button
   ============================================ */

.regenerate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #1B3C6B;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #1B3C6B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.regenerate-btn:hover {
  background: #1B3C6B;
  color: white;
}

.regenerate-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

