/**
 * EduCodeVault - Responsive Styles
 * Mobile and tablet optimization
 */

/* Extra Large Screens (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

/* Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .generator-wrapper {
    padding: 30px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets and Medium Screens (768px - 991px) */
@media (max-width: 991px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-section {
    padding: 40px 20px;
  }

  .after-header-wrapper {
    max-width: 100%;
  }

  .main-content {
    padding: 40px 20px;
  }

  .generator-status-content {
    gap: 15px;
  }

  .status-item-wrapper {
    padding: 10px 15px;
  }

  .status-label,
  .status-dynamic {
    font-size: 13px;
  }

  .article-wrapper {
    padding: 25px;
  }

  .faq-wrapper {
    padding: 25px;
  }

  .related-wrapper {
    padding: 25px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 15px;
  }

  .section-title {
    font-size: 16px;
  }
}

/* Small Tablets and Large Phones (576px - 767px) */
@media (max-width: 767px) {
  .hero-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .hero-section {
    padding: 30px 15px;
  }

  .main-content {
    padding: 30px 15px;
  }

  .generator-status-content {
    flex-direction: column;
    gap: 10px;
  }

  .status-item-wrapper {
    width: 100%;
    justify-content: center;
  }

  .generator-section {
    margin-bottom: 40px;
  }

  .generator-wrapper {
    padding: 20px;
  }

  .logo-img-gen {
    max-width: 150px;
    margin-bottom: 20px;
  }

  .form-wrapper .label {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .input-wrapper {
    margin-bottom: 15px;
  }

  .input-wrapper label {
    font-size: 13px;
  }

  .input-username {
    padding: 12px;
    font-size: 16px;
  }

  .get-code-btn {
    padding: 12px 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .article-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .article-section h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
  }

  .article-section p {
    font-size: 15px;
  }

  .article-wrapper {
    padding: 20px;
    border-left: 4px solid var(--primary-color);
  }

  .guide-steps li {
    padding: 12px;
    font-size: 15px;
  }

  .features-content {
    padding: 20px;
  }

  .features-list li {
    padding-left: 25px;
    font-size: 15px;
  }

  .faq-wrapper {
    padding: 20px;
  }

  .faq-wrapper h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .faq-question {
    padding: 15px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 15px;
    font-size: 14px;
  }

  .related-wrapper {
    padding: 20px;
  }

  .related-wrapper h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .related-card h3 {
    font-size: 16px;
    margin: 12px 12px 8px;
  }

  .related-card p {
    font-size: 13px;
    margin: 0 12px 12px;
  }

  .related-link {
    margin: 0 12px 12px;
    width: calc(100% - 24px);
    padding: 10px 15px;
    font-size: 13px;
  }

  .site-footer {
    padding: 40px 15px 20px;
  }

  .footer-main {
    margin-bottom: 25px;
  }

  .footer-section {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-description,
  .footer-links {
    font-size: 13px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
  }

  .footer-nav li {
    margin: 0;
  }

  .footer-copyright,
  .footer-disclaimer {
    font-size: 11px;
  }
}

/* Mobile Phones (480px - 575px) */
@media (max-width: 575px) {
  body {
    font-size: 14px;
  }

  .branding-wrapper .label {
    font-size: 16px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-section {
    padding: 25px 12px;
  }

  .main-content {
    padding: 20px 12px;
  }

  .generator-section {
    margin-bottom: 30px;
  }

  .generator-wrapper {
    padding: 15px;
  }

  .logo-img-gen {
    max-width: 120px;
    margin-bottom: 15px;
  }

  .form-wrapper .label {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .input-username {
    padding: 10px;
    font-size: 16px;
  }

  .get-code-btn {
    padding: 11px 16px;
    font-size: 12px;
  }

  .article-section h2,
  .faq-wrapper h2,
  .related-wrapper h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .article-section h3 {
    font-size: 16px;
  }

  .article-section,
  .article-wrapper {
    margin-bottom: 30px;
  }

  .article-wrapper {
    padding: 15px;
  }

  .guide-steps li {
    padding: 10px;
    font-size: 14px;
  }

  .features-content {
    padding: 15px;
  }

  .faq-wrapper {
    padding: 15px;
  }

  .related-wrapper {
    padding: 15px;
  }

  .related-image {
    height: 120px;
  }

  .related-card h3 {
    font-size: 15px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 8px 10px;
  }
}

/* Small Mobile Phones (< 480px) */
@media (max-width: 479px) {
  .branding-wrapper .label {
    font-size: 14px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-section {
    padding: 20px 10px;
  }

  .main-content {
    padding: 15px 10px;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .generator-wrapper,
  .article-wrapper,
  .faq-wrapper,
  .related-wrapper {
    padding: 12px;
  }

  .form-wrapper .label {
    font-size: 13px;
  }

  .logo-img-gen {
    max-width: 100px;
  }

  .input-username {
    font-size: 16px;
  }

  .get-code-btn {
    font-size: 11px;
    padding: 10px 12px;
  }

  .status-item-wrapper {
    padding: 8px 12px;
    font-size: 12px;
  }

  .site-footer {
    padding: 30px 10px 15px;
  }

  .footer-section {
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 14px;
  }
}

/* Landscape Mode (Shorter Height) */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    padding: 20px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 5px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .generator-status {
    margin-top: 15px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .get-code-btn,
  .related-link,
  .footer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* High Density Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img-gen,
  .related-image,
  .site-header {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e0e0e0;
    --light-bg: #2c2c2c;
    --border-color: #444;
    --secondary-color: #e0e0e0;
  }

  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .branding-wrapper .label {
    color: #e0e0e0;
  }

  .article-wrapper,
  .faq-wrapper,
  .related-wrapper {
    background-color: #2c2c2c;
  }

  .faq-item,
  .related-card {
    background-color: #252525;
    border-color: #444;
  }

  .faq-question {
    background-color: #333;
    color: #e0e0e0;
  }

  .faq-answer {
    background-color: #252525;
    color: #d0d0d0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .animated {
    animation: none !important;
  }

  * {
    transition: none !important;
  }
}
