/* ============================================
   RESPONSIVE STYLES
   Media queries for all breakpoints
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
  
  /* Layout */
  
  .header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding: 0.75rem 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.5rem 1rem;
    text-align: center;
    width: 100%;
  }

  .btn-login,
  .btn-signup ,
  .btn-logout {

    width: 90%;
    margin: 0.25rem auto;
    text-align: center;
  }
  
  /* Footer */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Home Page - Hero */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: fit-content;
  }
  
  /* Grids */
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* CTA */
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p {
    font-size: 1.1rem;
  }
  
  /* Section Title */
  .section-title {
    font-size: 2rem;
  }
  
  /* Cards */
  .feature-card {
    padding: 1.5rem;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.75rem; }
  
  /* Spacing */
  :root {
    --spacing-xl: 3rem;
  }
  
  /* Layout */
  .hero {
    padding: var(--spacing-lg) 1.5rem;
  }
  
  .features,
  .how-it-works,
  .cta {
    padding: var(--spacing-lg) 1.5rem;
  }
  
  /* Home Page */
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  /* Stats */
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Navigation */
  .nav {
    gap: 0.75rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }
  
  .btn-login,
  .btn-signup {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
  
  /* Logo */
  .logo {
    font-size: 1.2rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Feature Cards */
  .feature-card {
    padding: 1.25rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon svg {
    width: 28px;
    height: 28px;
  }
  
  /* Steps */
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .container,
  .section-container,
  .hero-content,
  .features-container,
  .how-container,
  .cta-content {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* ===========================
   NOTIFICATION DROPDOWN MOBILE
   =========================== */

/* Tablet (≤768px) */
@media (max-width: 768px) {
    .notification-dropdown {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 100%;
        top: 55px;
    }

    .notification-header {
        padding: 1rem 1.25rem;
    }

    .notification-header h3 {
        font-size: 1rem;
    }

    .mark-all-read {
        font-size: 0.85rem;
        padding: 0.375rem 0.625rem;
    }

    .notification-list {
        max-height: 350px;
    }

    .notification-item {
        padding: 0.875rem 1.25rem;
    }

    .notification-title {
        font-size: 0.9rem;
    }

    .notification-message {
        font-size: 0.85rem;
    }

    .notification-action {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    /* Notification Bell */
    .notification-bell {
        width: 36px;
        height: 36px;
    }

    .notification-bell svg {
        width: 20px;
        height: 20px;
    }

    .notification-badge {
        font-size: 10px;
        padding: 2px 5px;
        min-width: 16px;
        top: 0;
        right: 0;
    }

    /* Notification Dropdown */
    .notification-dropdown {
        top: 50px;
        right: 5px;
        left: 5px;
        width: auto;
        max-height: calc(100vh - 60px);
        border-radius: 8px;
    }

    .notification-header {
        padding: 0.875rem 1rem;
    }

    .notification-header h3 {
        font-size: 0.95rem;
    }

    .mark-all-read {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .notification-list {
        max-height: calc(100vh - 120px);
    }

    .notification-item {
        padding: 0.75rem 1rem;
    }

    .notification-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .notification-title {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .notification-time {
        font-size: 0.75rem;
        margin-top: 0.125rem;
    }

    .notification-message {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .notification-action {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .notification-empty {
        padding: 2rem 1rem;
    }

    .notification-empty svg {
        width: 40px;
        height: 40px;
    }

    .notification-empty p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (≤360px) */
@media (max-width: 360px) {
    .notification-dropdown {
        right: 2px;
        left: 2px;
    }

    .notification-header {
        padding: 0.75rem 0.875rem;
    }

    .notification-header h3 {
        font-size: 0.9rem;
    }

    .mark-all-read {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }

    .notification-item {
        padding: 0.625rem 0.875rem;
    }

    .notification-title {
        font-size: 0.85rem;
    }

    .notification-message {
        font-size: 0.75rem;
    }

    .notification-time {
        font-size: 0.7rem;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .notification-bell {
        min-width: 44px;
        min-height: 44px;
    }

    .mark-all-read {
        min-height: 40px;
        padding: 0.5rem 0.75rem;
    }

    .notification-item {
        min-height: 60px;
    }

    .notification-action {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .notification-dropdown {
        max-height: calc(100vh - 40px);
        top: 45px;
    }

    .notification-list {
        max-height: calc(100vh - 90px);
    }

    .notifi