/* assets/css/style.css */

:root {
    --primary-color: #6f42c1;
    --primary-dark: #4e2b8c;
    --secondary-color: #f8f5ff;
    --text-dark: #1f1f1f;
    --text-muted: #6c757d;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #f6f8fc;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 700;
    color: #333 !important;
    margin-left: 10px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-main {
    background: linear-gradient(135deg, var(--primary-color), #8e59ff);
    border: none;
    color: #fff;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
}

.btn-soft {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-soft:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background:
        radial-gradient(circle at top right, rgba(111,66,193,0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(142,89,255,0.12), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f6f2ff 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 36px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    margin-bottom: 12px;
}

.hero-desc {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 22px;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    margin-top: 28px;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.search-panel {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-top: 35px;
}

.search-panel h5 {
    font-weight: 800;
    margin-bottom: 18px;
}

.form-control,
.form-select {
    border-radius: 14px;
    min-height: 52px;
    border: 1px solid #e1e5ee;
}

.form-control:focus,
.form-select:focus {
    border-color: #b08cff;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.12);
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.stat-item {
    background: #faf8ff;
    border: 1px solid #efe9ff;
    padding: 16px;
    border-radius: 18px;
    text-align: center;
}

.stat-item h4 {
    margin: 0;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-item p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 700;
}

.section-space {
    padding: 52px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.02rem;
}

.category-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    transition: 0.22s ease;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    border-color: rgba(13, 110, 253, 0.20);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-card h6 {
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.category-card p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    line-height: 1.7;
}

.auction-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
    height: 100%;
    width: 100%;
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.auction-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #f3f4f6;
}

.auction-body {
    padding: 14px 14px 12px;
}

.auction-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.auction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.09);
    color: #0d6efd;
    font-weight: 800;
    font-size: 12px;
    border-radius: 999px;
    padding: 6px 10px;
}

.auction-time {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 999px;
    padding: 6px 10px;
}

.auction-title {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.5;
    min-height: 52px;
}

.auction-desc {
    color: #6b7280;
    line-height: 1.75;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 68px;
}

.mini-info {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mini-info span {
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
}

.auction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.auction-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auction-price small {
    display: block;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 11px;
}

.auction-price strong {
    font-size: 18px;
    color: #111827;
    font-weight: 900;
}

.auction-meta .btn {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    height: 100%;
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-number {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 14px;
}

.feature-card h5 {
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
    font-size: 14px;
}

.cta-box {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    border-radius: 24px;
    padding: 38px 24px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.18);
}

.cta-box h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
}

.cta-box p {
    max-width: 760px;
    margin: 0 auto 22px;
    line-height: 1.9;
    opacity: 0.95;
}

.footer-custom {
    background: #111827;
    color: #fff;
    padding: 30px 0;
    margin-top: 70px;
}

.footer-custom p {
    margin: 0;
    opacity: 0.9;
}

/* create auction page */

.page-section {
    padding: 50px 0;
}

.page-heading {
    text-align: center;
    margin-bottom: 30px;
}

.page-heading h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1f2937;
}

.page-heading p {
    color: #6b7280;
    font-size: 16px;
}

.form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auction-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 14px 15px;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.form-group textarea {
    resize: vertical;
}

.input-note {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #374151;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 30px;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.logout-link {
    color: #dc2626;
}

.main-nav a.active {
    color: #2563eb;
    font-weight: 700;
}

/* ===== index.php extracted styles ===== */

.user-menu-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 18px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.user-avatar,
.user-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.user-chip-text {
    line-height: 1.2;
}

.user-chip-text small {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

.user-chip-text strong {
    color: #111827;
    font-size: 14px;
}

.account-dropdown-btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
}

.account-dropdown-menu {
    min-width: 290px;
    border: 0;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.account-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.account-box-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.account-box h6 {
    margin: 0;
    font-weight: 800;
}

.account-box p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.account-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.account-mini-stat {
    background: #fff;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.account-mini-stat strong {
    display: block;
    font-size: 15px;
    color: #111827;
    font-weight: 800;
}

.account-mini-stat span {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 11px;
}

.dropdown-link-grid {
    display: grid;
    gap: 8px;
}

.dropdown-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 11px 12px;
    color: #111827;
    font-weight: 700;
    transition: 0.2s ease;
}

.dropdown-link-item:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.dropdown-link-item small {
    color: #6b7280;
    font-weight: 600;
}

.hero-section-refined {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.11), transparent 30%),
        radial-gradient(circle at bottom left, rgba(111, 66, 193, 0.10), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    padding: 42px 0 115px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 180px));
    justify-content: center;
    gap: 14px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 16px 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
    text-align: center;
}

.hero-stat-card h4 {
    margin: 0 0 6px;
    font-weight: 900;
    color: #111827;
    font-size: 24px;
}

.hero-stat-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.search-strip-wrapper {
    margin-top: -78px;
    position: relative;
    z-index: 5;
}

.hero-search-strip {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.search-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.search-strip-head h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.search-strip-head p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.search-inline-form .form-control,
.search-inline-form .form-select {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    font-size: 14px;
}

.search-inline-form .form-control:focus,
.search-inline-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.10);
}

.search-inline-form .btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.search-results-bar {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-results-bar strong {
    color: #111827;
}

.search-results-bar span {
    color: #6b7280;
    font-size: 14px;
}

.featured-auctions-section {
    padding: 28px 0 50px;
}

.compact-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.featured-auctions-grid .col-xl-3,
.featured-auctions-grid .col-lg-4,
.featured-auctions-grid .col-md-6 {
    display: flex;
}

.auction-footer-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    flex-wrap: wrap;
}

.category-path-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 999px;
    padding: 5px 10px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-go {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #0d6efd;
}

.d-none-force {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .auction-image {
        height: 160px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 30px;
    }

    .stats-box {
        grid-template-columns: 1fr;
    }

    .user-menu-wrap {
        margin-right: 0;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .user-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .account-dropdown-menu {
        min-width: 100%;
    }

    .hero-section-refined {
        padding: 36px 0 100px;
    }

    .hero-stats-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-strip-wrapper {
        margin-top: -64px;
    }

    .search-strip-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .auction-form .form-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 20px;
    }

    .page-heading h1 {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 27px;
    }

    .section-title {
        font-size: 24px;
    }

    .auction-image {
        height: 180px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-stats-strip {
        grid-template-columns: 1fr;
    }

    .hero-search-strip {
        padding: 14px;
        border-radius: 18px;
    }

    .search-strip-wrapper {
        margin-top: -52px;
    }

    .featured-auctions-section {
        padding-top: 22px;
    }
}

@media (max-width: 575.98px) {
    .hero-section-refined {
        padding-bottom: 90px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .auction-title {
        min-height: auto;
    }

    .auction-desc {
        min-height: auto;
    }

    .auction-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .auction-meta .btn {
        width: 100%;
    }
}