/* ========================================
   Wasata Express - Unified Stylesheet
   ======================================== */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

/* Global Styles */
* {
    font-family: 'Tajawal', sans-serif;
}

/* CSS Variables - Brand Colors (loaded from API) */
:root {
    --brand-primary: #f36f24;
    --brand-dark: #374151;
    --brand-light: #f9fafb;
    --brand-gray: #6b7280;
}

/* Body */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f9fafb;
}

/* ========================================
   Timeline Styles
   ======================================== */

.timeline-step {
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 40px;
    width: 2px;
    height: calc(100% - 40px);
    background: #e5e7eb;
    transform: translateX(-50%);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed::before {
    background: #10b981;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
}

.timeline-step.completed .timeline-icon {
    background: #10b981;
    color: white;
}

.timeline-step.active .timeline-icon {
    background: var(--brand-primary);
    color: white;
    animation: pulse 2s infinite;
}

.timeline-step.pending .timeline-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ========================================
   Custom Utilities
   ======================================== */

.brand-text {
    color: var(--brand-primary);
}

.brand-bg {
    background-color: var(--brand-primary);
}

.brand-border {
    border-color: var(--brand-primary);
}

/* Smooth Transitions */
a,
button {
    transition: all 0.2s ease-in-out;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--brand-primary);
}

/* ========================================
   Loading Spinner
   ======================================== */

.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--brand-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 768px) {
    .timeline-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ========================================
   Centralized Store Tabs Theme Styling
   ======================================== */
.store-tab {
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
}

.store-tab:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.dark .store-tab {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #e5e7eb !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.dark .store-tab:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Active Store Tab */
.store-tab.active {
    background-color: #f36f24 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(243, 111, 36, 0.25), 0 4px 6px -2px rgba(243, 111, 36, 0.05) !important;
    border-color: transparent !important;
}

/* ========================================
/* ========================================
   Extracted index.html Inline Styles
   ======================================== */
#affiliate-debug {
    display: none;
}

* {
    font-family: 'Tajawal', sans-serif;
}

body {
    scroll-behavior: smooth;
}

.gradient-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none !important;
    z-index: -1;
}

.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #f9fafb, transparent);
    pointer-events: none;
}

.dark .hero-fade-bottom {
    background: linear-gradient(to top, #1b120c, transparent);
}

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

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Responsive Hero Background Styling
   ======================================== */
.gradient-hero {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

.dark .gradient-hero {
    background: linear-gradient(135deg, #1b120c 0%, #1e1510 100%) !important;
}

/* ========================================
   Background Textures & Glowing Blobs
   ======================================== */
.bg-grid-pattern {
    background-image: radial-gradient(#e5e7eb 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.dark .bg-grid-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
}

.accent-glow-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(243, 111, 36, 0.15) 0%, rgba(243, 111, 36, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.dark .accent-glow-blob {
    background: radial-gradient(circle, rgba(243, 111, 36, 0.08) 0%, rgba(243, 111, 36, 0) 70%);
}

.section-connector {
    position: relative;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    margin-top: -30px;
    margin-bottom: -30px;
}

.section-connector svg {
    color: #f36f24;
    opacity: 0.4;
    animation: bounceSlow 3s infinite ease-in-out;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}