/* static/css/main.css */

/* Custom color variables - Paula Brand Palette */
:root {
    /* Primary Colors (Brand Identity) */
    --primary: #FF6B2C;           /* Spark Orange - main accent, energy/engagement */
    --primary-dark: #e55a23;      /* Darker shade of Spark Orange for hover states */
    --secondary: #3A506B;         /* Steel Blue - neutral sections/cards */
    --accent: #FFD166;            /* Flame Yellow - secondary accent, warmth/highlight */
    
    /* Background Colors */
    --background: #FFFFFF;        /* Pure White - primary background */
    --background-alt: #F5F5F5;    /* Light Gray - UI elements, dividers, borders */
    --background-section: #3A506B; /* Steel Blue - for section backgrounds */
    --header-footer: #1B1F3B;     /* Deep Navy - professional, strong background */
    
    /* Text Colors */
    --text-primary: #4A4A4A;      /* Dark Gray - secondary text */
    --text-white: #FFFFFF;        /* Pure White - for text on dark backgrounds */
    
    /* Status Colors (keeping some originals for functionality) */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #FFD166;           /* Using Flame Yellow for warnings */
    --info: #3A506B;              /* Using Steel Blue for info */
    --light: #F5F5F5;             /* Light Gray */
    --dark: #1B1F3B;              /* Deep Navy */
  }
  
  /* Global styles */
  body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .container {
    flex: 1;
  }

  /* Logo styling */
  .navbar-brand img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto;
    transition: all 0.3s ease;
  }

  .navbar-brand:hover img {
    transform: scale(1.05);
  }

  .navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
  }
  
  /* Navbar styles */
  .navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-dark .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
  }
  
  .notification-badge {
    transform: translate(-50%, -50%) !important;
  }
  
  .notification-dropdown {
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
  }
  
  /* Card styles */
  .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1.5rem;
  }
  
  .card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border-bottom: none;
  }
  
  .card-header.bg-primary {
    background-color: var(--primary) !important;
  }
  
  .card-header.bg-success {
    background-color: var(--success) !important;
  }
  
  .card-header.bg-danger {
    background-color: var(--danger) !important;
  }
  
  .card-header.bg-warning {
    background-color: var(--warning) !important;
  }
  
  .card-header.bg-info {
    background-color: var(--info) !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  /* Button styles */
  .btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
  }
  
  .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  
  .btn-success {
    background-color: var(--success);
    border-color: var(--success);
  }
  
  .btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
  }
  
  /* Footer styles */
  .footer {
    background-color: var(--header-footer);
    color: var(--text-white);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--background-alt);
  }
  
  /* Badge styles */
  .badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
  }
  
  /* Form styles */
  .form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
  }
  
  .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 209, 102, 0.25);
  }
  
  .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  /* Platform selection styling */
  .platform-selection .form-check {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
  }
  
  .platform-selection .form-check:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .platform-selection .form-check-input:checked + .form-check-label {
    font-weight: bold;
    color: var(--primary);
  }
  
  .platform-selection .form-check-input:checked ~ .form-check {
    border-color: var(--primary);
  }
  
  /* Social media icons */
  .fab.fa-linkedin {
    color: #0077b5;
  }
  
  .fab.fa-twitter, .fab.fa-x {
    color: #1da1f2;
  }
  
  .fab.fa-instagram {
    color: #e1306c;
  }
  
  .fab.fa-facebook {
    color: #3b5998;
  }
  
  /* Onboarding progress */
  .progress {
    height: 0.5rem;
    border-radius: 1rem;
    background-color: #e9ecef;
  }
  
  .progress-bar {
    border-radius: 1rem;
  }
  
  /* Post plan calendar */
  .table td, .table th {
    vertical-align: middle;
  }
  
  /* User profile photo */
  .profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Sample text formatting */
  .sample-text {
    white-space: pre-line;
    line-height: 1.6;
  }
  
  /* Notifications */
  .notification-item {
    padding: 0.75rem;
    border-left: 4px solid transparent;
    transition: background-color 0.2s;
  }
  
  .notification-item:hover {
    background-color: var(--background-alt);
  }
  
  .notification-item.unread {
    border-left-color: var(--primary);
    background-color: rgba(255, 107, 44, 0.05);
  }
  
  .notification-item .notification-time {
    font-size: 0.75rem;
    color: var(--secondary);
  }
  
  /* Post status indicators */
  .post-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
  }
  
  .post-status-indicator.posted {
    background-color: var(--success);
  }
  
  .post-status-indicator.pending {
    background-color: var(--secondary);
  }
  
  .post-status-indicator.flagged {
    background-color: var(--danger);
  }
  
  /* ========================================
     RESPONSIVE DESIGN - Mobile First Approach
     ======================================== */

  /* Base Mobile Styles (320px and up) */
  
  /* Container and Layout */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography responsive scaling */
  h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  h4, h5, h6 {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .lead {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  /* Card adjustments for mobile */
  .card {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  /* Button improvements for mobile */
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    min-height: 44px; /* Touch target size */
  }
  
  .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-height: 36px;
  }
  
  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
  }
  
  /* Form improvements for mobile */
  .form-control {
    padding: 0.75rem;
    font-size: 1rem; /* Prevent zoom on iOS */
    min-height: 44px;
    border-radius: 0.5rem;
  }
  
  .form-select {
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  /* Form check (checkboxes/radios) for better touch targets */
  .form-check-input {
    margin-top: 0.25rem;
    width: 1.2rem;
    height: 1.2rem;
  }
  
  .form-check-label {
    margin-left: 0.5rem;
    font-size: 0.95rem;
  }
  
  /* Platform selection cards mobile optimization */
  .platform-selection .form-check {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid var(--background-alt);
  }
  
  /* Navbar brand responsive */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-brand img {
    height: 32px !important;
    max-height: 32px !important;
  }
  
  /* Navigation improvements for mobile */
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Alert improvements */
  .alert {
    border-radius: 0.5rem;
    padding: 1rem;
  }
  
  /* Badge and status indicators */
  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Profile photo responsive */
  .profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }
  
  .profile-photo-placeholder {
    width: 120px;
    height: 120px;
  }
  
  /* Progress bars */
  .progress {
    height: 0.75rem;
    border-radius: 1rem;
  }
  
  /* Notification improvements */
  .notification-dropdown {
    width: 280px;
    max-height: 350px;
  }
  
  .notification-item {
    padding: 1rem;
  }
  
  /* Table responsive improvements */
  .table-responsive {
    border-radius: 0.5rem;
    border: 1px solid var(--background-alt);
  }
  
  .table {
    margin-bottom: 0;
  }
  
  .table th,
  .table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: var(--background-alt);
  }
  
  .table th {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--background-alt);
  }
  
  /* ========================================
     TABLET STYLES (576px and up)
     ======================================== */
  @media (min-width: 576px) {
    .container {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    h2 {
      font-size: 1.5rem;
    }
    
    h3 {
      font-size: 1.3rem;
    }
    
    .lead {
      font-size: 1.1rem;
    }
    
    .card-body {
      padding: 1.5rem;
    }
    
    .card-header {
      padding: 1rem 1.5rem;
    }
    
    .navbar-brand {
      font-size: 1.25rem;
    }
    
    .navbar-brand img {
      height: 36px !important;
      max-height: 36px !important;
    }
    
    .profile-photo {
      width: 140px;
      height: 140px;
    }
    
    .profile-photo-placeholder {
      width: 140px;
      height: 140px;
    }
    
    .notification-dropdown {
      width: 320px;
      max-height: 400px;
    }
  }
  
  /* ========================================
     DESKTOP STYLES (768px and up)
     ======================================== */
  @media (min-width: 768px) {
    .container {
      padding-left: 2rem;
      padding-right: 2rem;
    }
    
    h1 {
      font-size: 2.5rem;
    }
    
    h2 {
      font-size: 2rem;
    }
    
    h3 {
      font-size: 1.5rem;
    }
    
    .lead {
      font-size: 1.25rem;
    }
    
    .card-body {
      padding: 2rem;
    }
    
    .card-header {
      padding: 1.25rem 2rem;
    }
    
    .navbar-brand {
      font-size: 1.5rem;
    }
    
    .navbar-brand img {
      height: 40px !important;
      max-height: 40px !important;
    }
    
    .profile-photo {
      width: 150px;
      height: 150px;
    }
    
    .profile-photo-placeholder {
      width: 150px;
      height: 150px;
    }
    
    /* Desktop-specific layout improvements */
    .dashboard-row {
      align-items: start;
    }
  }
  
  /* ========================================
     LARGE DESKTOP STYLES (992px and up)
     ======================================== */
  @media (min-width: 992px) {
    .navbar-brand {
      font-size: 1.5rem;
    }
    
    .btn {
      padding: 0.5rem 1rem;
      font-size: 1rem;
    }
    
    .form-control {
      padding: 0.5rem 0.75rem;
      font-size: 1rem;
    }
    
    /* Large screen optimizations */
    .notification-dropdown {
      width: 350px;
    }
  }
  
  /* ========================================
     EXTRA LARGE SCREENS (1200px and up)
     ======================================== */
  @media (min-width: 1200px) {
    .container {
      max-width: 1140px;
    }
    
    h1 {
      font-size: 3rem;
    }
    
    .card-body {
      padding: 2.5rem;
    }
  }
  
  /* ========================================
     LANDSCAPE ORIENTATION FIXES
     ======================================== */
  @media (max-height: 500px) and (orientation: landscape) {
    .navbar-brand img {
      height: 28px !important;
      max-height: 28px !important;
    }
    
    .card-body {
      padding: 1rem;
    }
    
    .btn {
      padding: 0.4rem 0.8rem;
    }
  }
  
  /* ========================================
     ACCESSIBILITY AND TOUCH IMPROVEMENTS
     ======================================== */
  
  /* Ensure touch targets are at least 44px */
  .nav-link,
  .dropdown-toggle,
  .btn,
  .form-control,
  .form-check-input {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Focus improvements for keyboard navigation */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .card {
      border: 2px solid var(--text-primary);
    }
    
    .btn {
      border-width: 2px;
    }
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* ========================================
     UTILITY CLASSES FOR RESPONSIVE DESIGN
     ======================================== */
  
  /* Mobile-specific utilities */
  .mobile-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-hidden {
    display: none;
  }
  
  .mobile-stack > * {
    margin-bottom: 1rem;
  }
  
  .mobile-small-text {
    font-size: 0.875rem;
  }
  
  /* Tablet and up utilities */
  @media (min-width: 576px) {
    .tablet-left {
      text-align: left;
    }
    
    .tablet-auto-width {
      width: auto;
    }
    
    .tablet-show {
      display: block;
    }
    
    .tablet-flex {
      display: flex;
    }
  }
  
  /* Desktop and up utilities */
  @media (min-width: 768px) {
    .desktop-left {
      text-align: left;
    }
    
    .desktop-right {
      text-align: right;
    }
    
    .desktop-flex {
      display: flex;
    }
    
    .desktop-inline {
      display: inline-block;
    }
    
    .mobile-center {
      text-align: left;
    }
    
    .mobile-hidden {
      display: block;
    }
    
    .mobile-stack {
      display: flex;
      gap: 1rem;
    }
    
    .mobile-stack > * {
      margin-bottom: 0;
    }
    
    .mobile-small-text {
      font-size: 1rem;
    }
  }
  
  /* Print styles */
  @media print {
    .navbar,
    .footer,
    .btn,
    .dropdown,
    .notification-badge {
      display: none !important;
    }
    
    .card {
      border: 1px solid #000;
      page-break-inside: avoid;
    }
    
    h1, h2, h3 {
      page-break-after: avoid;
    }
  }