/* ============================================================
   MY AUCTION STYLES — Ultra Sleek Modern Theme & Dark Mode
   ============================================================ */

/* R1 (navbar fixed) + R3 (no scrollbar shift) */
html {
    scrollbar-gutter: stable;
}

/* R5: page owns its base look + layout (were from dashboard.css) */
body {
    background-color: #f4f7fc;
    color: #333;
    overflow-x: clip;
}
.my-auction-scope {
    font-family: 'Poppins', sans-serif;
}
.my-auction-page {
    display: flex;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 50px;
}
.my-auction-main {
    flex-grow: 1;
}

@media (max-width: 900px) {
    .my-auction-page {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .my-auction-page {
        padding: 0 16px;
        margin: 20px auto;
    }
}

.my-auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    color: #0f172a;
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .page-title {
    color: #f8fafc;
}

.add-btn {
    background-color: #0088ea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 136, 234, 0.35);
    transition: all 0.2s ease;
    font-family: var(--font-body, 'Manrope', sans-serif);
}

.add-btn:hover {
    background-color: #0070c0;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 136, 234, 0.45);
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

/* ============================================================
   AUCTION CARD STYLES (Light & Dark Theme Matching Index.html)
   ============================================================ */
.auction-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;

    /* Light Mode Background */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 246, 255, 0.92) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 14px rgba(59, 130, 246, 0.05),
        0 12px 28px rgba(0, 0, 0, 0.03);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 240px;
}

.auction-card:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 24px -4px rgba(59, 130, 246, 0.15),
        0 16px 36px rgba(0, 0, 0, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Dark Mode Card Styling — Identical to index.html Image 1 */
[data-theme="dark"] .auction-card {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 6px 18px rgba(0, 0, 0, 0.35),
        0 18px 36px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .auction-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 10px 28px rgba(59, 130, 246, 0.18),
        0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Background SVG Art (Clean Sonar Radar Network) */
.ac-bg-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ac-bg-art svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-sonar-group {
    animation: ac-opacity-pulse 5s ease-in-out infinite;
}

@keyframes ac-opacity-pulse {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

/* ── Card Header ── */
.ac-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px 14px 22px;
    position: relative;
    z-index: 1;
}

/* Left Accent Line */
.ac-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    height: 22px;
    width: 3.5px;
    background-color: #0088ea;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(0, 136, 234, 0.55);
}

.ac-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    object-fit: cover;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .ac-avatar {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ac-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.ac-name {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .ac-name {
    color: #f8fafc;
}

.ac-date-time {
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    gap: 12px;
    font-weight: 500;
}

[data-theme="dark"] .ac-date-time {
    color: #94a3b8;
}

/* ── Inner Details Grid (Points, Bid Incr, Base Bid, Team) ── */
.ac-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    font-size: 13.5px;
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.02);
    border-radius: 14px;
    margin: 0 22px 16px 22px;
    padding: 14px 18px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .ac-details {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ac-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-label {
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
}

[data-theme="dark"] .ac-label {
    color: #94a3b8;
}

.ac-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 13.5px;
}

[data-theme="dark"] .ac-value {
    color: #f8fafc;
}

/* ── Footer Row & Action Icons ── */
.ac-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
    position: relative;
    z-index: 1;
    gap: 28px;
}

[data-theme="dark"] .ac-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.ac-icons-left {
    display: flex;
    gap: 24px;
    align-items: center;
    padding-right: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .ac-icons-left {
    border-right-color: rgba(255, 255, 255, 0.08);
}

.ac-icons-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ac-icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    stroke: #64748b;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease, opacity 0.2s ease;
}

[data-theme="dark"] .ac-icon {
    stroke: #94a3b8;
}

.ac-icon:hover {
    transform: scale(1.15) translateY(-2px);
    stroke: #0088ea;
}

.ac-icons-left .ac-icon:hover,
.ac-icons-right .ac-icon.info:hover {
    stroke: #0088ea;
}

.ac-icons-right .ac-icon.edit:hover {
    stroke: #3b82f6;
}

.ac-icons-right .ac-icon.delete:hover {
    stroke: #ef4444;
}

/* ── Mobile Responsiveness ── */
@media (max-width: 480px) {
    .auction-grid {
        grid-template-columns: 1fr;
    }

    .auction-card {
        border-radius: 18px;
    }

    .ac-header {
        padding: 16px 16px 12px 16px;
    }

    .ac-avatar {
        width: 42px;
        height: 42px;
    }

    .ac-name {
        font-size: 15px;
    }

    .ac-date-time {
        font-size: 11.5px;
    }

    .ac-details {
        margin: 0 16px 14px 16px;
        padding: 12px 14px;
        gap: 8px 12px;
        font-size: 12.5px;
    }

    .ac-footer {
        padding: 12px 16px;
        gap: 20px;
    }

    .ac-icons-left {
        gap: 20px;
        padding-right: 20px;
    }

    .ac-icons-right {
        gap: 20px;
    }

    .ac-icon {
        width: 17px;
        height: 17px;
    }
}

/* ====================== PREMIUM CARD ANIMATIONS ====================== */
@keyframes slowSlideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-card {
    animation: slowSlideFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
/* ── DARK THEME: page background (was light #f4f7fc) ── */
[data-theme="dark"] body {
    background-color: var(--color-bg);
    color: var(--color-text);
}
