/**
 * Kids Marketplace - Frontend Styles
 * Production Ready - Modern, Clean, Responsive
 */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #FF6B6B;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #06B6D4;
    --dark: #1F2937;
    --light: #F8FAFC;
    --gray: #64748B;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: var(--dark);
    line-height: 1.6;
    direction: rtl;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== SECTIONS ===== */
.section-padding { padding: 60px 0; }
.section-title { font-weight: 800; font-size: 1.8rem; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1rem; }

/* ===== TOP BAR ===== */
.top-bar { font-size: 0.85rem; }

/* ===== NAVBAR ===== */
.navbar { padding: 0.75rem 0; }
.navbar-brand { font-size: 1.5rem; }
.brand-text { font-weight: 800; color: var(--primary); }
.search-form { max-width: 450px; width: 100%; }
.search-form .form-control { border-radius: 0 var(--border-radius) var(--border-radius) 0; }
.search-form .btn { border-radius: var(--border-radius) 0 0 var(--border-radius); }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; }
.slider-item { height: 500px; position: relative; display: flex; align-items: center; }
.slider-overlay { position: absolute; inset: 0; }
.slider-subtitle { font-size: 1.2rem; opacity: 0.9; }
.slider-title { font-size: 2.8rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }

/* ===== CATEGORY CARDS ===== */
.category-card .card { border-radius: var(--border-radius); transition: var(--transition); }
.category-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg) !important; }

/* ===== PRODUCT CARDS ===== */
.product-card { border-radius: var(--border-radius); overflow: hidden; transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg) !important; }
.product-image-wrapper { position: relative; overflow: hidden; }
.product-image-wrapper img { transition: var(--transition); }
.product-card:hover .product-image-wrapper img { transform: scale(1.05); }
.btn-wishlist { opacity: 0; transform: translateY(10px); transition: var(--transition); }
.product-card:hover .btn-wishlist { opacity: 1; transform: translateY(0); }
.product-title { font-size: 0.9rem; line-height: 1.4; }
.product-title a:hover { color: var(--primary) !important; }

/* ===== BRAND CARDS ===== */
.brand-hover { transition: var(--transition); border-radius: var(--border-radius); }
.brand-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }

/* ===== VENDOR CARDS ===== */
.vendor-hover { transition: var(--transition); border-radius: var(--border-radius); }
.vendor-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }

/* ===== REVIEW CARDS ===== */
.review-card { border-radius: var(--border-radius); }

/* ===== BLOG CARDS ===== */
.blog-card { transition: var(--transition); border-radius: var(--border-radius); overflow: hidden; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg) !important; }

/* ===== AUTH SECTION ===== */
.auth-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); padding: 40px 20px; }
.auth-container { width: 100%; max-width: 450px; }
.auth-card { background: #fff; border-radius: var(--border-radius); padding: 40px; box-shadow: var(--shadow-lg); }
.auth-logo { color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
.color-option input:checked + .color-swatch { box-shadow: 0 0 0 3px var(--primary); }
.size-option input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== FOOTER ===== */
footer { border-radius: 0; }
.footer-links a:hover { color: var(--primary) !important; padding-right: 5px; }

/* ===== FLASH MESSAGES ===== */
.alert { border-radius: var(--border-radius); }

/* ===== PAGINATION ===== */
.pagination .page-link { border-radius: 8px; margin: 0 2px; border: none; background: var(--light); color: var(--dark); }
.pagination .page-item.active .page-link { background: var(--primary); }

/* ===== BADGES ===== */
.badge { font-weight: 500; padding: 0.4em 0.8em; }

/* ===== STAR RATING ===== */
.star-rating { color: #ffc107; }

/* ===== BUTTONS ===== */
.btn { border-radius: 8px; font-weight: 600; padding: 0.6rem 1.5rem; transition: var(--transition); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ===== FORMS ===== */
.form-control, .form-select { border-radius: 8px; border: 1px solid #e2e8f0; padding: 0.6rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

/* ===== TABLES ===== */
.table th { font-weight: 600; border-bottom: 2px solid #e2e8f0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .slider-item { height: 350px; }
    .slider-title { font-size: 1.8rem; }
    .search-form { max-width: 100%; margin: 10px 0; }
    .section-padding { padding: 40px 0; }
}

@media (max-width: 576px) {
    .slider-item { height: 280px; }
    .slider-title { font-size: 1.4rem; }
    .auth-card { padding: 25px; }
    .section-title { font-size: 1.4rem; }
}
