/* Reset وتنسيقات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #F5F5F5;
    color: #333333;
}

/* الشريط العلوي */
header {
    background-color: #2E4053;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: #E74C3C;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #E74C3C;
}

.auth-buttons a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.auth-buttons a:first-child {
    border: 1px solid white;
}

.auth-buttons a:last-child {
    background-color: #E74C3C;
}

.auth-buttons a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* قسم الهيرو */
.hero {
    background: linear-gradient(rgba(46, 64, 83, 0.8), rgba(46, 64, 83, 0.8)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-bar button {
    background-color: #E74C3C;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #C0392B;
}

/* قسم المزادات الحية */
.live-auctions {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #2E4053;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #E74C3C;
}

.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.auction-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.auction-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.auction-card:hover .auction-image img {
    transform: scale(1.05);
}

.auction-timer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #E74C3C;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.auction-details {
    padding: 20px;
}

.auction-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2E4053;
}

.auction-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auction-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.current-bid {
    font-size: 16px;
}

.current-bid span {
    font-size: 20px;
    font-weight: bold;
    color: #E74C3C;
}

.bids-count {
    font-size: 14px;
    color: #666;
}

.bid-button {
    background-color: #2980B9;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bid-button:hover {
    background-color: #2472A4;
}

/* قسم البائعين المميزين */
.featured-sellers {
    padding: 50px 0;
    background-color: #FFFFFF;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.seller-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.seller-card:hover {
    transform: translateY(-5px);
}

.seller-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #2E4053;
}

.seller-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2E4053;
}

.seller-rating {
    color: #F39C12;
    margin-bottom: 10px;
}

.seller-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

/* قسم كيف تعمل المنصة */
.how-it-works {
    padding: 50px 0;
    background-color: #F5F5F5;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 30px;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #2E4053;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2E4053;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* الفوتر */
footer {
    background-color: #2E4053;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #E74C3C;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #DDD;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #E74C3C;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #E74C3C;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAA;
    font-size: 14px;
}

/* زر الانتقال لأعلى */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #E74C3C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #C0392B;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-buttons {
        margin-top: 15px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 40px;
    }
}

/* Global compact responsive layer */
:root {
    --global-brand: #d83a2e;
    --global-ink: #1f2937;
    --global-line: #e5e7eb;
}

html {
    font-size: 14.5px;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    line-height: 1.55;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

.container {
    width: min(94%, 1080px);
}

main {
    min-width: 0;
}

section {
    max-width: 100%;
}

.content-section,
.auction-form-container,
.form-wrapper,
.card,
.auction-card,
.product-card,
.category-card,
.result-card,
.slide-card {
    border-radius: 8px !important;
}

.content-section,
.auction-form-container,
.form-wrapper {
    padding: clamp(1rem, 2.4vw, 1.5rem) !important;
}

h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.35rem);
}

h2 {
    font-size: clamp(1.25rem, 3.4vw, 1.8rem);
}

h3 {
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
}

p {
    overflow-wrap: anywhere;
}

input,
select,
textarea,
button,
.btn,
.action-btn {
    font-size: .92rem !important;
}

input,
select,
textarea {
    max-width: 100%;
}

table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-collapse: collapse;
}

thead,
tbody,
tr {
    width: 100%;
}

.dashboard {
    max-width: 100vw;
    overflow-x: hidden;
}

.main-content {
    min-width: 0;
}

.header {
    gap: .75rem;
    flex-wrap: wrap;
}

.products-grid,
.categories-grid,
.results-grid,
.slides-grid,
.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
    gap: clamp(.75rem, 2vw, 1rem) !important;
}

.auctions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 280px)) !important;
    justify-content: center !important;
    gap: clamp(.75rem, 2vw, 1rem) !important;
}

.auctions-grid .auction-card {
    width: 100% !important;
    max-width: 280px !important;
}

.auction-image,
.product-image {
    height: auto !important;
    aspect-ratio: 4 / 3;
}

.auction-details,
.product-details,
.result-body {
    padding: .85rem !important;
}

.hero-slider {
    min-height: 380px !important;
    height: min(64vh, 520px) !important;
}

.hero-content h1 {
    font-size: clamp(1.9rem, 6vw, 3.6rem) !important;
}

.hero-content p {
    font-size: 1rem !important;
}

.auth-page {
    min-height: calc(100vh - 52px) !important;
}

.auth-form-panel,
.auth-showcase {
    padding: clamp(.85rem, 2vw, 1.25rem) !important;
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

    .dashboard {
        display: block !important;
    }

    .sidebar {
        position: relative !important;
        width: 100% !important;
        min-height: auto !important;
    }

    .sidebar-menu,
    .menu-items {
        display: flex;
        gap: .45rem;
        overflow-x: auto;
        padding-bottom: .35rem;
    }

    .sidebar .menu-item {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .main-content {
        margin: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
    }

    .auth-page {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(95%, 100%);
    }

    .hero-slider {
        min-height: 360px !important;
        height: 58vh !important;
    }

    .section-top,
    .section-header,
    .form-actions,
    .header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .form-row,
    .form-grid,
    .auction-filters,
    .duration-options,
    .user-type-selector,
    .social-login,
    .mini-grid {
        grid-template-columns: 1fr !important;
    }

    .auction-tabs {
        width: 100% !important;
    }

    .auctions-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)) !important;
    }

    .auctions-grid .auction-card {
        max-width: none !important;
    }

    .auction-tab {
        min-height: 50px !important;
        font-size: .95rem !important;
        padding: .7rem !important;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .submit-btn,
    .cancel-btn,
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13.5px;
    }

    .content-section,
    .auction-form-container,
    .form-wrapper {
        padding: .85rem !important;
    }

    .hero-slider {
        min-height: 330px !important;
    }

    .hero-content {
        padding-inline: 1rem !important;
    }

    .auction-card,
    .product-card,
    .result-card {
        box-shadow: 0 6px 16px rgba(15, 23, 42, .07) !important;
    }
}






