﻿/* ═══════════════════════════════════════════════════
   home_style.css  –  Global Styles for QR Barbers
   Applies to ALL pages via _Layout_Public.cshtml
═══════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --gold: #C9A84C;
    --gold-light: #E8C96A;
    --gold-dim: rgba(201,168,76,.18);
    --dark: #0C0E1A;
    --dark2: #13162A;
    --dark3: #1A1E35;
    --dark4: #22274A;
    --text: #F0EDE6;
    --text-muted: rgba(240,237,230,.6);
    --text-dim: rgba(240,237,230,.38);
    --accent: #4169e1;
    --accent2: #90acff;
    --accent-dim: rgba(65,105,225,.36);
    --success: #34d399;
    --danger: #f87171;
    --card-bg: #1A1E35;
    --border: #22274A;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    direction: rtl;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    direction: rtl;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--dark2);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ── Typography ── */
h1 {
    font-weight: 900;
    line-height: 1.25;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 600;
}

p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

a {
    transition: color .2s;
}

/* ── Utilities ── */
.text-gold {
    color: var(--gold) !important;
}

.gold {
    color: var(--gold);
}

.gl {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-dim);
    border: 1px solid rgba(201,168,76,.35);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ── Buttons ── */
.btn-primary-qr {
    background: var(--gold);
    color: var(--dark);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1;
}

    .btn-primary-qr:hover {
        background: var(--gold-light);
        color: var(--dark);
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(201,168,76,.35);
    }

.btn-ghost-qr {
    background: transparent;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 30px;
    border: 1.5px solid rgba(255,255,255,.2);
    cursor: pointer;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1;
}

    .btn-ghost-qr:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

/* Legacy compatibility */
.btn-gold {
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    color: var(--dark);
    border: none;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    display: inline-block;
}

    .btn-gold:hover {
        filter: brightness(1.1);
        color: var(--dark);
    }

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    padding: 10px 24px;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    display: inline-block;
}

    .btn-outline-gold:hover {
        background: var(--gold);
        color: var(--dark);
    }

/* ══ NAV ══ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(12,14,26,.85);
    border-bottom: 1px solid rgba(201,168,76,.12);
    transition: all .3s
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px
}

.nav-logo {
    height: 100%;
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -.5px
}

    .nav-logo span {
        color: var(--text);
        font-weight: 300
    }

.nav-image {
    height: 85%;
    margin: 5px 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 600;
        transition: color .2s
    }

        .nav-links a:hover {
            color: var(--gold)
        }

.nav-cta {
    background: var(--gold);
    color: var(--dark);
    font-size: 11px;
    font-weight: 900;
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Cairo',sans-serif
}

    .nav-cta:hover {
        background: var(--gold-light);
        transform: scale(1.04)
    }

.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px
}

    .nav-mobile-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all .3s
    }


/* ── Form Controls ── */
.form-control {
    background: var(--dark3);
    border: 1px solid rgba(201,168,76,.2);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Cairo', sans-serif;
}

    .form-control:focus {
        background: var(--dark4);
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(201,168,76,.15);
        color: var(--text);
    }

    .form-control::placeholder {
        color: var(--text-dim);
        opacity: 1;
    }

/* ── Select2 ── */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--gold-dim);
    color: var(--text);
}

.select2-dropdown {
    background: var(--dark3);
    color: var(--text);
    border: 1px solid rgba(201,168,76,.2);
}

/* ── Toastr Overrides ── */
#toast-container .toast {
    border-radius: 12px !important;
}

/* ── Toast (custom) ── */
.pref-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #064e3b;
    color: var(--success);
    padding: .75rem 1.5rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

    .pref-toast.show {
        transform: translateX(-50%) translateY(0);
    }

    .pref-toast.error {
        background: #450a0a;
        color: var(--danger);
    }

/* ── Loader ── */
.loader {
    margin-top: 20px;
    width: 40px;
    height: 40px;
    border: 4px solid var(--dark3);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(19,22,42,.97);
    border-top: 1px solid rgba(201,168,76,.25);
    padding: 2px 24px;
    z-index: 9998;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 30px rgba(0,0,0,.6);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 180px;
}

    .cookie-text strong {
        font-size: 12px;
        font-weight: 700;
        color: var(--gold);
        display: block;
        margin-bottom: 4px;
    }

    .cookie-text p {
        font-size: 10px;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.5;
    }

.cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all .2s;
}

    .cookie-btn-accept:hover {
        background: var(--gold-light);
        transform: translateY(-1px);
    }

.cookie-btn-learn {
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}

    .cookie-btn-learn:hover {
        color: var(--gold);
    }

/* ── Img ── */
.img-fluid {
    max-width: 100%;
    height: auto;
}


/* ══ FOOTER ══ */
footer {
    background: var(--dark2);
    border-top: 1px solid rgba(201,168,76,.12);
    padding: 60px 0 30px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px
}

.footer-contact {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px
}

    .footer-contact a {
        color: var(--gold);
        text-decoration: none
    }

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px
}

.footer-links {
    list-style: none
}

    .footer-links li {
        margin-bottom: 10px
    }

    .footer-links a {
        text-decoration: none;
        font-size: 13px;
        color: var(--text-muted);
        transition: color .2s
    }

        .footer-links a:hover {
            color: var(--gold)
        }

.footer-hours {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.9
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim)
}

.footer-tagline {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold)
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.08);
    color: #d4af37;
    text-decoration: none;
    font-size: 1.1rem;
    margin-right: 6px;
    transition: transform .15s ease, background .15s ease;
}
    .social-link:hover {
        transform: translateY(-3px);
        background: rgba(212, 175, 55, 0.18);
        color: #fff;
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar {
        background: rgba(12,14,26,.92);
    }

    .cookie-banner-inner {
        gap: 12px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Mobile */
@media(max-width: 480px) {
    .chat-box {
        width: 90vw;
    }
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes pulse {
    0%,100% {
        box-shadow: 0 8px 24px rgba(201,168,76,.45)
    }

    50% {
        box-shadow: 0 8px 40px rgba(201,168,76,.7)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes countUp {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ══ RESPONSIVE ══ */
@media(max-width:900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .hero-card {
        max-width: 460px;
        margin: 0 auto
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .stat-card:nth-child(2)::after {
        display: none
    }

    .about-inner {
        grid-template-columns: 1fr
    }

    .features-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .training-inner {
        grid-template-columns: 1fr
    }

    .jobs-grid {
        grid-template-columns: 1fr
    }

    .prizes-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .faq-grid {
        grid-template-columns: 1fr
    }

    .salons-row {
        grid-template-columns: repeat(2,1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .nav-links {
        display: none
    }

    .nav-mobile-btn {
        display: flex
    }
}

@media(max-width:600px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .features-grid {
        grid-template-columns: 1fr
    }

    .prizes-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .salons-row {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center
    }

    .hero-stats {
        gap: 20px
    }

    .challenge-box {
        flex-direction: column;
        text-align: center
    }

    .comp-box {
        flex-direction: column;
        text-align: center
    }

    .cta-qr {
        flex-direction: column;
        text-align: center
    }
}