/*
Theme Name: Facility Store
Theme URI: https://example.com/facility-store
Author: Facility Dev
Description: قالب احترافي لخدمات GTA V بتصميم داكن وتأثيرات بصرية عالية.
Version: 1.0
License: GNU General Public License v2 or later
Tags: dark, gaming, ecommerce, one-page
*/

/* ملاحظة: نحن نستخدم Tailwind CSS عبر CDN في ملف header.php
   ولكن سنضع التنسيقات الخاصة (Custom CSS) هنا.
*/

/* GTA Font Import (Fallback if CDN fails) */
@font-face {
    font-family: 'Pricedown';
    src: url('https://db.onlinewebfonts.com/t/056353a27c582f1fb742956167a59d68.woff2') format('woff2');
}

body {
    font-family: 'Cairo', sans-serif;
    color: #ffffff;
    background-color: #0f172a; /* Fallback color */
    overflow-x: hidden;
}

.font-gta {
    font-family: 'Pricedown', 'Cairo', sans-serif;
    letter-spacing: 2px;
}

.font-tajawal {
    font-family: 'Tajawal', sans-serif;
}

/* 3D GTA Logo Style */
.gta-title-effect {
    font-family: 'Pricedown';
    color: #2d8c3c;
    background: linear-gradient(180deg, #5fe87b 0%, #2d8c3c 60%, #1a5c25 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px #ffffff;
    filter: drop-shadow(0px 5px 0px rgba(0,0,0,0.8));
    position: relative;
    z-index: 10;
}

.welcome-text {
    font-family: 'Pricedown';
    color: #ffffff;
    text-shadow: 0 4px 0 #000000;
}

/* Shimmer Effect */
.shimmer-text {
    background: linear-gradient(to right, #9ca3af 0%, #ffffff 50%, #9ca3af 100%);
    background-size: 200% auto;
    color: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    font-weight: 900;
}
@keyframes shimmer {
    to { background-position: 200% center; }
}

/* Glass Description */
.glass-desc {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.glass-desc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2d8c3c;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 40;
    opacity: 0.3;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.90);
    z-index: -1;
}

.card-glass {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 140, 60, 0.25);
    border-color: rgba(45, 140, 60, 0.5);
}

.text-glow {
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
}

/* Loading Screen */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
}
.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid #1a5c25;
    border-top: 4px solid #4ade80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #2d8c3c; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4ade80; }

/* Garage Scroll */
.garage-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}
.garage-item {
    min-width: 280px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.garage-item:hover { transform: scale(1.02); }

/* Character Switch */
.char-switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}
.char-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    filter: grayscale(80%);
}
.char-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.char-circle:hover {
    transform: scale(1.3);
    border-color: #4ade80;
    filter: grayscale(0%);
    z-index: 10;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
}
.char-circle:hover img { transform: scale(1.1); }
.char-info {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}
.char-circle:hover + .char-info { opacity: 1; }
@media (max-width: 640px) { .char-circle { width: 90px; height: 90px; } }

/* Mission Passed */
#mission-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.mission-text {
    font-family: 'Pricedown', sans-serif;
    font-size: 5rem;
    color: #C6A74F;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(198, 167, 79, 0.5), 3px 3px 0px #000;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mission-text.animate { transform: scale(1); opacity: 1; }
.mission-sub {
    font-family: 'Pricedown', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}
.mission-sub.animate { opacity: 1; transform: translateY(0); }
.mission-bar {
    width: 0;
    height: 2px;
    background: #fff;
    margin: 20px 0;
    box-shadow: 0 0 10px #fff;
    transition: width 0.5s ease 0.2s;
}
.mission-bar.animate { width: 60%; }

/* Tracking Card */
.ps5-tracking-card {
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid #1e3a8a;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    font-family: 'Cairo', sans-serif;
    margin: 0 auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
}
.ps5-progress-container {
    background: #1e293b;
    height: 8px;
    border-radius: 10px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
}
.ps5-progress-bar {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    height: 100%;
    box-shadow: 0 0 15px #3b82f6;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 10%;
}
.floating-img { width: 100px; margin: 0 auto; animation: bounce 2s infinite ease-in-out; }
.success-img { width: 100px; margin: 0 auto; animation: pulse 2s infinite; }
@keyframes bounce { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}
.steps-labels { display: flex; justify-content: space-between; font-size: 13px; color: #64748b; }
.steps-labels span.active { color: #60a5fa; font-weight: bold; text-shadow: 0 0 10px rgba(96, 165, 250, 0.5); }
.tracking-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    outline: none;
    text-align: center;
    width: 200px;
    transition: all 0.3s;
}
.tracking-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}