/*
 * AssamWeb Store - Responsive Stylesheet
 * Location: public_html/store/assets/css/responsive.css
 * 
 * Handles layout adjustments for tablets and mobile devices.
 */

/* ==========================================================================
   Large Devices (Tablets Landscape & Small Desktops)
   Max-width: 1199px
   ========================================================================== */
@media (max-width: 1199px) {
    .stats-bar {
        margin-top: 1rem;
        position: relative;
        z-index: 1;
    }
}

/* ==========================================================================
   Medium Devices (Tablets Portrait)
   Max-width: 991px
   ========================================================================== */
@media (max-width: 991px) {
    /* Navbar Adjustments */
    .glass-navbar {
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: var(--aw-radius-md);
        box-shadow: var(--aw-shadow-lg);
        margin-top: 10px;
        border: 1px solid rgba(0,0,0,0.05);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Hero Section Adjustments */
    .hero-section {
        text-align: center;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-section .d-flex.flex-wrap {
        justify-content: center;
    }

    .hero-section .text-start {
        text-align: center !important;
    }

    .hero-section .d-flex.align-items-end {
        justify-content: center;
    }

    .book-cover-img {
        max-width: 320px;
        transform: rotateY(-10deg);
    }
    
    .book-cover-wrapper:hover .book-cover-img {
        transform: rotateY(-5deg) translateY(-3px);
    }
    
    /* Stats Bar Adjustments */
    .stats-section {
        margin-top: 2rem;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem;
    }
    
    .stat-item:last-child,
    .stat-item:nth-last-child(2) {
        border-bottom: none;
    }
}

/* ==========================================================================
   Small Devices (Mobile Phones)
   Max-width: 767px
   ========================================================================== */
@media (max-width: 767px) {
    /* Typography Scaling */
    html {
        font-size: 15px;
    }
    
    .display-5 {
        font-size: 2.2rem;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }

    /* Hero Section Mobile Adjustments */
    .book-cover-img {
        max-width: 250px;
    }
    
    .latest-edition-badge {
        width: 65px;
        height: 65px;
        font-size: 0.7rem;
        top: -10px;
        right: 0px;
    }

    .btn-lg {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }

    /* Stats Bar Mobile */
    .stat-item {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    
    .stat-item:nth-child(even) {
        border-right: none;
    }
    
    .stat-item:last-child {
        border-right: none;
        border-bottom: none;
        width: 100%;
    }

    /* Offer Countdown Mobile Adjustments */
    .countdown-box {
        padding: 0.75rem;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }

    /* Testimonials Mobile */
    .testimonials-summary-section .card-premium {
        margin-top: 2rem;
    }
    
    /* Footer Adjustments */
    .footer-area {
        text-align: center;
    }
    
    .footer-area ul.list-unstyled {
        align-items: center;
    }
    
    .footer-area .d-flex.align-items-start {
        flex-direction: column;
        align-items: center !important;
        justify-content: center;
        text-align: center;
    }
    
    .footer-area .d-flex.gap-3 {
        justify-content: center;
    }
    
    .footer-area p {
        padding-right: 0 !important;
    }
}

/* ==========================================================================
   Extra Small Devices
   Max-width: 575px
   ========================================================================== */
@media (max-width: 575px) {
    .book-cover-img {
        max-width: 220px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .preview-section .row > div {
        width: 50%;
    }
    
    .trust-badges .col {
        width: 50%;
        margin-bottom: 1rem;
    }
}