/*
Theme Name: Vision Line - فيجن لاين
Theme URI: https://visionline.com
Author: BuildGram
Author URI: https://buildgram.net
Description: قالب WordPress احترافي لمتجر النظارات فيجن لاين - مع لوحة تحكم مخصصة ونظام WhatsApp للطلبات
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vision-line
Domain Path: /languages
Tags: e-commerce, glasses, responsive, rtl, arabic, whatsapp
*/

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    background-color: #f9fafb;
    color: #020617;
    line-height: 1.6;
}

::selection {
    background-color: #FACC15;
    color: #1E40AF;
}

/* ========================================
   WORDPRESS DEFAULT STYLES
   ======================================== */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    text-align: center;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.animate-float-nav {
    animation: float 3s ease-in-out infinite;
}

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

/* ========================================
   PRODUCT CARD STYLES
   ======================================== */
.product-card {
    transition: all 0.4s ease;
    user-select: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .product-image {
    overflow: hidden;
}

.product-card .product-image img {
    transition: transform 0.7s ease;
}

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

.product-card .quick-action {
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.product-card:hover .quick-action {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TESTIMONIAL CARD STYLES
   ======================================== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    user-select: none;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SLIDER BUTTONS
   ======================================== */
.slider-btn {
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.slider-btn:active {
    transform: scale(0.9);
}

/* ========================================
   SERVICE CARD STYLES
   ======================================== */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(30, 64, 175, 0.15);
    border-color: #2563EB;
}

.icon-box {
    transition: all 0.4s ease;
}

.service-card:hover .icon-box {
    background-color: #1E40AF;
    color: #FACC15;
    transform: scale(1.1) rotate(-5deg);
}

/* ========================================
   OFFER CARD STYLES
   ======================================== */
.offer-card {
    transition: all 0.5s ease;
}

.offer-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.offer-card.featured {
    transform: translateY(-1rem);
}

/* ========================================
   FAQ ACCORDION STYLES
   ======================================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #2563EB;
}

.faq-item.active h3 {
    color: #1E40AF;
}

/* ========================================
   TAB STYLES
   ======================================== */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #1E40AF;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-content {
    display: none;
    animation: fadeIn 0.5s;
}

.form-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* ========================================
   CONTACT CARD STYLES
   ======================================== */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ========================================
   FILTER BUTTONS
   ======================================== */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #1E40AF;
    color: white;
    border-color: #1E40AF;
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */
.scroll-hide::-webkit-scrollbar {
    display: none;
}

.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   CURSOR STYLES
   ======================================== */
.cursor-grab {
    cursor: grab;
}

.cursor-grabbing {
    cursor: grabbing;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-bounce {
    animation: bounce 2s infinite;
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    pointer-events: none;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pagination a {
    background-color: white;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    background-color: #f3f4f6;
}

.pagination span.current {
    background-color: #1E40AF;
    color: white;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 768px) {
    .animate-float-nav {
        animation: none;
    }
    
    .offer-card.featured {
        transform: none;
    }
    
    .product-card:hover,
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */
.vl-admin-container {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.vl-admin-sidebar {
    background: linear-gradient(180deg, #1E40AF 0%, #1e3a8a 100%);
}

.vl-admin-card {
    transition: all 0.3s ease;
}

.vl-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vl-admin-input {
    transition: all 0.3s ease;
}

.vl-admin-input:focus {
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* ========================================
   WHATSAPP BUTTON STYLES
   ======================================== */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   ALERT STYLES
   ======================================== */
.vl-alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.vl-alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.vl-alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.vl-alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}
