/* FlipADeals 2.0 — Auctions page. Readable, page-specific styling. */
:root {
    --fd-bg: #090f20;
    --fd-panel: #121e35;
    --fd-panel-light: #192740;
    --fd-border: #2a3b57;
    --fd-text: #f4f7ff;
    --fd-muted: #aab9d1;
    --fd-blue: #438dff;
}

body {
    margin: 0;
    background: var(--fd-bg);
    color: var(--fd-text);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    padding-bottom: 75px;
}

body > header {
    background: #0d172b;
    border-bottom: 1px solid var(--fd-border);
    box-shadow: 0 6px 28px #0003;
}

.auctions-intro {
    max-width: 1160px;
    margin: 25px auto 20px;
    padding: 35px 30px;
    border-radius: 20px;
    border: 1px solid #345078;
    background: radial-gradient(ellipse at 90% 10%, #214b8566, transparent 55%),
                linear-gradient(120deg, #172b4b, #101b31);
}

.intro-kicker {
    color: #86baff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.auctions-intro h2 {
    color: #ffffff;
    font-size: clamp(27px, 4vw, 43px);
    margin: 9px 0;
    line-height: 1.15;
}

.auctions-intro p {
    color: #c5d3e8;
    margin: 0;
    line-height: 1.6;
}

.search-box {
    max-width: 1160px;
    margin: 0 auto 20px;
    padding: 20px;
    background: var(--fd-panel);
    border: 1px solid var(--fd-border);
    border-radius: 16px;
    box-sizing: border-box;
}

.search-box input,
.search-box select {
    min-height: 43px;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #f4f7ff;
    background: #192740;
    border: 1px solid #405677;
    border-radius: 9px;
    font: inherit;
}

.search-box input::placeholder {
    color: #b2c0d7;
}

.search-box button {
    padding: 10px 15px;
    border: 1px solid #438dff;
    border-radius: 9px;
    background: #2c68bb;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.search-box button:hover {
    background: #438dff;
}

.free-credits-banner {
    max-width: 1120px !important;
    background: linear-gradient(110deg, #1c3760, #244c83) !important;
    border: 1px solid #4371ab;
    box-shadow: 0 4px 22px #0003 !important;
    animation: none !important;
}

.profile-container {
    max-width: 1160px;
    margin: 18px auto;
    box-sizing: border-box;
    background: var(--fd-panel);
    color: var(--fd-text);
    border: 1px solid var(--fd-border);
    border-radius: 16px;
    padding: 16px;
}

.profile-container h3 {
    color: #ffffff;
}

.profile-container a.premium-auction-link {
    background: #223452 !important;
    border-color: #506d98 !important;
    color: #f4f7ff !important;
}

.auctions-heading {
    max-width: 1160px;
    margin: 26px auto 14px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}

.auctions-heading h2 {
    color: #ffffff;
    font-size: 25px;
    margin: 5px 0 0;
}

.results-count {
    color: #b8c9e1;
    font-size: 14px;
}

.auctions-container {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.auction-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--fd-panel);
    border: 1px solid var(--fd-border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 22px #0003;
    transition: transform .2s ease, border-color .2s ease;
}

.auction-card:hover {
    transform: translateY(-3px);
    border-color: #5a8ac8;
}

.auction-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0b1528;
    overflow: hidden;
}

.auction-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auction-info {
    padding: 15px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.auction-title {
    display: block;
    color: #ffffff;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.auction-title:hover {
    color: #8bbaff;
}

.auction-price {
    color: #8fc1ff;
    font-weight: 800;
    font-size: 17px;
}

.auction-meta {
    color: #b6c6dd;
    font-size: 13px;
    line-height: 1.6;
}

.auction-seller {
    color: #dce8f8;
    font-size: 14px;
    font-weight: 700;
}

.auction-seller a {
    color: #8bbaff;
}

.auction-timer {
    display: inline-block;
    color: #ffcb8a;
    background: #3c2b28;
    border: 1px solid #745044;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 13px;
    font-weight: 800;
}

.view-auction-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 10px 12px;
    border-radius: 9px;
    background: #438dff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.view-auction-btn:hover {
    background: #2676f5;
    color: #ffffff;
}

.demo-badge {
    display: inline-block;
    padding: 6px 9px;
    background: #7f1d1d;
    color: #ffffff;
    border: 1px solid #ef4444;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
}

.pagination {
    text-align: center;
    margin: 25px 0;
}

.pagination a {
    display: inline-block;
    margin: 3px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #263b5b;
    color: #ffffff;
    text-decoration: none;
}

.pagination a.active {
    background: #438dff;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    background: #101d33;
    border-top: 1px solid #345078;
}

.bottom-nav a {
    color: #f3f7ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .auctions-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .auctions-intro,
    .search-box,
    .profile-container,
    .auctions-heading {
        margin-left: 12px;
        margin-right: 12px;
    }

    .auctions-intro {
        padding: 25px 20px;
    }

    .auctions-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 0 12px;
    }

    .auction-info {
        padding: 11px;
    }

    .auction-title {
        font-size: 15px;
    }

    .auction-price {
        font-size: 15px;
    }
}

@media (max-width: 390px) {
    .auctions-container {
        grid-template-columns: 1fr;
    }
}
