/* index.css - التنسيق والتصميم الجمالي لموقع زفافي (Zifafy) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #d4af37; /* Rose Gold / Elegant Gold */
    --secondary-color: #e25c80; /* Rose Pink */
    --accent-dark: #2c1e21; /* Slate Black with Rose Tint */
    --accent-light: #fbf9f9; /* Soft Off-White */
    --text-primary: #3c2a2e; /* Dark chocolate/brown text */
    --text-secondary: #7e696d; /* Muted text */
    --bg-card: #ffffff;
    --border-color: #ebdce0;
    --shadow-soft: 0 10px 30px rgba(226, 92, 128, 0.08);
    --shadow-hover: 0 15px 35px rgba(212, 175, 55, 0.15);
    --shadow-dark: 0 20px 40px rgba(44, 30, 33, 0.06);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* التنسيق العام */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--accent-light);
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* شريط التنقل العلوي (Header) */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links li a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li.active a {
    color: var(--secondary-color);
}

.nav-links li.active a::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* الأزرار الفاخرة */
.btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #ef7ba2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(226, 92, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 92, 128, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary-color), #e5c05c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.cart-icon-wrapper {
    position: relative;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.cart-icon-wrapper:hover {
    background: #f0e6e8;
    color: var(--secondary-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* الفوتر (Footer) */
.footer {
    background-color: var(--accent-dark);
    color: #f7eff1;
    padding: 60px 20px 20px 20px;
    border-top: 5px solid var(--primary-color);
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-col p {
    color: #cbb8bc;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #cbb8bc;
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-right: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #4a383b;
    text-align: center;
    font-size: 14px;
    color: #9e858a;
}

/* قسم البانر الرئيسي (Hero Section) */
.hero {
    background: linear-gradient(rgba(44, 30, 33, 0.65), rgba(44, 30, 33, 0.45)), url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1600&auto=format&fit=crop') no-repeat center center/cover;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 20px;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f7eff1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* الأقسام والتصنيفات (Categories Grid) */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 40px;
    color: var(--secondary-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(1.1);
}

.category-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

/* شبكة المنتجات والخدمات (Services Grid) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-img-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #f0e6e8;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(226, 92, 128, 0.3);
}

.service-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.service-category {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-dark);
    line-height: 1.4;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
    height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.service-price {
    display: flex;
    flex-direction: column;
}

.price-old {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-secondary);
}

.price-new {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-dark);
}

.price-currency {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 3px;
}

/* صفحات تفاصيل الحساب والتسجيل */
.auth-wrapper {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-dark);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
    background-color: var(--accent-light);
}

.form-control:focus {
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(226, 92, 128, 0.15);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: #fde8ec;
    color: #e25c80;
    border: 1px solid #f9d2db;
}

.alert-success {
    background-color: #e8f9ee;
    color: #27ae60;
    border: 1px solid #d2f4df;
}

/* صفحات تفاصيل الخدمات */
.details-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
}

.details-main {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.details-img-wrapper {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 25px;
}

.details-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--accent-dark);
}

.details-desc-box {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.details-desc-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.booking-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
}

.booking-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* لوحة تحكم التاجر */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
    min-height: 80vh;
}

.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

.merchant-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.merchant-profile h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 5px;
}

.merchant-profile span {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.sidebar-menu li a:hover, .sidebar-menu li.active a {
    background: var(--accent-light);
    color: var(--secondary-color);
}

.dashboard-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--accent-light);
    padding: 25px 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* الجداول */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.custom-table th {
    background-color: var(--accent-light);
    color: var(--text-primary);
    font-weight: 700;
    padding: 15px;
    border-bottom: 2px solid var(--border-color);
}

.custom-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.custom-table tr:hover {
    background-color: #fdfafb;
}

/* شارات الحالة */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-pending {
    background-color: #fef5d1;
    color: #b78912;
}

.badge-confirmed {
    background-color: #e3f8ec;
    color: #27ae60;
}

.badge-completed {
    background-color: #e1f5fe;
    color: #0288d1;
}

.badge-cancelled {
    background-color: #ffebee;
    color: #c62828;
}

/* صفحات السلة والدفع */
.cart-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 30px;
    margin-bottom: 40px;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
}

.cart-empty-icon {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
}

/* الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الاستجابة للهواتف المحمولة */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .details-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
}
