/*
Theme Name: Saanie Theme (صانع)
Theme URI: https://saanie.com/
Description: A custom, lightweight, mobile-first WordPress theme designed specifically for the Saanie Platform. Optimized for Elementor Pro and Crocoblock. Uses Dark Navy and Bright Orange/Yellow aesthetics with Arabic-first typography.
Author: Antigravity AI
Author URI: https://saanie.com/
Version: 1.0.0
*/

/* --------------------------------------------------------------------------
 * 1. CSS Variables (The Saanie Design System)
 * -------------------------------------------------------------------------- */
:root {
    /* Main Colors */
    --saanie-navy: #0B1D3A;        /* Dark Navy - Trust, Professionalism */
    --saanie-navy-light: #152B52;  /* Lighter Navy for cards/hovers */
    --saanie-accent: #FF9900;      /* Bright Orange - CTAs, Actions */
    --saanie-accent-hover: #E68A00;
    --saanie-yellow: #FFC107;      /* Bright Yellow - Highlights, Ratings */
    
    /* Neutral Colors / Backgrounds */
    --saanie-bg: #F8F9FA;          /* Light Off-White for main background */
    --saanie-white: #FFFFFF;
    --saanie-text-main: #333333;
    --saanie-text-muted: #777777;
    
    /* UI Settings */
    --saanie-radius: 12px;         /* Standard rounded corners for modern feel */
    --saanie-radius-large: 24px;
    --saanie-shadow: 0 4px 12px rgba(11, 29, 58, 0.08);
    --saanie-transition: all 0.3s ease;
    
    /* Typography */
    --saanie-font: 'Cairo', sans-serif;
}

/* --------------------------------------------------------------------------
 * 2. Global Resets & Base Styles
 * -------------------------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--saanie-font);
    background-color: var(--saanie-bg);
    color: var(--saanie-text-main);
    direction: rtl; /* Arabic Right-to-Left by default */
}

/* --------------------------------------------------------------------------
 * 3. Typography
 * -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--saanie-navy);
    font-weight: 700;
    margin-bottom: 0.5em;
}

a {
    color: var(--saanie-accent);
    text-decoration: none;
    transition: var(--saanie-transition);
}

a:hover {
    color: var(--saanie-accent-hover);
}

/* --------------------------------------------------------------------------
 * 4. Custom Utility Classes for Elementor / JetEngine
 * -------------------------------------------------------------------------- */
/* Buttons */
.saanie-btn-primary {
    background-color: var(--saanie-accent);
    color: var(--saanie-white) !important;
    border-radius: var(--saanie-radius);
    padding: 12px 24px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--saanie-transition);
    display: inline-block;
    text-align: center;
}

.saanie-btn-primary:hover {
    background-color: var(--saanie-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
}

/* Cards (Listing Grids) */
.saanie-card {
    background: var(--saanie-white);
    border-radius: var(--saanie-radius);
    box-shadow: var(--saanie-shadow);
    padding: 20px;
    transition: var(--saanie-transition);
}

.saanie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(11, 29, 58, 0.12);
}

/* Badges / Status */
.saanie-badge-verified {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.saanie-rating-star {
    color: var(--saanie-yellow);
}

/* --------------------------------------------------------------------------
 * 5. Dashboard Sidebar UI (Native App Feel)
 * -------------------------------------------------------------------------- */
.saanie-dashboard-sidebar {
    background-color: var(--saanie-navy);
    color: var(--saanie-white);
    border-radius: 0 0 var(--saanie-radius-large) 0;
}

.saanie-dashboard-sidebar a {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.saanie-dashboard-sidebar a:hover,
.saanie-dashboard-sidebar a.active {
    background-color: var(--saanie-navy-light);
    color: var(--saanie-accent);
    border-right: 4px solid var(--saanie-accent);
}
:root {
    --saanie-navy: #0B1D3A;
    --saanie-navy-light: #152B52;
    --saanie-orange: #FF9900;
    --saanie-orange-hover: #E68A00;
    --saanie-orange-light: #FFE8CC;
    --saanie-yellow: #FFC107;
    --saanie-yellow-light: #FFF4D2;
    --bg-color: #F4F7F6;
    --white: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --border-color: #E2E8F0;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(11, 29, 58, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.text-navy { color: var(--saanie-navy); }
.text-orange { color: var(--saanie-orange); }
.text-yellow { color: var(--saanie-yellow); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.bg-navy { background-color: var(--saanie-navy); }
.bg-navy-light { background-color: var(--saanie-navy-light); }
.bg-orange-light { background-color: var(--saanie-orange-light); }
.bg-yellow-light { background-color: var(--saanie-yellow-light); }
.bg-white { background-color: var(--white); }
.shadow { box-shadow: var(--shadow); }
.mt-2 { margin-top: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-4 { padding: 1.5rem; }

/* Container & Grids */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.grid { display: grid; gap: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-radius-large { border-radius: 24px; }
.pb-3 { padding-bottom: 1rem; }

/* Buttons */
button { font-family: 'Cairo', sans-serif; cursor: pointer; border: none; outline: none; transition: var(--transition); border-radius: 8px; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, var(--saanie-orange), #FF7B00); color: white; padding: 10px 20px; }
.btn-primary:hover { box-shadow: 0 8px 15px rgba(255, 153, 0, 0.3); transform: translateY(-2px); }
.btn-secondary { background: var(--saanie-navy); color: white; padding: 10px 20px; }
.btn-secondary:hover { background: var(--saanie-navy-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--border-color); color: var(--text-main); padding: 8px 20px; }
.btn-outline:hover { border-color: var(--saanie-navy); color: var(--saanie-navy); }
.large-btn { padding: 14px 30px; font-size: 1.1rem; border-radius: 12px; }
.small-btn { padding: 8px 16px; font-size: 0.9rem; }

/* Header & Glassmorphism */
.saanie-header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: var(--transition); border-bottom: 1px solid rgba(0,0,0,0.05); }
.glassmorphism {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { color: var(--saanie-navy); font-weight: 800; font-size: 1.8rem; }
.logo .dot { color: var(--saanie-orange); }
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a { font-weight: 600; color: var(--saanie-navy); opacity: 0.8; transition: var(--transition); }
.desktop-nav a:hover, .desktop-nav a.active { opacity: 1; color: var(--saanie-orange); }
.header-actions { display: flex; gap: 10px; }

/* Dropdown styling */
.dropdown-content { display: none; position: absolute; background-color: white; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1001; border-radius: 8px; overflow: hidden; top: 100%; right: 0; }
.dropdown-content a { color: var(--saanie-navy); padding: 12px 16px; text-decoration: none; display: block; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.dropdown-content a:hover { background-color: var(--saanie-navy-light); color: white; }
.dropdown:hover .dropdown-content { display: block; }

/* Main App Wrapper */
#app-content { padding-top: 80px; }
.hidden { display: none !important; }

/* Hero Section */
.hero-section {
    position: relative; overflow: hidden;
    padding: 80px 0 100px;
    background: var(--bg-color);
}
.hero-content { position: relative; z-index: 10; max-width: 600px; }
.badge { display: inline-block; background: var(--saanie-orange-light); color: var(--saanie-orange); padding: 5px 15px; border-radius: 20px; font-weight: 700; margin-bottom: 20px; font-size: 0.9rem; }
.hero-title { font-size: 3.5rem; color: var(--saanie-navy); line-height: 1.2; margin-bottom: 20px; }
.hero-title .highlight { color: var(--saanie-orange); }
.hero-description { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; }
.stats { display: flex; gap: 30px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; }
.stat .number { font-size: 2rem; font-weight: 800; color: var(--saanie-navy); }
.stat span:last-child { color: var(--text-muted); font-size: 0.9rem; }

/* Decorations */
.hero-decorations { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; }
.shape-1 { width: 400px; height: 400px; background: var(--saanie-navy-light); top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--saanie-orange); bottom: -50px; left: 40%; }

/* Services Grid */
.services-section { padding: 60px 20px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h3 { font-size: 2.2rem; color: var(--saanie-navy); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border-color); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(11, 29, 58, 0.12); }
.card-image { height: 180px; }
.card-content { padding: 20px; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; }
.card-title { font-size: 1.3rem; margin-bottom: 15px; }
.provider-info { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.provider-name { font-weight: 700; display: block; }
.verified { color: #28a745; margin-right: 5px; }
.rating { font-size: 0.9rem; font-weight: 700; color: var(--saanie-navy); margin-top: 3px; }
.rating i { color: var(--saanie-yellow); }
.rating-count { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 800; color: var(--saanie-navy); font-size: 1.1rem; }

/* Dashboard Layout */
.dashboard-layout { display: flex; min-height: calc(100vh - 80px); background: #F8FAFC; }
.dashboard-sidebar { width: 280px; background: var(--saanie-navy); color: white; padding: 30px 0; display: flex; flex-direction: column; }
.provider-profile-summary { text-align: center; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.large-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--saanie-orange); }
.subscription-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 700; margin-top: 10px; }
.subscription-badge.silver { background: #E0E0E0; color: #333; }
.sidebar-nav { flex-grow: 1; }
.sidebar-nav a { display: flex; align-items: center; padding: 15px 25px; color: rgba(255,255,255,0.7); font-weight: 600; transition: var(--transition); border-right: 4px solid transparent; }
.sidebar-nav a i { width: 25px; margin-left: 10px; font-size: 1.1rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.05); color: var(--saanie-orange); border-right-color: var(--saanie-orange); }
.nav-badge { background: var(--saanie-orange); color: white; border-radius: 10px; padding: 2px 8px; font-size: 0.75rem; margin-right: auto; }

.dashboard-content { flex-grow: 1; padding: 40px; max-width: 1200px; margin: 0 auto; width: 100%; }
.stats-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.stat-card { border-radius: var(--radius); padding: 25px; display: flex; align-items: center; gap: 20px; }
.gradient-navy { background: linear-gradient(135deg, var(--saanie-navy), var(--saanie-navy-light)); color: white; }
.stat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; justify-content: center; align-items: center; font-size: 24px; }
.gradient-navy .stat-icon { background: rgba(255,255,255,0.1); color: var(--saanie-orange); }
.stat-info span { font-size: 0.9rem; opacity: 0.9; font-weight: 600; }
.stat-info h3 { font-size: 1.8rem; margin-top: 5px; }

.dashboard-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: white; border-radius: var(--radius); }
.appointment-item { display: flex; gap: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 15px; }
.appointment-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.appt-time { width: 70px; height: 75px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.2; }
.appt-time .day { font-size: 1.8rem; font-weight: 800; color: var(--saanie-orange); }
.appt-time .month { font-size: 0.9rem; }
.appt-details h4 { margin-bottom: 5px; }
.appt-details p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; }
.appt-actions { margin-right: auto; display: flex; align-items: center; }

.task-list li { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.task-list li:last-child { border-bottom: none; }
.badge-status { font-size: 0.75rem; padding: 3px 8px; border-radius: 20px; font-weight: 700; margin-right: 10px; }
.badge-status.open { background: #d4edda; color: #155724; }
.task-list h4 { font-size: 1.1rem; margin-bottom: 5px; display: flex; align-items: center; }

/* Mobile Enhancements */
.mobile-bottom-nav { display: none; }
@media (max-width: 992px) {
    .dashboard-layout { flex-direction: column; }
    .dashboard-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 15px; align-items: center; }
    .provider-profile-summary { display: none; }
    .sidebar-nav { display: flex; }
    .sidebar-nav a { border-right: none; border-bottom: 3px solid transparent; padding: 10px 15px; }
    .sidebar-nav a:hover, .sidebar-nav a.active { border-right: none; border-bottom-color: var(--saanie-orange); }
}

@media (max-width: 768px) {
    .header-actions { display: none; }
    .desktop-nav { display: none; }
    .hero-title { font-size: 2.5rem; }
    .dashboard-split { grid-template-columns: 1fr; }
    body { padding-bottom: 70px; } /* Space for bottom nav */
    .mobile-bottom-nav {
        display: flex; justify-content: space-around; align-items: center;
        position: fixed; bottom: 0; left: 0; width: 100%;
        background: white; padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 1000;
    }
    .mobile-bottom-nav a {
        display: flex; flex-direction: column; align-items: center;
        color: var(--text-muted); font-size: 0.7rem; font-weight: 700; gap: 5px;
    }
    .mobile-bottom-nav a.active { color: var(--saanie-orange); }
    .mobile-bottom-nav a i { font-size: 1.2rem; }
}

/* Animations */
.fade-up { animation: fadeUp 0.6s ease forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
