/* =============================================
   eBooBoos Modern Theme
   ============================================= */

/* === CSS Custom Properties === */
:root {
    --eb-primary: #1a237e;
    --eb-primary-light: #3949ab;
    --eb-primary-dark: #0d1442;
    --eb-accent: #ffd740;
    --eb-accent-dark: #f9a825;
    --eb-success: #2e7d32;
    --eb-danger: #c62828;
    --eb-bg: #f5f5f5;
    --eb-surface: #ffffff;
    --eb-text: #212121;
    --eb-text-muted: #757575;
    --eb-border: #e0e0e0;
    --eb-radius: 8px;
    --eb-radius-lg: 12px;
    --eb-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --eb-shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
    --eb-transition: 0.2s ease;
}

/* === Base === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--eb-bg);
    color: var(--eb-text);
}

/* === Modern Navbar === */
.eb-modern-nav {
    background: linear-gradient(135deg, var(--eb-primary-dark), var(--eb-primary));
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.eb-modern-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.eb-modern-nav .navbar-brand .eb-brand-e {
    color: var(--eb-accent);
}
.eb-modern-nav .navbar-brand .eb-brand-rest {
    color: #fff;
}
.eb-modern-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--eb-transition);
}
.eb-modern-nav .nav-link:hover,
.eb-modern-nav .nav-link.active {
    color: var(--eb-accent) !important;
}
.eb-modern-nav .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}
.eb-modern-nav .navbar-toggler-icon {
    filter: invert(1);
}

/* === Hero Section === */
.eb-hero {
    background: linear-gradient(135deg, var(--eb-primary-dark) 0%, var(--eb-primary) 50%, var(--eb-primary-light) 100%);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.eb-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,64,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.eb-hero h1 {
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -1px;
}
.eb-hero .eb-hero-accent {
    color: var(--eb-accent);
}
.eb-hero p.lead {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* === Search Card === */
.eb-search-card {
    background: var(--eb-surface);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow-lg);
    border: none;
    overflow: hidden;
}
.eb-search-card .card-header {
    background: var(--eb-primary);
    color: #fff;
    font-weight: 600;
    border-bottom: 3px solid var(--eb-accent);
    padding: 0.75rem 1.25rem;
}
.eb-search-card .card-body {
    padding: 1.25rem;
}
.eb-search-btn {
    background: linear-gradient(135deg, var(--eb-accent-dark), var(--eb-accent));
    border: none;
    color: var(--eb-primary-dark);
    font-weight: 700;
    padding: 0.5rem 2rem;
    border-radius: var(--eb-radius);
    transition: transform var(--eb-transition), box-shadow var(--eb-transition);
}
.eb-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249,168,37,0.4);
    color: var(--eb-primary-dark);
}

/* === Flag Selector === */
.eb-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.eb-flag-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--eb-text);
    transition: background var(--eb-transition);
}
.eb-flag-item:hover {
    background: rgba(26,35,126,0.08);
    text-decoration: none;
    color: var(--eb-primary);
}
.eb-flag-item.active {
    background: var(--eb-primary);
    color: #fff;
    font-weight: 600;
}
.eb-flag-item img {
    width: 20px;
    height: 13px;
    border: 1px solid var(--eb-border);
    border-radius: 2px;
}

/* === Category Cards === */
.eb-cat-card {
    background: var(--eb-surface);
    border-radius: var(--eb-radius);
    border: 1px solid var(--eb-border);
    transition: transform var(--eb-transition), box-shadow var(--eb-transition);
    overflow: hidden;
}
.eb-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--eb-shadow-lg);
}
.eb-cat-card .eb-cat-header {
    background: linear-gradient(135deg, var(--eb-primary), var(--eb-primary-light));
    color: #fff;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}
.eb-cat-card .eb-cat-body {
    padding: 0.75rem 1rem;
}
.eb-cat-card .eb-cat-body a {
    display: block;
    color: var(--eb-primary);
    text-decoration: none;
    padding: 2px 0;
    font-size: 0.85rem;
    transition: color var(--eb-transition);
}
.eb-cat-card .eb-cat-body a:hover {
    color: var(--eb-danger);
}
.eb-cat-more {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--eb-primary-light);
    padding-top: 4px;
}

/* === Item Cards (Search Results) === */
.eb-item-card-modern {
    background: var(--eb-surface);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 0.75rem;
    transition: transform var(--eb-transition), box-shadow var(--eb-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.eb-item-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--eb-shadow-lg);
}
.eb-item-card-modern .eb-item-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}
.eb-item-card-modern .eb-item-title {
    font-size: 0.8rem;
    color: var(--eb-text);
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eb-item-card-modern .eb-item-price {
    color: var(--eb-success);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}
.eb-item-card-modern .eb-item-bids {
    color: var(--eb-text-muted);
    font-size: 0.75rem;
}

/* === Results Header === */
.eb-results-header {
    background: linear-gradient(135deg, var(--eb-primary-dark), var(--eb-primary));
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--eb-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.eb-results-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}
.eb-results-header .badge {
    background: var(--eb-accent);
    color: var(--eb-primary-dark);
    font-weight: 700;
}

/* === We're Back Banner === */
.eb-comeback-banner {
    background: linear-gradient(135deg, var(--eb-accent-dark), var(--eb-accent));
    border-radius: var(--eb-radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.eb-comeback-banner h3 {
    font-weight: 800;
    color: var(--eb-primary-dark);
    margin-bottom: 0.5rem;
}
.eb-comeback-banner p {
    color: var(--eb-primary-dark);
    opacity: 0.85;
}

/* === BBC Feature === */
.eb-bbc-modern {
    background: var(--eb-surface);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
}
.eb-bbc-modern img {
    border-radius: 0;
}

/* === Footer === */
.eb-modern-footer {
    background: var(--eb-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
}
.eb-modern-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--eb-transition);
}
.eb-modern-footer a:hover {
    color: var(--eb-accent);
}
.eb-modern-footer .eb-footer-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

/* === Bookmark Banner === */
.eb-bookmark-banner {
    background: linear-gradient(135deg, var(--eb-accent-dark), var(--eb-accent));
    border-radius: var(--eb-radius);
    padding: 0.75rem 1rem;
    text-align: center;
}
.eb-bookmark-banner a {
    color: var(--eb-primary-dark);
    font-weight: 600;
    text-decoration: none;
}
.eb-bookmark-banner a:hover {
    text-decoration: underline;
}

/* === Misc === */
.eb-section-title {
    font-weight: 700;
    color: var(--eb-primary);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.eb-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--eb-accent);
    border-radius: 2px;
}

.eb-page-card {
    background: var(--eb-surface);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow);
    padding: 2rem;
}

.eb-throwback-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--eb-primary);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--eb-primary);
    padding: 0.4rem 1rem;
    border-radius: var(--eb-radius);
    transition: all var(--eb-transition);
    font-size: 0.85rem;
}
.eb-throwback-link:hover {
    background: var(--eb-primary);
    color: #fff;
}

/* === Share Buttons === */
.eb-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto;
}
.eb-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
    border-radius: var(--eb-radius);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform var(--eb-transition), box-shadow var(--eb-transition), opacity var(--eb-transition);
}
.eb-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
}
.eb-share-btn:active {
    transform: translateY(0);
}
.eb-share-btn svg {
    flex-shrink: 0;
}
.eb-share-youtube   { background: #ff0000; }
.eb-share-tiktok    { background: #000; }
.eb-share-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.eb-share-snapchat  { background: #fffc00; color: #000; }
.eb-share-snapchat:hover { color: #000; }
.eb-share-whatsapp  { background: #25d366; }
.eb-share-discord   { background: #5865f2; }
.eb-share-x         { background: #000; }
.eb-share-threads   { background: #000; }
.eb-share-facebook  { background: #1877f2; }
.eb-share-reddit    { background: #ff4500; }
.eb-share-bereal    { background: #000; }
.eb-share-email     { background: var(--eb-primary); }
.eb-share-copy      { background: var(--eb-text-muted); color: #fff; font-family: inherit; }
.eb-share-copy:hover { background: #616161; }

@media (max-width: 520px) {
    .eb-share-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 360px) {
    .eb-share-grid {
        grid-template-columns: 1fr;
    }
}
