/* تنسيقات الهوية البصرية والخط الموحد للموقع العام */

@import url('https://fonts.googleapis.com/css2?family=Cairo+Play:wght@200..1000&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo Play', sans-serif;
}

body {
    background-color: #f5f6fa;
    color: #2c3e50;
    direction: rtl;
}

.site-wrapper {
    max-width: 1200 bounds;
    margin: 20px auto;
    padding: 0 15px;
    min-height: 70vh;
}

/* الهيدر العلوي */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2980b9;
    text-decoration: none;
}

.nav-menu a {
    margin-right: 15px;
    color: #34495e;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2980b9;
}

/* شريط الإعلانات الإدارية (XenForo Style) */
.xen-notice {
    max-width: 1200px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-right: 5px solid;
}

.notice-info {
    background-color: #edf2f7;
    border-color: #3182ce;
    color: #2b6cb0;
}

.notice-warning {
    background-color: #fffaf0;
    border-color: #dd6b20;
    color: #dd6b20;
}

.notice-danger {
    background-color: #fff5f5;
    border-color: #e53e3e;
    color: #c53030;
}

.notice-success {
    background-color: #f0fff4;
    border-color: #38a169;
    color: #276749;
}

/* الفوتر */
.main-footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
}
/* تنسيق صندوق تسجيل الدخول */
.login-box {
    max-width: 450px;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f8f9fa;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #2980b9;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #2471a3;
}

.alert-danger {
    background-color: #fde8e8;
    color: #e53e3e;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-right: 4px solid #e53e3e;
}

.login-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.login-links a {
    color: #2980b9;
    text-decoration: none;
}

/* تنسيق القائمة الجانبية للموقع العام */
.main-sidebar {
    width: 280px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 16px;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.sidebar-menu-list {
    list-style: none;
}

.sidebar-menu-list li {
    margin-bottom: 12px;
}

.sidebar-menu-list a {
    text-decoration: none;
    color: #57606f;
    font-size: 15px;
    display: block;
    transition: padding 0.2s, color 0.2s;
}

.sidebar-menu-list a:hover {
    color: #2980b9;
    padding-right: 5px;
}

.quick-stats p {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 8px;
}
.alert-success {
    background-color: #f0fff4;
    color: #276749;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-right: 4px solid #38a169;
    text-align: center;
}

.btn-reset {
    background-color: #27ae60;
}

.btn-reset:hover {
    background-color: #219653;
}

.forgot-box p {
    line-height: 1.6;
}
/* تنسيقات الـ Grid والمربعات التكرارية */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-grid-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #edf2f7;
}

.product-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* توهج خاص ومميز لخانات المزاد VIP أسفل الهيدر */
.vip-card-glow {
    border: 2px solid #f1c40f;
    box-shadow: 0 2px 10px rgba(241, 196, 15, 0.15);
}

.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* التنسيق البصري للأوسمة الملونة */
.visual-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-standard { background-color: #34495e; }
.badge-auction { background-color: #27ae60; }
.badge-ending-soon { background-color: #e74c3c; animation: blinker 1s linear infinite; }
.badge-closed { background-color: #7f8c8d; }

@keyframes blinker {
    50% { opacity: 0.6; }
}

.card-info-content {
    padding: 15px;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location-meta {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 12px;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f2f6;
    padding-top: 10px;
}

.price-label {
    font-size: 12px;
    color: #7f8c8d;
}

.price-amount {
    font-size: 16px;
    font-weight: bold;
    color: #27ae60;
}
