/* Periodic Table Store — Custom Styles */

:root {
    --pt-dark: #0f1923;
    --pt-darker: #0a1118;
    --pt-accent: #00d4aa;
    --pt-accent-hover: #00b894;
    --pt-blue: #4dabf7;
    --pt-purple: #b197fc;
    --pt-orange: #ffa94d;
    --pt-red: #ff6b6b;
    --pt-text: #c9d1d9;
    --pt-text-muted: #8b949e;
    --pt-border: #21262d;
    --pt-card: #161b22;
    --pt-card-hover: #1c2333;
    --pt-surface: #1a2130;
}

/* Reset & Base */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--pt-darker);
    color: var(--pt-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

main { flex: 1; }

a { color: var(--pt-accent); }
a:hover { color: var(--pt-accent-hover); }

/* Top Alert Banner */
.top-banner {
    background: linear-gradient(90deg, #1a3a4a, #1a2a3a);
    border-bottom: 1px solid var(--pt-border);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}
.top-banner a {
    color: var(--pt-accent);
    font-weight: 600;
    text-decoration: none;
}
.top-banner a:hover { text-decoration: underline; }
.top-banner .btn-close {
    filter: invert(1);
    opacity: 0.5;
    font-size: 0.65rem;
    padding: 0.5rem;
}

/* Navbar */
.navbar {
    background: var(--pt-dark) !important;
    border-bottom: 1px solid var(--pt-border);
    padding: 0.75rem 0;
}
.navbar-brand {
    font-weight: 700;
    color: #fff !important;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--pt-accent); }
.navbar .nav-link {
    color: var(--pt-text-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.15s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff !important; }
.navbar-toggler {
    border-color: var(--pt-border);
}
.navbar-toggler-icon {
    filter: invert(0.7);
}

/* Cart badge */
.cart-link { position: relative; }
.cart-link .badge {
    font-size: 0.6rem;
    padding: 0.2em 0.45em;
    position: absolute;
    top: 2px;
    right: -4px;
}

/* Dropdown */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    background: var(--pt-card);
    border-color: var(--pt-border);
}
.dropdown-item {
    color: var(--pt-text);
    font-size: 0.85rem;
}
.dropdown-item:hover {
    background: var(--pt-surface);
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: radial-gradient(ellipse at top, #1a2a3a 0%, var(--pt-darker) 70%);
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--pt-accent); }
.hero .lead {
    font-size: 1.2rem;
    color: var(--pt-text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Buttons */
.btn-accent {
    background: var(--pt-accent);
    color: var(--pt-dark);
    font-weight: 600;
    border: none;
    padding: 0.65rem 1.8rem;
    border-radius: 8px;
    transition: all 0.15s;
}
.btn-accent:hover {
    background: var(--pt-accent-hover);
    color: var(--pt-dark);
    transform: translateY(-1px);
}
.btn-accent-outline {
    background: transparent;
    color: var(--pt-accent);
    font-weight: 600;
    border: 2px solid var(--pt-accent);
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    transition: all 0.15s;
}
.btn-accent-outline:hover {
    background: var(--pt-accent);
    color: var(--pt-dark);
}
.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--pt-text);
    border: 1px solid var(--pt-border);
    font-weight: 500;
    padding: 0.65rem 1.8rem;
    border-radius: 8px;
    transition: all 0.15s;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Cards */
.product-card {
    background: var(--pt-card);
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}
.product-card:hover {
    border-color: rgba(0,212,170,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.product-card .card-body { padding: 1.25rem; }
.product-card .card-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}
.product-card .card-text { color: var(--pt-text-muted); font-size: 0.85rem; }
.product-card .price { color: #fff; font-weight: 700; font-size: 1.35rem; }
.product-card .compare-price {
    color: var(--pt-text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pt-surface);
    font-size: 3.5rem;
    border-bottom: 1px solid var(--pt-border);
}

/* Category badges */
.cat-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cat-poster { background: rgba(77,171,247,0.15); color: var(--pt-blue); }
.cat-framed { background: rgba(177,151,252,0.15); color: var(--pt-purple); }
.cat-canvas { background: rgba(255,169,77,0.15); color: var(--pt-orange); }
.cat-tshirt { background: rgba(255,107,107,0.15); color: var(--pt-red); }
.cat-digital { background: rgba(0,212,170,0.15); color: var(--pt-accent); }

/* Category filter pills */
.filter-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--pt-border);
    color: var(--pt-text-muted);
    transition: all 0.15s;
}
.filter-pill:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.filter-pill.active {
    background: var(--pt-accent);
    color: var(--pt-dark);
    border-color: var(--pt-accent);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.feature-item {
    background: var(--pt-card);
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.15s;
}
.feature-item:hover { border-color: rgba(0,212,170,0.3); }
.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.feature-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}
.feature-item p {
    color: var(--pt-text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

/* Stats bar */
.stats-bar {
    background: var(--pt-card);
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--pt-accent);
    font-weight: 700;
}
.stat-item span {
    font-size: 0.8rem;
    color: var(--pt-text-muted);
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--pt-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a2a3a, #1a3a4a);
    border: 1px solid var(--pt-border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}
.cta-section h2 { color: #fff; font-weight: 700; }
.cta-section p { color: var(--pt-text-muted); }

/* Cart page */
.cart-table {
    color: var(--pt-text);
}
.cart-table th {
    color: var(--pt-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom-color: var(--pt-border);
}
.cart-table td {
    border-bottom-color: var(--pt-border);
    vertical-align: middle;
}
.cart-summary {
    background: var(--pt-card);
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Product detail */
.product-detail-img {
    background: var(--pt-surface);
    border-radius: 12px;
    border: 1px solid var(--pt-border);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.detail-list li {
    padding: 0.4rem 0;
    color: var(--pt-text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.detail-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--pt-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--pt-dark);
    border-top: 1px solid var(--pt-border);
    padding: 2.5rem 0;
}
footer a {
    color: var(--pt-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}
footer a:hover { color: #fff; }
.footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.footer-brand span { color: var(--pt-accent); }

/* Content pages */
.content-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.content-page h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.content-page h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.content-page p, .content-page li {
    color: var(--pt-text-muted);
    line-height: 1.7;
}

/* Form cards */
.form-card {
    background: var(--pt-card);
    border: 1px solid var(--pt-border);
    border-radius: 12px;
    padding: 2rem;
}
.form-card .form-control,
.form-card .form-control:focus {
    background: var(--pt-surface);
    border-color: var(--pt-border);
    color: var(--pt-text);
}
.form-card .form-control:focus {
    border-color: var(--pt-accent);
    box-shadow: 0 0 0 0.2rem rgba(0,212,170,0.15);
}
.form-card .form-label { color: var(--pt-text-muted); font-size: 0.85rem; font-weight: 500; }

/* 404 */
.page-404 {
    text-align: center;
    padding: 5rem 1rem;
}
.page-404 .element-card {
    display: inline-block;
    background: var(--pt-card);
    border: 2px solid var(--pt-accent);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}
.page-404 .atomic-num { font-size: 0.8rem; color: var(--pt-accent); }
.page-404 .symbol { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.page-404 .el-name { font-size: 0.85rem; color: var(--pt-text-muted); }

/* Order complete */
.order-success-icon {
    width: 70px;
    height: 70px;
    background: rgba(0,212,170,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--pt-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .product-detail-img { height: 280px; font-size: 4rem; }
}

/* Override Bootstrap dark text where needed */
.text-white { color: #fff !important; }
.bg-dark-surface { background: var(--pt-surface); }
