/**
 * Desktop Enhancement Styles
 * Progressive enhancement for tablet and desktop viewports
 * Uses min-width media queries for mobile-first approach
 * Part of: İzmir Tenteci Mobile Optimization Project
 */

/* ========================================
   TABLET (768px and up)
   ======================================== */
@media (min-width: 768px) {

    /* Container */
    .container {
        max-width: 720px;
        padding: 0 var(--space-lg);
    }

    /* Grid System - 2 columns */
    .row {
        margin: 0 calc(var(--space-lg) * -0.5);
    }

    .col {
        padding: 0 calc(var(--space-lg) * 0.5);
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    /* Sections */
    .section,
    .section-light,
    .section-dark {
        padding: 4rem 0;
    }

    /* Hero */
    .hero {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    /* Bento Grid - 2 columns */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /* Stats - 4 columns */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    /* Desktop Navigation */
    .mobile-menu-btn {
        display: none;
    }

    .desktop-nav {
        display: flex;
    }

    .desktop-nav-list {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
    }

    .desktop-nav a {
        padding: var(--space-sm) 0;
        color: var(--text-light);
        position: relative;
    }

    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .desktop-nav a:hover::after,
    .desktop-nav a:focus::after {
        width: 100%;
    }

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

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

    /* Hide mobile-specific elements */
    .mobile-nav {
        display: none !important;
    }
}

/* ========================================
   DESKTOP (1024px and up)
   ======================================== */
@media (min-width: 1024px) {

    /* Container */
    .container {
        max-width: 960px;
    }

    /* Grid System - 3 columns */
    .col-lg-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Hero - Center aligned */
    .hero {
        padding: 8rem 0;
    }

    .hero h1 {
        font-size: clamp(3rem, 7vw, 5rem);
    }

    .hero p {
        font-size: 1.25rem;
        max-width: 700px;
    }

    /* Bento Grid - Mixed layout */
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }

    .bento-card:first-child {
        grid-column: span 2;
    }

    .bento-card:nth-child(4) {
        grid-column: span 2;
    }

    /* Site Header - taller */
    .site-header {
        height: 70px;
    }

    .site-header.scrolled {
        height: 60px;
    }

    /* Sections with more spacing */
    .section,
    .section-light,
    .section-dark {
        padding: 6rem 0;
    }

    /* Testimonials - 3 columns */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Process - 4 columns in a row */
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .process-number {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

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

    /* Hover effects for desktop */
    .service-card {
        transform-style: preserve-3d;
        perspective: 1000px;
    }

    .service-card:hover {
        transform: translateY(-8px) rotateX(2deg);
    }

    /* Enhanced animations */
    .btn:hover {
        transform: translateY(-3px);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ========================================
   LARGE DESKTOP (1280px and up)
   ======================================== */
@media (min-width: 1280px) {

    /* Container */
    .container {
        max-width: 1200px;
    }

    /* Hero with parallax */
    .hero {
        padding: 10rem 0;
        min-height: 90vh;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 8vw, 6rem);
    }

    /* Sections */
    .section,
    .section-light,
    .section-dark {
        padding: 8rem 0;
    }

    /* Bento Grid - Enhanced */
    .bento-grid {
        gap: 2rem;
    }

    .bento-card {
        border-radius: 1.5rem;
    }

    /* Stats with better spacing */
    .stats-item {
        padding: 2rem;
    }

    .stats-number {
        font-size: 3.5rem;
    }

    /* Gallery with hover effects */
    .gallery-item:hover {
        transform: scale(1.02);
        box-shadow: var(--shadow-xl);
    }
}

/* ========================================
   EXTRA LARGE (1536px and up)
   ======================================== */
@media (min-width: 1536px) {

    /* Container */
    .container {
        max-width: 1400px;
    }

    /* Hero full viewport */
    .hero {
        min-height: 100vh;
    }

    /* Enhanced spacing */
    .section,
    .section-light,
    .section-dark {
        padding: 10rem 0;
    }
}

/* ========================================
   DESKTOP-ONLY COMPONENTS
   ======================================== */

/* Tooltip (hover only) */
@media (min-width: 1024px) {
    .tooltip {
        position: relative;
    }

    .tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        padding: 0.5rem 1rem;
        background: var(--bg-dark);
        color: var(--white);
        font-size: 0.75rem;
        white-space: nowrap;
        border-radius: var(--radius-sm);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        pointer-events: none;
    }

    .tooltip:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mega menu dropdown */
@media (min-width: 1024px) {
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        padding: var(--space-sm);
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        display: block;
        padding: var(--space-sm) var(--space-md);
        color: var(--text-light);
        border-radius: var(--radius-sm);
        transition: background 0.2s;
    }

    .dropdown-item:hover {
        background: rgba(212, 175, 55, 0.1);
    }
}

/* Parallax effects (desktop only) */
@media (min-width: 1024px) {
    .parallax {
        transform-style: preserve-3d;
    }

    .parallax-layer {
        will-change: transform;
    }
}

/* ========================================
   PRINT STYLES (ENHANCED)
   ======================================== */
@media print and (min-width: 768px) {

    .container {
        max-width: 100%;
    }

    /* Show expanded content */
    .accordion-content {
        max-height: none !important;
        display: block !important;
    }
}

/* ========================================
   HOVER STATES (DESKTOP ONLY)
   ======================================== */
@media (hover: hover) and (pointer: fine) {

    /* Only apply hover effects on devices with mouse */
    .btn:hover {
        transform: translateY(-2px);
    }

    .service-card:hover {
        transform: translateY(-6px);
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

    /* Smooth transitions */
    a, button, .btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ========================================
   DESKTOP NAVIGATION STYLES
   ======================================== */
@media (min-width: 768px) {

    .desktop-nav {
        display: block;
    }

    .nav-link {
        position: relative;
        padding: 0.5rem 1rem;
        font-weight: 500;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        width: 80%;
    }
}

/* ========================================
   UTILITY CLASSES (DESKTOP)
   ======================================== */
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }

    .text-md-center { text-align: center; }
    .text-md-left { text-align: left; }
    .text-md-right { text-align: right; }
}

@media (min-width: 1024px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }

    .text-lg-center { text-align: center; }
    .text-lg-left { text-align: left; }
    .text-lg-right { text-align: right; }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */
@media (min-width: 768px) and (orientation: landscape) {

    /* Reduce padding for landscape mobile */
    .hero {
        padding: 3rem 0;
    }

    .section {
        padding: 3rem 0;
    }
}
