/* Futuristic Glassy Design for Peptides Store */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: rgba(248, 250, 252, 0.1);
    --dark-color: #000000;
    --darker-color: #0a0a0a;
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(0, 212, 255, 0.3);
    --neon-glow: 0 0 30px rgba(0, 212, 255, 0.4);
    --neon-glow-strong: 0 0 50px rgba(0, 212, 255, 0.6);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-secondary: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #006699 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    --text-primary: #00d4ff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: var(--gradient-dark);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 60% 60%, rgba(255, 0, 150, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Ultra Dark Glassy Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(0, 212, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.6), 
        rgba(99, 102, 241, 0.6), 
        rgba(0, 212, 255, 0.6), 
        transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        var(--neon-glow-strong),
        inset 0 1px 0 rgba(0, 212, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 212, 255, 0.5);
}

.card:hover::after {
    left: 100%;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Product Cards */
.product-card {
    height: 100%;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* Futuristic Buttons */
.btn {
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    background: var(--gradient-accent);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
}

/* Ultra Dark Glassy Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 1000 !important;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.8), 
        rgba(99, 102, 241, 0.8), 
        rgba(0, 212, 255, 0.8), 
        transparent);
    animation: navGlow 4s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #e2e8f0 !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

/* Dropdown menu z-index fix */
.dropdown-menu {
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
    position: absolute !important;
}

.dropdown {
    position: relative !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Ensure dropdown appears above everything */
.navbar-nav .dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
}

/* Fix any potential z-index conflicts */
.navbar-nav {
    position: relative !important;
    z-index: 1001 !important;
}

/* Ensure dropdown is visible above all content */
body {
    position: relative;
    z-index: 1;
}

.container, .card, .alert {
    position: relative;
    z-index: 1;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color) !important;
}

/* Feature Icons */
.feature-icon {
    color: var(--primary-color);
}

/* Crypto Icons */
.fab.fa-bitcoin {
    color: #f7931a;
}

.fab.fa-ethereum {
    color: #627eea;
}

/* Cart Items */
.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: var(--light-color);
}

/* Order Status Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Payment Address */
.payment-address {
    font-family: 'Courier New', monospace;
    background-color: var(--light-color);
    padding: 0.5rem;
    border-radius: 5px;
    word-break: break-all;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Table Styling */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Crypto Price Display */
.crypto-prices {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.crypto-price-item {
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.crypto-price-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.crypto-symbol {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.crypto-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.crypto-price.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Print Styles */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}
