/* Bidoo Clone: Pixel-Perfect Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --bidoo-blue: #097df9;       /* Bright blue for buttons */
    --bidoo-green: #5ce68b;      /* Bright green for PUNTA */
    --bidoo-green-dark: #4bcc7a; 
    --bidoo-red: #ff2a2a;        /* Timer and alerts */
    --bidoo-navy: #091a5e;       /* Hero banner background */
    --bidoo-gold: #ffcf00;       /* Coins and stars */
    
    --bg-color: #f1f2f6;
    --card-border: #e2e2e2;
    --text-dark: #222;
    --text-grey: #666;
    --text-light-grey: #a0a0a0;
    
    --font-main: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

/* --- 1. HEADER TOP --- */
.header-wrapper {
    background: #fff;
    border-bottom: 1px solid #ddd;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.header-logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 500;
    color: #111;
    letter-spacing: -1px;
}
.header-logo i {
    color: #1a9e6d;
    font-size: 20px;
    margin: 0 1px;
    transform: rotate(-15deg);
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-nav a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-grey);
}
.header-nav a.nav-live {
    color: #17b978; /* Live green */
}
.header-nav a:hover {
    color: var(--bidoo-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-coins {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 900;
    font-size: 14px;
    color: var(--bidoo-red);
}
.header-coins img {
    height: 18px;
}
.btn-buy-credits {
    background: var(--bidoo-blue);
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-buy-credits .promo-badge {
    background: #fff;
    color: var(--bidoo-blue);
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Shipping Banner */
.shipping-banner {
    background: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.shipping-banner i {
    color: var(--bidoo-blue);
    font-size: 16px;
}
.shipping-banner a {
    color: #555;
    text-decoration: underline;
}

/* --- 2. HERO BANNER --- */
.hero-banner {
    background: var(--bidoo-navy);
    position: relative;
    padding: 40px 20px;
    text-align: center;
    overflow: hidden;
    color: #fff;
    margin-bottom: 0;
}
.hero-title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}
.hero-title .yellow {
    color: var(--bidoo-gold);
}
.btn-hero {
    background: #17e885;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(23, 232, 133, 0.4);
}

/* Decorative images in Hero */
.hero-dec {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}
.hero-dec-1 { width:100px; height:100px; left:5%; top:20%; border:3px solid #fff; }
.hero-dec-2 { width:120px; height:120px; left:15%; bottom:10%; border:3px solid #fff; }
.hero-dec-3 { width:140px; height:140px; right:20%; top:15%; border:3px solid #fff; }
.hero-dec-4 { width:110px; height:110px; right:5%; bottom:20%; border:3px solid #fff; }
.hero-icon { position: absolute; z-index: 1; font-size: 24px; color: var(--bidoo-gold); }
.hi-1 { left: 10%; top: 10%; }
.hi-2 { left: 25%; bottom: 20%; font-size:40px; }
.hi-3 { right: 12%; top: 5%; }
.hi-4 { right: 8%; bottom: 10%; font-size:35px; }

/* --- 3. SUB NAVBAR (CATEGORIES) --- */
.sub-nav {
    background: #fff;
    border-bottom: 1px solid var(--card-border);
}
.sub-nav .container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 30px; /* Space for arrows */
}
.sub-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    cursor: pointer;
    font-size: 14px;
}
.sub-nav-arrow.left { left: 5px; }
.sub-nav-arrow.right { right: 5px; }

.sub-nav-links {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    overflow: hidden;
    width: 100%;
    align-items: center;
}
.sub-nav-links a {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}
.sub-nav-links a.active {
    background: #1e90ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
}

/* --- 4. SECTION HIGHLIGHT --- */
.section-heading {
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    color: #111;
    margin: 25px 0 15px 0;
}
.highlight-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}
.highlight-card {
    background: #fff;
    border: 1px solid var(--card-border);
    padding: 5px;
    text-align: center;
    width: 130px;
    border-radius: 2px;
}
.highlight-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    margin-bottom: 5px;
}
.highlight-title {
    font-size: 10px;
    color: #333;
    line-height: 1.2;
    height: 24px;
    overflow: hidden;
}
.highlight-status {
    color: #17b978;
    font-size: 10px;
    font-weight: 700;
    margin-top: 5px;
}

/* --- 5. GRID & CARD PIXEL PERFECT --- */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 50px;
}

.auction-card {
    background: #fff;
    border: 1px solid var(--card-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Badges */
.badge-top-left {
    position: absolute;
    top: 5px; left: 5px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.badge-no-entry {
    background: #fff;
    color: var(--bidoo-red);
    width: 16px; height: 16px;
    border-radius: 50%;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ccc;
}
.badge-lock {
    color: #ffb700;
    font-size: 12px;
    position: relative;
}
.badge-lock::after {
    content: "1";
    position: absolute;
    bottom: -2px; right: -4px;
    font-size: 8px;
    color: #000;
    font-weight: 900;
}
.badge-star {
    position: absolute;
    top: 5px; right: 5px;
    color: #d1d1d1;
    font-size: 16px;
    z-index: 5;
}

/* Image Area */
.card-image-wrap {
    position: relative;
    height: 140px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Sold Stamp */
.stamp-venduto {
    position: absolute;
    border: 3px solid #ff4d4d;
    color: #ff4d4d;
    font-weight: 900;
    font-size: 20px;
    padding: 2px 10px;
    transform: rotate(-15deg);
    background: rgba(255,255,255,0.7);
    z-index: 10;
}

/* Card Body */
.card-title {
    font-size: 11px;
    color: var(--text-dark);
    text-align: center;
    padding: 0 5px;
    height: 30px;
    line-height: 1.3;
    overflow: hidden;
    margin-bottom: 2px;
}
.card-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--bidoo-green);
    text-align: center;
    margin-bottom: -2px;
}
.card-user {
    font-size: 10px;
    color: var(--text-grey);
    text-align: center;
}
.card-timer {
    font-size: 18px;
    font-weight: 900;
    color: var(--bidoo-red);
    text-align: center;
    margin-bottom: 5px;
}
.card-timer.sold {
    color: #a0a0a0;
}

/* Main Button */
.card-btn-punta {
    background: var(--bidoo-green);
    color: #fff;
    width: 100%;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}
.card-btn-punta.btn-sold {
    background: #fff;
    color: #ccc;
    cursor: default;
    border-top: 1px solid var(--card-border);
}

/* Bottom Small Buttons */
.card-footer {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #fff;
}
.card-footer-btn {
    flex: 1;
    background: #fff;
    border: 1px solid var(--bidoo-blue);
    color: var(--bidoo-blue);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

/* --- 6. FLOATING WIDGETS --- */
.floating-help {
    position: fixed;
    bottom: 20px; right: 20px;
    background: var(--bidoo-blue);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    cursor: pointer;
}

@media(max-width: 1200px) {
    .grid-6 { grid-template-columns: repeat(4, 1fr); }
}
@media(max-width: 800px) {
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 24px; }
}
