/* ============================================================
   KN Jewellery - Responsive Stylesheet
   Description: Responsive design from 320px to 4K displays
   ============================================================ */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .about-content {
        padding-left: 2rem;
    }
    
    .app-content {
        padding-left: 2rem;
    }
}

/* Extra Large Desktops (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
}

/* 4K Displays (1920px and up) */
@media (min-width: 1920px) {
    :root {
        --section-padding: 8rem;
    }
    
    .container {
        max-width: 1600px;
    }
    
    html {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 6.5rem;
    }
    
    .hero-content {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* Logo & Offer Banner Adjustments */
@media (max-width: 991px) {
    .brand-logo-img {
        height: 42px;
        max-width: 140px;
    }
    
    .footer-logo-img {
        height: 48px;
        max-width: 160px;
    }
    
    .offer-banner {
        padding: 0.5rem 0;
    }
    
    .offer-banner .container {
        padding-right: 2.5rem;
    }
    
    .offer-banner-content {
        gap: 0.5rem;
    }
    
    .offer-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    body.has-offer-banner .navbar {
        top: 42px;
    }
    
    body.has-offer-banner .scroll-progress {
        top: 42px;
    }
}

/* Tablets and Small Desktops (991px and below) */
@media (max-width: 991px) {
    :root {
        --section-padding: 4.5rem;
    }
    
    .navbar-collapse {
        background: rgba(11, 11, 11, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link::after {
        left: 1rem;
        transform: none;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 40px;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 0.75rem;
    }
    
    .nav-cta .btn-gold {
        width: 100%;
    }
    
    .about-content {
        padding-left: 1rem;
        margin-top: 2rem;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-badge {
        right: 10px;
        bottom: 20px;
        padding: 1rem;
        min-width: 120px;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    .app-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 55px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
    
    .contact-form-wrapper {
        margin-bottom: 2rem;
    }
}

/* Tablets (767px and below) */
@media (max-width: 767px) {
    :root {
        --section-padding: 3.5rem;
    }
    
    .hero-section {
        min-height: 600px;
    }
    
    .hero-content {
        min-height: 600px;
    }
    
    .hero-text {
        padding-top: 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
    
    .hero-next,
    .hero-prev {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .collections-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .collection-card,
    .premium-card,
    .why-card,
    .contact-card,
    .testimonial-card {
        margin-bottom: 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .app-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-legal {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Small Mobile Devices (575px and below) */
@media (max-width: 575px) {
    .navbar-brand .brand-text {
        font-size: 1.25rem;
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .about-image img {
        height: 280px;
    }
    
    .about-image::before {
        display: none;
    }
    
    .about-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -30px;
        margin-left: auto;
        margin-right: 20px;
        width: fit-content;
    }
    
    .vm-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .vm-item:hover {
        transform: none;
    }
    
    .stat-card {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .timeline-title {
        font-size: 1.6rem;
    }
    
    .timeline-year {
        font-size: 1.25rem;
    }
    
    .premium-content {
        padding: 1.25rem;
    }
    
    .premium-content h3 {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        padding: 1.75rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .shop-front-wrapper {
        padding: 1.5rem;
    }
    
    .shop-front-image {
        aspect-ratio: 16/10;
    }
    
    .shop-front-overlay {
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem 1rem 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .map-wrapper {
        min-height: 350px;
    }
    
    .map-wrapper iframe {
        min-height: 350px;
    }
    
    .offer-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-right: 2rem;
    }
    
    .offer-text {
        font-size: 0.75rem;
    }
    
    .offer-link {
        font-size: 0.8rem;
    }
    
    .footer-widget h4 {
        margin-bottom: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-form .form-control {
        border-radius: var(--radius-md) !important;
    }
    
    .newsletter-form .btn {
        width: 100%;
        border-radius: var(--radius-md) !important;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Extra Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .phone-frame {
        width: 210px;
        height: 420px;
    }
    
    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 500px;
        height: auto;
    }
    
    .hero-content {
        min-height: 500px;
        height: auto;
    }
    
    .hero-text {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .loading-screen .loader-text {
        font-size: 2.5rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Hover-only devices (not touch) */
@media (hover: hover) and (pointer: fine) {
    .collection-overlay {
        opacity: 0;
    }
    
    .collection-card:hover .collection-overlay {
        opacity: 1;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .collection-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(11, 11, 11, 0.7), transparent);
        align-items: flex-end;
        padding-bottom: 1.5rem;
    }
    
    .premium-card:hover {
        transform: translateY(-5px);
    }
    
    .why-card:hover::before {
        height: 0;
    }
    
    .why-card:hover .why-icon,
    .why-card:hover h3,
    .why-card:hover p {
        color: initial;
    }
    
    .why-card:hover h3,
    .why-card:hover p {
        color: var(--color-secondary);
    }
    
    .why-card:hover p {
        color: var(--color-text-light);
    }
}
