/* ============================================
   MOBILE.CSS - Responsive Design for Mobile
   Thêm vào index.html sau các file CSS khác
   ============================================ */

/* ============================================
   Mobile Base Adjustments (< 768px)
   ============================================ */

@media (max-width: 767px) {
  
  /* Root Variables Override */
  :root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3rem;
  }
  
  /* Typography */
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  h1 {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-bottom: 0.875rem;
  }
  
  h3 {
    font-size: 1.375rem !important;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  h4 {
    font-size: 1.125rem !important;
  }
  
  p {
    font-size: 0.9375rem;
    margin-bottom: 0.875rem;
  }
  
  /* Container */
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  /* Sections */
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-padding-sm {
    padding: 2rem 0;
  }
  
  /* ============================================
     Navbar Mobile
     ============================================ */
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar .container {
    padding: 0 1rem;
  }
  
  .navbar .container > .d-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
    margin-right: auto;
  }
  
  .navbar-toggler {
    display: block !important;
    padding: 0.5rem;
    font-size: 1.75rem;
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
  }
  
  .navbar-toggler:focus {
    outline: none;
  }
  
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    padding: 1.5rem;
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
  }
  
  .navbar-collapse.show {
    right: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
  }
  
  .btn.nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* ============================================
     Hero Section Mobile
     ============================================ */
  
  .hero {
    min-height: 85vh;
    padding: 4rem 0 3rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.25rem !important;
    margin-bottom: 1.25rem;
    line-height: 1.15;
  }
  
  .hero-subtitle {
    font-size: 1.125rem !important;
    margin-bottom: 2rem;
    min-height: 60px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.875rem;
    align-items: stretch;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: none;
    padding: 0.875rem 1.5rem;
  }
  
  /* ============================================
     Stats Section Mobile
     ============================================ */
  
  .stats-section {
    padding: 2.5rem 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-item {
    padding: 1.25rem 0.75rem;
  }
  
  .stat-number {
    font-size: 2.25rem !important;
    margin-bottom: 0.375rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
    line-height: 1.3;
  }
  
  /* ============================================
     Section Headers Mobile
     ============================================ */
  
  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .section-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  /* ============================================
     Services Grid Mobile
     ============================================ */
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .service-description {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }
  
  .service-features {
    font-size: 0.875rem;
  }
  
  .service-features li {
    padding: 0.5rem 0;
  }
  
  /* ============================================
     Idol Grid Mobile
     ============================================ */
  
  .idol-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .idol-card {
    aspect-ratio: 3/4;
  }
  
  .idol-overlay {
    padding: 1rem;
  }
  
  .idol-name {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
  }
  
  .idol-followers {
    font-size: 0.8125rem;
  }
  
  .idol-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  
  /* ============================================
     Blog Grid Mobile
     ============================================ */
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .blog-card {
    margin-bottom: 0.5rem;
  }
  
  .blog-image {
    height: 180px;
  }
  
  .blog-content {
    padding: 1.25rem;
  }
  
  .blog-meta {
    font-size: 0.8125rem;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .blog-title {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
  }
  
  .blog-excerpt {
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
    line-height: 1.5;
  }
  
  /* ============================================
     Timeline Mobile
     ============================================ */
  
  .timeline::before {
    left: 16px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 52px;
    margin-bottom: 2rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left !important;
  }
  
  .timeline-content {
    padding: 1rem;
    flex: 1;
  }
  
  .timeline-content:last-child {
    display: none !important;
  }
  
  .timeline-number {
    left: 16px;
    transform: translateY(-50%) !important;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    box-shadow: 0 0 0 6px var(--bg-primary);
  }
  
  .timeline-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  
  .timeline-description {
    font-size: 0.875rem;
  }
  
  /* ============================================
     Forms Mobile
     ============================================ */
  
  .form-section {
    padding: 2rem 1rem;
  }
  
  .form-header {
    margin-bottom: 2rem;
  }
  
  .form-container {
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-label {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
  }
  
  .form-control {
    padding: 0.8125rem 1rem;
    font-size: 1rem;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
  
  .file-upload-label {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  
  .file-upload-label i {
    font-size: 2.5rem;
  }
  
  .file-preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .file-preview img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
  }
  
  .form-check {
    gap: 0.625rem;
  }
  
  .form-check-label {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  /* ============================================
     Requirements Section Mobile
     ============================================ */
  
  .requirements-section {
    padding: 1.25rem;
    margin-top: 2rem;
  }
  
  .requirements-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .requirements-list li {
    padding: 0.625rem 0;
    font-size: 0.875rem;
    gap: 0.625rem;
  }
  
  /* ============================================
     FAQ Mobile
     ============================================ */
  
  .faq-section {
    margin-top: 2rem;
  }
  
  .faq-item {
    margin-bottom: 0.875rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.9375rem;
  }
  
  .faq-question i {
    font-size: 1.125rem;
  }
  
  .faq-answer-content {
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  /* ============================================
     Contact Grid Mobile
     ============================================ */
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact-info {
    padding: 1.25rem;
  }
  
  .contact-icon {
    font-size: 1.75rem;
  }
  
  .contact-details h4 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }
  
  .contact-details p {
    font-size: 0.875rem;
  }
  
  /* ============================================
     Cards Mobile
     ============================================ */
  
  .card {
    padding: 1.5rem;
  }
  
  .card-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .card-description {
    font-size: 0.9375rem;
  }
  
  /* ============================================
     Buttons Mobile
     ============================================ */
  
  .btn {
    padding: 0.8125rem 1.75rem;
    font-size: 0.9375rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  /* Stack buttons on mobile */
  .hero-cta,
  .text-center .btn + .btn {
    margin-top: 0.75rem;
  }
  
  /* ============================================
     Footer Mobile
     ============================================ */
  
  .footer {
    padding: 2.5rem 0 1.5rem;
  }
  
  .footer .row {
    flex-direction: column;
  }
  
  .footer .col-md-4,
  .footer .col-md-2,
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
  
  .footer-brand {
    font-size: 1.375rem;
  }
  
  .footer-title {
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
  }
  
  .footer-links {
    font-size: 0.9375rem;
  }
  
  .footer-links li {
    margin-bottom: 0.625rem;
  }
  
  .social-links {
    gap: 0.875rem;
    margin-top: 1rem;
  }
  
  .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
  }
  
  /* ============================================
     Modal Mobile
     ============================================ */
  
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-body {
    padding: 2rem 1.5rem !important;
  }
  
  .modal-body h3 {
    font-size: 1.375rem;
  }
  
  .modal-body p {
    font-size: 0.9375rem;
  }
  
  .success-icon i {
    font-size: 3.5rem !important;
  }
  
  /* ============================================
     Utilities Mobile
     ============================================ */
  
  .text-center .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Hide on mobile */
  .hide-mobile {
    display: none !important;
  }
  
  /* Show only on mobile */
  .show-mobile {
    display: block !important;
  }
  
  /* ============================================
     Spacing Adjustments
     ============================================ */
  
  .mt-5, .my-5 {
    margin-top: 2rem !important;
  }
  
  .mb-5, .my-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-4, .my-4 {
    margin-top: 1.5rem !important;
  }
  
  .mb-4, .my-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-3, .my-3 {
    margin-top: 1.25rem !important;
  }
  
  .mb-3, .my-3 {
    margin-bottom: 1.25rem !important;
  }
  
  .pt-5, .py-5 {
    padding-top: 2rem !important;
  }
  
  .pb-5, .py-5 {
    padding-bottom: 2rem !important;
  }
  
  /* ============================================
     Performance Optimizations
     ============================================ */
  
  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .hover-lift:hover {
      transform: none;
    }
    
    .hover-scale:hover {
      transform: none;
    }
    
    .card:hover {
      transform: none;
    }
    
    .service-card:hover {
      transform: none;
    }
  }
  
  /* Tap highlight */
  * {
    -webkit-tap-highlight-color: rgba(255, 0, 153, 0.2);
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   Small Mobile (< 400px)
   ============================================ */

@media (max-width: 399px) {
  
  .hero-title {
    font-size: 1.875rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem !important;
  }
  
  .idol-grid {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .form-container {
    padding: 1.25rem;
  }
  
  .navbar-collapse {
    width: 90%;
  }
}

/* ============================================
   Landscape Mobile (< 768px height)
   ============================================ */

@media (max-height: 667px) and (orientation: landscape) {
  
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.875rem !important;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
    min-height: auto;
  }
  
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
  
  .hero-cta .btn {
    width: auto;
    min-width: 150px;
  }
}

/* ============================================
   Touch Improvements
   ============================================ */

/* Larger touch targets */
@media (max-width: 767px) {
  
  a, button, .btn, .nav-link, .card-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .form-check-input {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }
  
  /* Better form inputs on mobile */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}