/* Pokemon Deal Finder — Dark theme with Pokemon-inspired accents */

:root {
    --pokemon-yellow: #ffcb05;
    --pokemon-blue: #3d7dca;
    --pokemon-red: #ff0000;
    --bg-dark: #0f1117;
    --bg-card: #1a1d27;
    --bg-card-hover: #22253a;
    --text-primary: #e8e8e8;
    --text-muted: #8b8fa3;
    --accent: var(--pokemon-yellow);
    --deal-green: #22c55e;
    --deal-red: #ef4444;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Navbar */
.navbar {
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 203, 5, 0.15);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-muted) !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

/* Product cards */
.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 203, 5, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .product-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-card .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card .product-original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.product-card .store-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Deal badges */
.badge-deal {
    background: var(--deal-green);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
}

.badge-lowest {
    background: var(--pokemon-yellow);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
}

.badge-drop {
    background: var(--deal-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
}

.badge-store-count {
    background: rgba(61, 125, 202, 0.2);
    color: var(--pokemon-blue);
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
}

/* Stats bar */
.stats-bar {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters */
.filter-bar {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-bar .form-select,
.filter-bar .form-control {
    background: var(--bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Store cards */
.store-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.store-card:hover {
    border-color: rgba(255, 203, 5, 0.2);
}

/* Page header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Placeholder image */
.placeholder-img {
    background: linear-gradient(135deg, #2a2d3e, #1a1d27);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 150px;
    }
    .stat-number {
        font-size: 1.3rem;
    }
}
