/**
 * Festify - Theme-specific styles
 * Contains variables and overrides for light and dark themes
 */

/* Light Theme (Default) */
:root {
    /* Primary colors */
    --primary-color: #ff6b6b;
    --primary-hover: #ff8787;
    --secondary-color: #74c0fc;
    
    /* UI colors */
    --success-color: #51cf66;
    --warning-color: #fcc419;
    --danger-color: #ff6b6b;
    --info-color: #15aabf;
    
    /* Neutrals */
    --body-bg: #f5f6f8;
    --card-bg: #ffffff;
    --border-color: #d0d5dd;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    
    /* Event colors */
    --event-christmas: #c5355b;
    --event-easter: #9775fa;
    --event-midsummer: #38d9a9;
    --event-halloween: #f76707;
    --event-newyear: #339af0;
    --event-other: #495057;
    
    /* User interface - Enhanced shadows for better depth perception */
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    --box-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-speed: 0.2s;
    --transition-timing: ease-in-out;
  }
  
  /* Dark Theme */
  [data-theme="dark"] {
    /* Primary colors remain consistent for brand identity */
    --primary-color: #ff6b6b;
    --primary-hover: #ff8787;
    
    /* Neutrals inverted for dark mode */
    --body-bg: #141414;
    --card-bg: #212529;
    --border-color: #343a40;
    --text-primary: #f8f9fa;
    --text-secondary: #e9ecef;
    --text-muted: #adb5bd;
    
    /* Slightly darker event colors for dark mode */
    --event-christmas: #b02e4f;
    --event-easter: #845ef7;
    --event-midsummer: #20c997;
    --event-halloween: #e8590c;
    --event-newyear: #228be6;
    --event-other: #868e96;
    
    /* Darker shadows */
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.25);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
  }
  
  /* Global dark mode overrides */
  [data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  [data-theme="dark"] .btn-outline-primary:hover,
  [data-theme="dark"] .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
  }
  
  [data-theme="dark"] .btn-outline-secondary {
    border-color: var(--border-color);
  }
  
  [data-theme="dark"] .btn-outline-secondary:hover,
  [data-theme="dark"] .btn-outline-secondary:focus {
    background-color: var(--border-color);
    color: var(--text-primary);
  }
  
  /* Theme preview styles for the settings page */
  .theme-preview {
    display: block;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-speed) var(--transition-timing);
  }
  
  .theme-preview:hover,
  input:checked + .theme-preview {
    border-color: var(--primary-color);
  }
  
  .theme-preview .preview-content {
    pointer-events: none;
  }
  
  .light-theme .preview-content {
    background-color: #f5f6f8;
    color: #212529;
  }
  
  .light-theme .preview-header {
    background-color: #ffffff;
    border-bottom: 1px solid #d0d5dd;
  }
  
  .light-theme .preview-sidebar {
    background-color: #f1f3f5;
  }
  
  .light-theme .preview-card {
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
  }
  
  .dark-theme .preview-content {
    background-color: #141414;
    color: #f8f9fa;
  }
  
  .dark-theme .preview-header {
    background-color: #212529;
    border-bottom: 1px solid #343a40;
  }
  
  .dark-theme .preview-sidebar {
    background-color: #1e1e1e;
  }
  
  .dark-theme .preview-card {
    background-color: #212529;
    border: 1px solid #343a40;
  }
  
  .theme-name {
    display: block;
    text-align: center;
    padding: 8px;
    font-weight: 500;
    background-color: var(--card-bg);
    color: var(--text-primary);
  }
  
  /* Theme options layout */
  .theme-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .theme-option {
    flex: 1;
  }
  
  .theme-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .preview-content {
    width: 100%;
    height: 160px;
    padding: 10px;
  }
  
  .preview-header {
    height: 20px;
    margin-bottom: 10px;
  }
  
  .preview-main {
    display: flex;
    height: calc(100% - 30px);
  }
  
  .preview-sidebar {
    width: 20%;
    height: 100%;
    margin-right: 10px;
  }
  
  .preview-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .preview-card {
    flex: 1;
    border-radius: 4px;
  }