/**
 * Mafrosha Theme - Main Styles
 */

/* ═══ Variables ═══ */
:root {
    --mfr-purple: #7c3aed;
    --mfr-purple-dark: #5b21b6;
    --mfr-purple-light: #ede9fe;
    --mfr-pink: #ec4899;
    --mfr-pink-light: #fce7f3;
    --mfr-yellow: #fbbf24;
    --mfr-text: #1f2937;
    --mfr-text-light: #6b7280;
    --mfr-border: #e5e7eb;
    --mfr-bg: #ffffff;
    --mfr-bg-soft: #fafafa;
    --mfr-gradient: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --mfr-radius: 16px;
    --mfr-radius-sm: 8px;
    --mfr-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --mfr-shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --mfr-font: 'Tajawal', 'Cairo', sans-serif;
}

/* ═══ Reset & Base ═══ */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--mfr-font);
    line-height: 1.7;
    color: var(--mfr-text);
    background: var(--mfr-bg);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--mfr-purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--mfr-pink); }

img, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px;
    color: var(--mfr-text);
    line-height: 1.3;
    font-weight: 700;
}

p { margin: 0 0 15px; }

/* ═══ Container ═══ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ═══ Buttons ═══ */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--mfr-gradient);
    color: #fff !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
    color: #fff !important;
}

.btn-secondary {
    background: var(--mfr-bg);
    color: var(--mfr-purple) !important;
    border-color: var(--mfr-purple);
}

.btn-secondary:hover {
    background: var(--mfr-purple);
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    color: var(--mfr-text) !important;
    border-color: var(--mfr-border);
}

.btn-outline:hover {
    border-color: var(--mfr-purple);
    color: var(--mfr-purple) !important;
}

/* ═══ Site Content ═══ */
.site-content {
    padding: 60px 20px;
    min-height: 60vh;
}

/* ═══ Page Header Banner ═══ */
.page-header-banner {
    background: var(--mfr-gradient);
    padding: 80px 20px 60px;
    text-align: center;
    color: #fff;
}

.page-header-banner .page-title {
    font-size: clamp(28px, 5vw, 48px);
    color: #fff;
    margin: 0 0 15px;
}

/* ═══ Breadcrumbs ═══ */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.page-header-banner .breadcrumbs {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.breadcrumbs .current {
    font-weight: 700;
}

/* ═══ Pagination ═══ */
.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--mfr-border);
    color: var(--mfr-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--mfr-gradient);
    color: #fff;
    border-color: transparent;
}

/* ═══ Section Heading ═══ */
.section-heading {
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--mfr-text);
    border-bottom: 3px solid var(--mfr-purple-light);
    padding-bottom: 12px;
}

/* ═══ Skip Link ═══ */
.skip-link {
    position: absolute;
    top: -100px;
    background: var(--mfr-purple);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    z-index: 99999;
}

.skip-link:focus {
    top: 0;
}

/* ═══ Alerts ═══ */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-right: 4px solid;
}

.alert.success {
    background: #d1fae5;
    color: #064e3b;
    border-color: #10b981;
}

.alert.error {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #ef4444;
}

.alert.warning {
    background: #fef3c7;
    color: #78350f;
    border-color: #f59e0b;
}

.alert.info {
    background: #dbeafe;
    color: #1e3a8a;
    border-color: #3b82f6;
}

/* ═══ Floating WhatsApp ═══ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s;
    animation: floatPulse 2s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff !important;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(37, 211, 102, 0.7); }
}

/* ═══ Scroll to Top ═══ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 100px;
    width: 50px;
    height: 50px;
    background: var(--mfr-purple);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--mfr-shadow);
    z-index: 9998;
    transition: all 0.3s;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background: var(--mfr-pink);
    transform: translateY(-5px);
}

/* ═══ Lang Switcher ═══ */
.lang-switcher.manual {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.lang-link {
    color: inherit;
    text-decoration: none;
}

.lang-link.active {
    font-weight: 700;
}

.lang-switcher .separator {
    opacity: 0.5;
}

/* ═══ Mobile Responsive ═══ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-to-top {
        bottom: 20px;
        left: 80px;
        width: 40px;
        height: 40px;
    }
}
