/*
Theme Name: Sky Restaurant V3 Complete
Theme URI: https://test.skyrestaurant.ro
Description: Replică 1:1 comenzi.skyrestaurant.ro - Optimizat pentru tabletă 10" Full HD (1920x1200)
Version: 3.0
Author: Custom Development
Text Domain: sky-restaurant
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   OPTIMIZARE TABLETĂ 10" FULL HD
   Target: 1920x1200 (landscape) și 1200x1920 (portrait)
   ============================================ */

/* LANDSCAPE MODE - 1920x1200 */
@media screen and (min-width: 1800px) and (max-width: 1920px) and (orientation: landscape) {
    html {
        font-size: 18px; /* Scale up pentru tabletă */
    }
    
    body {
        max-width: 1920px;
        margin: 0 auto;
    }
}

/* PORTRAIT MODE - 1200x1920 */
@media screen and (min-width: 1100px) and (max-width: 1200px) and (orientation: portrait) {
    html {
        font-size: 17px;
    }
}

/* ============================================
   CONTAINER
   ============================================ */
.menu-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   CATEGORII GRID - Pagina principală
   ============================================ */
.menu-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 40px 20px;
}

/* Optimizare pentru 1920px width */
@media screen and (min-width: 1800px) {
    .menu-categories-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 coloane perfecte */
        gap: 30px;
        padding: 50px 40px;
    }
}

/* Optimizare pentru portrait */
@media screen and (max-width: 1200px) and (orientation: portrait) {
    .menu-categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 coloane */
        gap: 20px;
    }
}

/* ============================================
   CATEGORY CARD
   ============================================ */
.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #111;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    min-height: 280px; /* Touch-friendly height */
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 25px;
    min-height: 100px;
}

.category-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-page {
    min-height: 100vh;
    background-color: #000;
}

.back-navigation {
    padding: 20px 40px;
    border-bottom: 1px solid #333;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.1);
    min-height: 60px; /* Touch-friendly */
}

.back-button:hover {
    background: #d4af37;
    color: #000;
    transform: translateX(-5px);
}

.category-header {
    text-align: center;
    padding: 50px 20px;
    border-bottom: 3px solid #d4af37;
    margin-bottom: 40px;
}

.category-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    padding: 30px;
}

/* Optimizare pentru 1920px */
@media screen and (min-width: 1800px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 coloane */
        gap: 40px;
        padding: 40px;
    }
}

/* Optimizare pentru portrait */
@media screen and (max-width: 1200px) and (orientation: portrait) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 coloane */
        gap: 25px;
    }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background-color: #111;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 60px; /* Consistență înălțime */
}

.product-description {
    font-size: 16px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 18px;
    min-height: 75px; /* Consistență înălțime */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 2px solid #333;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
}

.product-weight {
    font-size: 15px;
    color: #888;
    font-weight: 500;
}

/* ============================================
   SPLASH SCREEN - /meniu-tableta
   ============================================ */
.splash-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    text-align: center;
    padding: 40px;
}

.splash-image {
    max-width: 800px;
    width: 90%;
    margin-bottom: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.splash-title {
    font-size: 120px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin: 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.splash-title:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
}

/* ============================================
   SELECTOR LIMBĂ - /selectie-limba
   ============================================ */
.language-selector-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 40px;
    position: relative;
}

.language-selector-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/fundal2.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.language-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.language-logo {
    width: 300px;
    margin-bottom: 60px;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.3));
}

.language-title {
    font-size: 80px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 15px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.language-options {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.language-option {
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-flag-large {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid #333;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-option:hover .language-flag-large {
    transform: scale(1.1) rotate(5deg);
    border-color: #d4af37;
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5);
}

/* ============================================
   LOADING & NO CONTENT
   ============================================ */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #d4af37;
    font-size: 24px;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 22px;
}

.no-products p {
    margin: 15px 0;
}

/* ============================================
   RESPONSIVE TOUCH OPTIMIZATION
   ============================================ */

/* Toate elementele interactive min 44x44px */
button,
a,
.category-card,
.product-card,
.back-button,
.language-option {
    min-width: 44px;
    min-height: 44px;
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Disable user select pentru UI elements */
.category-title,
.product-name,
.splash-title,
.language-title {
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Stagger animation pentru cards */
.category-card,
.product-card {
    animation: fadeIn 0.6s ease forwards;
}

.category-card:nth-child(1),
.product-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2),
.product-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3),
.product-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4),
.product-card:nth-child(4) { animation-delay: 0.2s; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .back-navigation,
    .language-selector-page {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .category-card,
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .category-card,
    .product-card {
        border: 3px solid #fff;
    }
    
    .product-price,
    .category-title {
        text-shadow: none;
        background: #d4af37;
        color: #000;
        padding: 5px 10px;
        display: inline-block;
    }
}
