/* =============================================
   PINCRUSHERS SHOP – 25 Jahre Kollektion
   Dark holographic theme
   ============================================= */

:root {
    --holo-1: #ff6ec7;
    --holo-2: #a78bfa;
    --holo-3: #38bdf8;
    --holo-4: #34d399;
    --holo-5: #fbbf24;
    --holo-gradient: linear-gradient(90deg, #ff6ec7, #a78bfa, #38bdf8, #34d399, #fbbf24, #ff6ec7);
    --holo-gradient-45: linear-gradient(45deg, #ff6ec7, #a78bfa, #38bdf8, #34d399, #fbbf24);
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --border-color: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-muted: #888;
}

/* ---- Base ---- */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ---- Holographic text ---- */
.holo-text {
    background: var(--holo-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-shift 4s linear infinite;
}

@keyframes holo-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ---- Brand ---- */
.brand-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.brand-accent {
    background: var(--holo-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-shift 4s linear infinite;
}

.brand-sub {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: -4px;
}

/* ---- Navbar ---- */
.navbar {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.navbar-brand { line-height: 1; }

.nav-link {
    color: #aaa !important;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

/* Cart icon */
.cart-link { position: relative; }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--holo-gradient);
    background-size: 200% auto;
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: holo-shift 4s linear infinite;
}

/* ---- Button: Holo ---- */
.btn-holo {
    background: var(--holo-gradient);
    background-size: 200% auto;
    color: #000 !important;
    font-weight: 700;
    border: none;
    transition: background-position 0.5s, transform 0.2s, box-shadow 0.2s;
    animation: holo-shift 4s linear infinite;
}

.btn-holo:hover {
    background-position: right center;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
    color: #000 !important;
}

.btn-holo:active { transform: translateY(0); }

/* ---- Cards ---- */
.card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.card-header {
    background-color: rgba(255,255,255,0.04) !important;
    border-bottom-color: var(--border-color) !important;
    padding: 1rem 1.5rem;
}

/* ---- Login Page ---- */
.login-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #1a0533 0%, #0d0d0d 60%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 110, 199, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.login-card {
    background: rgba(26, 26, 26, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.login-logo { line-height: 1; }

/* ---- Hero Banner ---- */
.hero-banner {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0533 50%, #0d0d1a 100%);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--holo-gradient);
    background-size: 200% auto;
    opacity: 0.05;
    animation: holo-shift 4s linear infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 8px;
    background: var(--holo-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-shift 4s linear infinite;
    position: relative;
}

.hero-subtitle { position: relative; }

/* ---- Product Cards ---- */
.product-card {
    background: var(--bg-card) !important;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border: 1px solid var(--border-color) !important;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(167, 139, 250, 0.2) !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #111;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--holo-gradient);
    background-size: 200% auto;
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    animation: holo-shift 4s linear infinite;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.product-detail-price {
    letter-spacing: 1px;
}

/* ---- Size Chips ---- */
.sizes-preview { display: flex; flex-wrap: wrap; gap: 4px; }

.size-chip {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ccc;
}

.size-chip.more { color: #888; }

.size-chip-lg {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ---- Size Selector (product detail) ---- */
.size-btn {
    min-width: 52px;
    border-color: rgba(255,255,255,0.2) !important;
    color: #ccc !important;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-check:checked + .size-btn {
    background: var(--holo-gradient) !important;
    background-size: 200% auto !important;
    border-color: transparent !important;
    color: #000 !important;
    animation: holo-shift 4s linear infinite;
}

/* ---- Product Detail ---- */
.product-detail-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.product-detail-img-wrap {
    background: #111;
    aspect-ratio: 1;
}

.product-detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Quantity Selector ---- */
.qty-input {
    width: 70px !important;
    background: var(--bg-card) !important;
    color: #fff !important;
    border-color: var(--border-color) !important;
    font-weight: 700;
}

.qty-input-small {
    width: 60px !important;
    background: var(--bg-card) !important;
    color: #fff !important;
    border-color: var(--border-color) !important;
}

/* ---- Cart ---- */
.cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-thumb-sm {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

/* ---- Tables ---- */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.04);
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--border-color);
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ---- Orders ---- */
.order-card { transition: border-color 0.2s; }
.order-card:hover { border-color: rgba(167, 139, 250, 0.3) !important; }

.order-item-chip {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ---- Admin ---- */
.stat-card { transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-3px); }

.admin-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.admin-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* ---- Page Title ---- */
.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ---- Footer ---- */
.footer {
    background: rgba(13,13,13,0.9);
    border-top: 1px solid var(--border-color);
}

/* ---- Form Controls ---- */
.form-control, .form-select {
    background-color: #1e1e1e !important;
    border-color: var(--border-color) !important;
    color: #f0f0f0 !important;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(167, 139, 250, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(167, 139, 250, 0.15) !important;
    background-color: #222 !important;
}

.form-control::placeholder { color: #555 !important; }

/* ---- Dropdown ---- */
.dropdown-menu-dark {
    background-color: #1e1e1e !important;
    border-color: var(--border-color) !important;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.06) !important;
}

/* ---- Breadcrumb ---- */
.breadcrumb-item a {
    color: #888;
    text-decoration: none;
}
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: #ccc; }
.breadcrumb-item + .breadcrumb-item::before { color: #444; }

/* ---- Badges ---- */
.badge { font-weight: 600; }

/* ---- Alerts ---- */
.alert-success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.alert-warning { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.alert-danger  { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); }
.alert-info    { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb {
    background: var(--holo-gradient);
    background-size: 200% auto;
    border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .hero-banner { padding: 2rem 1rem !important; }
    .product-detail-title { font-size: 1.5rem; }
}
