/**
 * Responsive Styles
 * Mobile-first responsive design
 *
 * @package Kejutan_Digital
 */

/* ==========================================================================
   Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --kd-spacing-3xl: 3rem;
        --kd-spacing-2xl: 2.5rem;
        --kd-container-padding: 1rem;
    }

    /* Header */
    .kd-header__nav {
        display: none;
    }

    .kd-header__cta-group {
        display: none;
    }

    .kd-menu-toggle {
        display: flex;
    }

    /* Content Area */
    .kd-content-area {
        grid-template-columns: 1fr;
    }

    .kd-content-area .kd-sidebar {
        position: static;
    }

    /* Hero */
    .kd-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kd-hero__actions {
        justify-content: center;
    }

    .kd-hero__image {
        order: -1;
    }

    .kd-hero__image .kd-card {
        transform: none;
    }

    /* Product Hero */
    .kd-product-hero__grid {
        grid-template-columns: 1fr;
    }

    .kd-product-actions {
        flex-direction: column;
    }

    .kd-product-actions .kd-btn {
        justify-content: center;
    }

    /* Footer */
    .kd-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--kd-spacing-lg);
    }

    .kd-footer__social--left {
        justify-content: center;
    }

    .kd-footer-brand {
        text-align: center;
    }

    .kd-footer-brand .kd-footer-logo {
        display: flex;
        justify-content: center;
    }

    .kd-footer-brand .kd-footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }

    .kd-footer-brand .widget-title {
        text-align: center;
    }

    .kd-footer-contact {
        align-items: center;
    }

    .kd-footer-links, .kd-footer-legal {
        text-align: center;
    }

    /* Post Navigation */
    .kd-post-nav {
        grid-template-columns: 1fr;
    }



    /* Pricing */
    .kd-pricing .kd-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Product Card Actions */
    .kd-product-card__actions {
        flex-direction: column;
    }

    /* 404 */
    .kd-404-number {
        font-size: 6rem;
    }

    /* Author Box */
    .kd-author-box {
        flex-direction: column;
        text-align: center;
    }

    /* Pagination */
    .kd-pagination .nav-links {
        gap: 0.25rem;
    }

    .kd-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Floating WhatsApp & Sales Proof */
    .kd-floating-wa {
        bottom: 5rem;
        right: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .kd-back-to-top {
        right: 1rem;
        bottom: 1rem;
    }

    .kd-sales-proof {
        top: 1rem;
        bottom: auto;
        left: 1rem;
        right: 1rem;
        max-width: none;
        transform: translateY(-20px);
        z-index: 1000;
        padding: 0.6rem 0.75rem;
        gap: 0.75rem;
        border-width: 2px;
        box-shadow: 2px 2px 0 var(--kd-border);
    }
    
    .kd-sales-proof.is-visible {
        transform: translateY(0);
    }

    .kd-sales-proof__icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-width: 1px;
    }

    .kd-sales-proof__name {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }

    .kd-sales-proof__text {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .kd-sales-proof__time {
        font-size: 0.65rem;
        margin-top: 0.15rem;
    }
}

/* ==========================================================================
   Tablet (min-width: 769px) and (max-width: 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Header */
    .kd-header__nav ul {
        gap: 0;
    }

    .kd-header__nav ul li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Content Area */
    .kd-content-area {
        grid-template-columns: 1fr 260px;
    }

    /* Hero */
    .kd-hero__container {
        gap: var(--kd-spacing-lg);
    }

    /* Product Hero */
    .kd-product-hero__grid {
        gap: var(--kd-spacing-lg);
    }

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


}

/* ==========================================================================
   Large screens (min-width: 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    .kd-hero__title {
        font-size: 4rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .kd-header,
    .kd-footer,
    .kd-back-to-top,
    .kd-menu-toggle,
    .kd-mobile-nav,
    .kd-sidebar {
        display: none !important;
    }

    .kd-content-area {
        grid-template-columns: 1fr !important;
    }

    .kd-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* ==========================================================================
   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;
    }

    .kd-card:hover {
        transform: none;
    }

    .kd-btn:hover {
        transform: none;
    }

    .kd-btn:active {
        transform: none;
    }
}
