/* FlipADeals 2.0 — Individual auction page (Step 3)
   Scoped styles; the existing bidding and auction logic is unchanged. */
:root {
    --av-bg: #090f20;
    --av-panel: #121e35;
    --av-panel-alt: #192740;
    --av-border: #304260;
    --av-text: #f4f7ff;
    --av-muted: #b6c5db;
    --av-blue: #438dff;
}

body {
    background: var(--av-bg);
    color: var(--av-text);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body > header {
    background: #0d172b;
    border-bottom: 1px solid var(--av-border);
    box-shadow: 0 6px 25px #0004;
}

.auction-view-container {
    width: min(1100px, calc(100% - 28px));
    max-width: 1100px;
    box-sizing: border-box;
    margin: 28px auto 45px;
    padding: clamp(18px, 3vw, 36px);
    background: linear-gradient(150deg, #15233c, #101a2e 65%);
    color: var(--av-text);
    border: 1px solid var(--av-border);
    border-radius: 20px;
    box-shadow: 0 18px 50px #0005;
    font-family: inherit;
}

.auction-owner {
    padding: 0 0 18px;
    border-bottom: 1px solid var(--av-border);
}

.owner-link,
.bidder-link {
    color: #a9ceff;
    gap: 8px;
}

.owner-link:hover,
.bidder-link:hover {
    color: #ffffff;
}

.owner-avatar,
.bidder-avatar {
    border: 2px solid #4e79af;
    object-fit: cover;
}

.auction-header h1 {
    color: #ffffff;
    font-size: clamp(25px, 3.4vw, 39px);
    line-height: 1.2;
    margin: 20px 0 12px;
}

.auction-header > p {
    color: black !important;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.auction-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.auction-prices span {
    display: inline-block;
    margin: 0;
    padding: 12px 16px;
    background: var(--av-panel-alt);
    color: #ffffff;
    border: 1px solid var(--av-border);
    border-radius: 12px;
    font-size: 1.05rem;
}

.watch-btn {
    background: #fbbf24;
    color: #1b2233;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 800;
}

.auction-images {
    gap: 16px;
    margin: 26px 0;
}

.auction-image-card {
    background: var(--av-panel-alt);
    border: 1px solid var(--av-border);
    border-radius: 15px;
    padding: 12px;
    min-width: 0;
}

.auction-image-card img {
    border-radius: 10px;
    max-height: 460px;
    object-fit: contain;
    background: #0b1324;
}

.auction-image-card h4 {
    color: #a9ceff;
    font-weight: 750;
}

.auction-image-card p {
    color: var(--av-muted);
    line-height: 1.55;
}

.auction-bid-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--av-border);
}

.auction-bid-section h2,
.auction-bid-section h3 {
    color: #ffffff;
}

.bid-form input[type="number"] {
    background: var(--av-panel-alt);
    color: #ffffff;
    border: 1px solid #526b90;
    border-radius: 10px;
    min-height: 45px;
}

.bid-form input[type="number"]::placeholder {
    color: #b7c6db;
}

.bid-form button,
.auction-view-container a.btn {
    background: #2c68bb;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
}

.bid-form button:hover {
    background: var(--av-blue);
}

.bids-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}

.bids-table th,
.bids-table td {
    background: var(--av-panel);
    color: var(--av-text);
    border: 1px solid var(--av-border);
    padding: 12px;
}

.bids-table th {
    background: #223654;
    color: #ffffff;
}

.bids-table tr:nth-child(even) td {
    background: #192740;
}

.bids-table tr:hover td {
    background: #263d60;
}

.owner-actions button {
    border-radius: 9px;
    padding: 10px 14px;
}

.login-notice {
    background: #1b304c;
    border: 1px solid #3b608d;
    border-radius: 12px;
    padding: 14px;
    color: #f4f7ff;
}

.bottom-nav {
    background: #101c31;
    border-top: 1px solid #304260;
    box-shadow: 0 -6px 22px #0005;
}

.bottom-nav a {
    color: #d8e8ff;
}

.bottom-nav a:hover {
    color: #ffffff;
}

@media (max-width: 680px) {
    .auction-view-container {
        width: calc(100% - 16px);
        margin: 12px auto 30px;
        padding: 15px;
        border-radius: 14px;
    }

    .auction-images {
        gap: 12px;
    }

    .auction-image-card {
        flex: 1 1 100%;
    }

    .auction-prices span {
        width: 100%;
        box-sizing: border-box;
    }

    .bids-table th,
    .bids-table td {
        padding: 7px;
        font-size: 0.85rem;
    }
}
