/* ===================================
   AuctionHub Home Page Styles
   =================================== */

:root {
    --dark: #2C1810;
    --brown: #6B5749;
    --green: #7FA066;
    --blue: #85B5C9;
    --light: #E8EDE6;
    --offwhite: #F7F4F0;
    --gold: #D4B76A;
    --accent: #5A8A4A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #FDFCFA 0%, #F5F7F4 25%, #E3E9E0 50%, #F5F7F4 75%, #FDFCFA 100%);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===================================
   AMBIENT BLOBS
   =================================== */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

.bg-blob.one {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(133, 181, 201, 0.4), rgba(127, 160, 102, 0.3));
    top: -200px;
    left: -200px;
    opacity: 0.25;
    animation: float 20s infinite ease-in-out, morph 25s infinite ease-in-out;
}

.bg-blob.two {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(127, 160, 102, 0.35), rgba(107, 87, 73, 0.25));
    bottom: -150px;
    right: -150px;
    opacity: 0.2;
    animation: float 18s infinite ease-in-out 3s, morph 22s infinite ease-in-out 2s;
}

.bg-blob.three {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 183, 106, 0.3), rgba(232, 237, 230, 0.2));
    top: 30%;
    right: -180px;
    opacity: 0.18;
    animation: float 16s infinite ease-in-out 6s, morph 20s infinite ease-in-out 4s;
}

.bg-blob.four {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 87, 73, 0.25), rgba(44, 24, 16, 0.15));
    top: -120px;
    right: 25%;
    opacity: 0.15;
    animation: float 15s infinite ease-in-out 1s, morph 18s infinite ease-in-out 3s;
}

.bg-blob.five {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(232, 237, 230, 0.3), rgba(133, 181, 201, 0.25));
    bottom: 15%;
    left: -120px;
    opacity: 0.17;
    animation: float 19s infinite ease-in-out 4s, morph 21s infinite ease-in-out 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(70px, -60px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-50px, 70px) rotate(180deg) scale(0.9); }
    75% { transform: translate(60px, 50px) rotate(270deg) scale(1.05); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 40% 60% 50% / 40% 70% 50% 60%; }
    75% { border-radius: 40% 70% 50% 60% / 70% 50% 60% 40%; }
}

/* ===================================
   FLOOR REFLECTION
   =================================== */
.floor-reflection {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: radial-gradient(ellipse at center, rgba(44, 24, 16, 0.06), transparent);
    pointer-events: none;
    z-index: 1;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 60px 20px;
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-wrapper {
    position: relative;
    padding-bottom: 8px;
}

.logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 
        0 2px 4px rgba(44, 24, 16, 0.1),
        0 4px 8px rgba(44, 24, 16, 0.08);
}

.logo span {
    color: var(--accent);
    text-shadow: 
        0 2px 4px rgba(90, 138, 74, 0.15),
        0 4px 8px rgba(90, 138, 74, 0.1);
}

.logo-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 700;
    opacity: 0.06;
    transform: scaleY(-1);
    background: linear-gradient(to bottom, var(--dark), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    line-height: 1;
}

.logo-reflection span {
    color: var(--accent);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--dark);
}

.welcome strong {
    font-weight: 700;
    font-size: 17px;
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 60%, var(--accent) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   BUTTONS - ENHANCED
   =================================== */
.btn {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn.solid {
    background: linear-gradient(135deg, var(--accent) 0%, #4A7A3A 100%);
    color: #FFFFFF;
    box-shadow: 
        0 4px 12px rgba(90, 138, 74, 0.25),
        0 2px 4px rgba(90, 138, 74, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.solid:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(135deg, #689856 0%, #4A7A3A 100%);
    box-shadow: 
        0 12px 35px rgba(90, 138, 74, 0.35),
        0 6px 15px rgba(90, 138, 74, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.solid:active {
    transform: translateY(-2px) scale(1.01);
}

.btn.outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 
        0 4px 12px rgba(90, 138, 74, 0.15),
        0 2px 4px rgba(90, 138, 74, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn.outline:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #4A7A3A 100%);
    color: #FFFFFF;
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(90, 138, 74, 0.3),
        0 6px 15px rgba(90, 138, 74, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.outline:active {
    transform: translateY(-2px) scale(1.01);
}

.btn.full {
    width: 100%;
    text-align: center;
}

/* ===================================
   MAIN LAYOUT
   =================================== */
.home {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 35px;
    padding: 30px 60px 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 35px 30px;
    box-shadow: 
        0 20px 50px rgba(44, 24, 16, 0.08),
        0 10px 25px rgba(90, 138, 74, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease backwards;
}

.sidebar .card:nth-child(1) { animation-delay: 0.1s; }
.sidebar .card:nth-child(2) { animation-delay: 0.2s; }
.sidebar .card:nth-child(3) { animation-delay: 0.3s; }
.main-content .card { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 5%;
    width: 90%;
    height: 15px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card:hover::after {
    opacity: 1;
}

.card h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Two-color effect for card headings */
.sidebar .card:nth-child(1) h2 {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 50%, var(--accent) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar .card:nth-child(2) h2 {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 30%, var(--blue) 30%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar .card:nth-child(3) h2 {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 30%, var(--gold) 30%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-content .card h2 {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 40%, var(--accent) 40%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #3D2A1E;
    font-weight: 400;
    margin-bottom: 22px;
    opacity: 0.9;
}

/* ===================================
   CARD HEADER
   =================================== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(127, 160, 102, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(127, 160, 102, 0.1);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: livePulse 2s infinite;
    box-shadow: 0 0 4px var(--accent);
}

@keyframes livePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(90, 138, 74, 0.7), 0 0 4px var(--accent);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(90, 138, 74, 0), 0 0 8px var(--accent);
        transform: scale(1.1);
    }
}

.live-text {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===================================
   AUCTION LIST
   =================================== */
.auction-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auction-row {
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(127, 160, 102, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.04);
}

.auction-row:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(5px);
    box-shadow: 
        0 8px 25px rgba(44, 24, 16, 0.1),
        0 4px 12px rgba(90, 138, 74, 0.08);
    border-color: rgba(127, 160, 102, 0.25);
}

.auction-image {
    flex-shrink: 0;
}

.auction-image img {
    width: 100px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.1);
    display: block;
}

.image-placeholder {
    width: 100px;
    height: 75px;
    background: linear-gradient(135deg, var(--light), var(--offwhite));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown);
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.65;
}

.auction-info h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 45%, var(--accent) 45%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desc {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #3D2A1E;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.6;
    opacity: 0.9;
}

.bid-info {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
}

.bid-info .label {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #4A3A2E;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.bid-info .amount {
    font-family: "Poppins", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--accent);
}

.auction-time {
    text-align: right;
}

.time-label {
    font-family: "Montserrat", sans-serif;
    display: block;
    font-size: 11px;
    color: #4A3A2E;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.75;
}

.time {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.no-auctions {
    font-family: "Poppins", sans-serif;
    text-align: center;
    padding: 40px 20px;
    color: #3D2A1E;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.85;
}

/* ===================================
   RESPONSIVE - DESKTOP LARGE
   =================================== */
@media (max-width: 1400px) {
    .home {
        padding: 30px 50px 70px;
    }
}

/* ===================================
   RESPONSIVE - TABLET/SMALL DESKTOP
   =================================== */
@media (max-width: 1200px) {
    .home {
        grid-template-columns: 1fr;
        padding: 30px 40px 60px;
    }

    .navbar {
        padding: 20px 40px;
    }

    .sidebar {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        grid-auto-flow: dense;
        display: grid;
    }
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 18px 25px;
    }

    .logo {
        font-size: 32px;
    }

    .logo-reflection {
        font-size: 32px;
    }

    .user-area {
        width: 100%;
        margin-top: 12px;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .welcome {
        width: 100%;
        text-align: center;
        font-size: 15px;
    }

    .btn {
        font-size: 12px;
        padding: 10px 22px;
    }

    .home {
        padding: 20px 20px 50px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px 20px;
    }

    .card h2 {
        font-size: 24px;
    }

    .auction-row {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .auction-time {
        grid-column: 2;
        text-align: left;
        margin-top: 8px;
    }

    .bg-blob.one,
    .bg-blob.two,
    .bg-blob.three,
    .bg-blob.four,
    .bg-blob.five {
        width: 300px;
        height: 300px;
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }

    .user-area {
        margin-top: 10px;
        gap: 10px;
    }

    .logo {
        font-size: 28px;
    }

    .logo-reflection {
        font-size: 28px;
    }

    .btn {
        font-size: 11px;
        padding: 9px 18px;
    }

    .home {
        padding: 15px 15px 40px;
        gap: 20px;
    }

    .card {
        padding: 20px 18px;
    }

    .card h2 {
        font-size: 22px;
    }

    .card p {
        font-size: 14px;
    }

    .auction-image img,
    .image-placeholder {
        width: 70px;
        height: 55px;
    }

    .auction-info h3 {
        font-size: 17px;
    }

    .desc {
        font-size: 13px;
    }

    .bid-info .amount {
        font-size: 17px;
    }

    .time {
        font-size: 15px;
    }

    .bg-blob {
        display: none;
    }
}

/* ===================================
   RESPONSIVE - TABLET LANDSCAPE
   =================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 22px 50px;
    }

    .logo {
        font-size: 36px;
    }

    .logo-reflection {
        font-size: 36px;
    }

    .home {
        grid-template-columns: 340px 1fr;
        padding: 30px 50px 70px;
    }

    .sidebar {
        display: flex;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .bg-blob,
    .floor-reflection,
    .btn,
    .navbar {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}