/* ============================================
   PUREWIN - Responsive Styles
   ============================================ */

/* ============================================
   TABLET: 768px - 1024px
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .content-wrapper {
        flex-direction: column;
        padding: 40px 0;
    }

    .sidebar {
        width: 100%;
    }

    /* Header */
    .header-top {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 24px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 11px;
    }

    /* Navigation */
    .nav-link {
        padding: 12px 14px;
        font-size: 10px;
    }

    /* Hero Split */
    .hero-text {
        font-size: 80px;
        letter-spacing: -2px;
    }

    .hero-tagline p {
        font-size: 12px;
        padding: 8px 20px;
    }

    /* Typography Section */
    .typography-section {
        padding: 80px 0;
    }

    .typo-large {
        font-size: 60px;
        letter-spacing: -2px;
    }

    .typo-description {
        font-size: 14px;
    }

    /* Grid */
    .pure-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 36px;
    }

    /* Footer CTA */
    .footer-cta {
        padding: 80px 0;
    }

    .cta-title {
        font-size: 36px;
    }

    /* Footer */
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Post List */
    .post-item {
        flex-direction: column;
        gap: 20px;
    }

    .post-thumbnail {
        width: 100%;
    }

    .post-title {
        font-size: 20px;
    }

    .page-title {
        font-size: 36px;
    }

    /* Single Post */
    .single-post .post-title {
        font-size: 32px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Filter Tabs */
    .filter-tab {
        padding: 10px 15px;
        font-size: 10px;
    }
}

/* ============================================
   MOBILE: max-width 767px
   ============================================ */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-top {
        padding: 12px 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .header-btn-group {
        gap: 8px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 11px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-link:hover {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.05);
    }

    .nav-item .sub-menu {
        position: static;
        border: none;
        background: rgba(0,0,0,0.9);
    }

    .nav-item .sub-menu .nav-link {
        padding-left: 30px;
    }

    /* Hero Split */
    .hero-split {
        flex-direction: column;
        height: auto;
        min-height: 80vh;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        height: 40vh;
        min-height: 250px;
    }

    .hero-divider {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        width: 100%;
        height: 1px;
    }

    .hero-text {
        font-size: 60px;
        letter-spacing: -2px;
    }

    .hero-tagline {
        bottom: 30px;
    }

    .hero-tagline p {
        font-size: 10px;
        padding: 8px 15px;
        letter-spacing: 2px;
    }

    /* Typography Section */
    .typography-section {
        padding: 60px 0;
    }

    .typo-large {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .typo-description {
        font-size: 13px;
        margin: 30px auto;
    }

    .typo-cta {
        font-size: 14px;
    }

    /* Grid */
    .pure-grid-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .pure-grid {
        grid-template-columns: 1fr;
    }

    .grid-item-image {
        height: 180px;
    }

    .grid-item-content {
        padding: 20px;
    }

    /* Footer CTA */
    .footer-cta {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-link {
        font-size: 14px;
    }

    /* Footer */
    .site-footer {
        padding: 60px 0 0;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 40px;
    }

    .footer-col h4 {
        font-size: 12px;
    }

    .footer-logo-text {
        font-size: 20px;
    }

    .footer-brand-text {
        font-size: 13px;
    }

    .license-icons {
        gap: 20px;
    }

    .license-item i {
        font-size: 20px;
    }

    /* Page Title */
    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Post List */
    .post-item {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 30px;
    }

    .post-thumbnail {
        width: 100%;
    }

    .post-thumbnail img {
        height: 180px;
    }

    .post-title {
        font-size: 18px;
    }

    .post-excerpt {
        font-size: 14px;
    }

    .read-more {
        font-size: 11px;
    }

    /* Single Post */
    .single-post .post-title {
        font-size: 24px;
    }

    .single-post .post-thumbnail img {
        max-height: 300px;
    }

    .post-body {
        font-size: 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-thumb {
        height: 120px;
    }

    /* Filter Tabs */
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        white-space: nowrap;
        padding: 10px 15px;
        font-size: 10px;
    }

    /* Sidebar */
    .sidebar-widget {
        padding: 20px;
    }

    .sidebar-widget h3 {
        font-size: 12px;
    }

    /* Pagination */
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 150px;
    }

    /* Tables */
    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px 10px;
    }

    /* Floating Sidebar */
    .floating-sidebar {
        right: 10px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ============================================
   SMALL MOBILE: max-width 480px
   ============================================ */
@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .btn-login,
    .btn-register {
        padding: 6px 10px;
        font-size: 9px;
    }

    .hero-text {
        font-size: 48px;
    }

    .hero-left,
    .hero-right {
        min-height: 200px;
    }

    .typo-large {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .page-title {
        font-size: 24px;
    }

    .single-post .post-title {
        font-size: 20px;
    }

    .post-title {
        font-size: 16px;
    }

    .grid-item-content h3 {
        font-size: 14px;
    }

    .footer-col ul li a {
        font-size: 13px;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-split {
        min-height: 100vh;
    }

    .hero-left,
    .hero-right {
        height: 50vh;
        min-height: 200px;
    }

    .hero-text {
        font-size: 50px;
    }

    .typography-section {
        padding: 40px 0;
    }

    .typo-large {
        font-size: 36px;
    }
}

/* ============================================
   LARGE DESKTOP: min-width 1400px
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-text {
        font-size: 140px;
    }

    .typo-large {
        font-size: 120px;
    }

    .section-title {
        font-size: 56px;
    }

    .cta-title {
        font-size: 56px;
    }
}

/* ============================================
   HIGH DPI DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-left,
    .hero-right {
        animation: none;
    }

    .hero-divider {
        animation: none;
    }

    .hero-tagline {
        animation: none;
    }

    .typo-large {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* === Mobile Optimization Additions === */
@media (max-width: 768px) {
  .nav-link, .btn-login, .btn-register, .btn-demo,
  a, button, .sidebar-btn {
    min-height: 44px;
    min-width: 44px;
  }
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  .article-card {
    margin-bottom: 20px;
  }
  .content-area {
    padding: 10px;
  }
}
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
  h1, .hero-title {
    font-size: 24px !important;
  }
  h2 {
    font-size: 20px !important;
  }
}
