/* Printing MeoowZMart Base Design System */

:root {
    /* Brand Colors */
    --color-blue: #0A58CA;
    --color-blue-dark: #084298;
    --color-blue-light: #e6f0fa;
    --color-yellow: #FFD700;
    --color-yellow-glow: rgba(255, 215, 0, 0.6);
    --color-pink: #FF1493;
    --color-pink-glow: rgba(255, 20, 147, 0.4);
    --color-white: #FFFFFF;
    --color-black: #111111;
    --color-gray: #F4F6F8;
    --color-text: #333333;
    --color-text-light: #666666;
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing & Borders */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 15px var(--color-yellow-glow);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: radial-gradient(circle at 10% 8%, rgba(245, 158, 11, 0.04) 0%, transparent 45%),
                radial-gradient(circle at 90% 10%, rgba(255, 99, 165, 0.04) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(10, 88, 202, 0.02) 0%, transparent 55%),
                #f8fafc;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

header {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.45)) drop-shadow(0 1px 3px rgba(10, 88, 202, 0.25));
    animation: gentleHeaderLogoFloat 4s ease-in-out infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.75)) drop-shadow(0 2px 6px rgba(10, 88, 202, 0.4));
    transform: translateY(-2px) scale(1.04);
}

@keyframes gentleHeaderLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3.5px);
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-blue-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.btn-yellow:hover, .btn-yellow:focus {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-pink {
    background-color: var(--color-pink);
    color: var(--color-white);
}

.btn-pink:hover, .btn-pink:focus {
    box-shadow: 0 0 15px var(--color-pink-glow);
    transform: translateY(-2px);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: var(--shadow-glow);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.auth-container {
    max-width: 400px;
    margin: var(--spacing-xl) auto;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ============================================================
   LED INSTALL APP BUTTON (Pulsing Neon Edge & Glowing Bulb)
   ============================================================ */
.led-install-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00c6ff, #0072ff, #00f2fe);
    background-size: 300% 300%;
    animation: ledEdgeGradient 4s linear infinite;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.45), 0 0 24px rgba(0, 114, 255, 0.25);
    transition: all 0.3s ease;
    font-family: var(--font-family);
    user-select: none;
}

@keyframes ledEdgeGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.led-install-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.8), 0 0 35px rgba(0, 114, 255, 0.5);
}

.led-install-btn:active {
    transform: translateY(0) scale(0.98);
}

.led-inner {
    background: #091326;
    color: #e0f2fe;
    padding: 7px 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
}

.led-install-btn:hover .led-inner {
    background: #0d1b38;
}

.led-bulb {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981, 0 0 16px #10b981;
    animation: ledBulbPulse 1.6s infinite ease-in-out;
}

@keyframes ledBulbPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px #10b981, 0 0 16px #10b981;
    }
    50% {
        opacity: 0.45;
        transform: scale(0.8);
        box-shadow: 0 0 3px #10b981;
    }
}

.led-install-btn.installed {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.led-install-btn.installed .led-inner {
    background: #064e3b;
    color: #a7f3d0;
}

/* Header Notification Trigger Button */
.header-notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #38bdf8;
    border: 1.5px solid #38bdf8;
    padding: 7px 14px;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.88rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.header-notif-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.notif-led-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: ledBulbPulse 2s infinite ease-in-out;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.3rem;
    color: var(--color-blue-dark);
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: #e2e8f0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* GTranslate 3D Globe Multi-Language Translation Widget */
.gtranslate_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 99999;
}

/* ============================================================
   UNIVERSAL RESPONSIVE BREAKPOINTS (Phone, Tablet, PC, TV)
   ============================================================ */

/* 1. Mobile Phones & Tablets (< 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 12px;
    }
    
    .header-inner {
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.mobile-open {
        display: block;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        padding: 16px;
        margin-top: 10px;
        border: 1px solid #e2e8f0;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a, 
    nav ul li button,
    nav ul li form {
        width: 100%;
        text-align: center;
        display: block;
    }

    nav ul li form {
        margin-left: 0 !important;
        margin-top: 8px;
    }

    .led-install-btn {
        width: 100%;
    }

    .led-inner {
        width: 100%;
        justify-content: center;
    }

    .header-notif-btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .card {
        padding: 16px;
    }
}

/* 2. Tablets & Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .logo img {
        height: 44px;
    }

    nav ul {
        gap: 12px;
        align-items: center;
    }

    nav ul li a {
        font-size: 0.92rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

/* 3. Desktops & Standard Laptops (1025px - 1599px) */
@media (min-width: 1025px) and (max-width: 1599px) {
    nav ul {
        align-items: center;
        gap: 16px;
    }
}

/* 4. Large Screens, TVs & Ultra-Wide Displays (1600px - 2199px) */
@media (min-width: 1600px) {
    body {
        font-size: 1.08rem;
    }

    .container {
        max-width: 1680px;
        padding: 0 32px;
    }

    .logo img {
        height: 60px;
    }

    nav ul {
        gap: 24px;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px;
    }

    .btn {
        padding: 12px 26px;
        font-size: 1.05rem;
    }
}

/* 5. 4K Ultra-HD TVs & Giant Displays (>= 2200px) */
@media (min-width: 2200px) {
    body {
        font-size: 1.25rem;
    }

    .container {
        max-width: 2100px;
        padding: 0 40px;
    }

    .logo img {
        height: 75px;
    }

    .services-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 36px;
    }

    .btn {
        padding: 16px 34px;
        font-size: 1.2rem;
    }

    /* TV Remote & Keyboard Focus Enhancement */
    a:focus-visible, button:focus-visible, input:focus-visible {
        outline: 4px solid var(--color-yellow) !important;
        outline-offset: 4px;
    }
}

/* 6. PWA Standalone Mode Adaptations */
@media (display-mode: standalone) {
    header {
        padding-top: max(env(safe-area-inset-top), 6px);
    }

    body {
        padding-bottom: max(env(safe-area-inset-bottom), 10px);
        user-select: none; /* App feel */
    }

    /* Selectable content inside cards */
    .card, input, textarea, select {
        user-select: text;
    }
}
