/* ===== CYBERPUNK GLOBAL STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-cyan: #00ffff;
    --accent-purple: #8b00ff;
    --accent-pink: #ff00ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: rgba(26, 26, 46, 0.8);
    --glow-effect: 0 0 20px rgba(0, 255, 255, 0.3);
    --border-cyber: 1px solid rgba(0, 255, 255, 0.2);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== ANIMATED BACKGROUND ===== */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 0, 255, 0.05) 0%, transparent 100%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* ===== NAVIGATION ===== */
.cyber-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-cyan);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* ===== BIG JOKE BRAND SECTION ===== */
.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.big-joke-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 25%;
    border: 4px solid rgb(10, 209, 176);
    background: rgb(255, 255, 255);
    padding: 3px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    transition: all 0.3s ease;
}

.avatar-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    opacity: 0.6;
    z-index: 1;
    animation: avatarPulse 2s ease-in-out infinite alternate;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    text-decoration: none;
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.sub-brand {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-shadow: 0 0 12px var(--accent-purple), 0 0 24px var(--accent-purple);
    letter-spacing: 3px;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Big Joke Avatar Animations */
@keyframes avatarPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 25px rgba(139, 0, 255, 0.6);
        transform: scale(1.02);
    }
}

/* Hover Effects for Big Joke Avatar */
.big-joke-avatar:hover {
    transform: scale(1.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 25px rgba(139, 0, 255, 0.8);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(200, 200, 255, 0.3));
}

.big-joke-avatar:hover .avatar-img {
    filter: brightness(1.3) contrast(1.4) saturate(1.3);
    transform: scale(1.05);
}

.big-joke-avatar:hover .avatar-glow {
    animation-duration: 0.8s;
    opacity: 0.9;
}

/* Brand Section Hover Effects */
.brand-section:hover .logo {
    color: var(--accent-purple);
    text-shadow: 0 0 20px var(--accent-purple), 0 0 40px var(--accent-purple);
    transform: translateX(5px);
}

.brand-section:hover .sub-brand {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    letter-spacing: 4px;
    transform: translateX(5px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== MAIN CONTENT ===== */
.cyber-main {
    margin-top: 140px;  /* Increased for larger navbar */
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HERO SECTIONS ===== */
.cyber-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(139, 0, 255, 0.1));
    border-radius: 20px;
    margin-bottom: 3rem;
    border: var(--border-cyber);
}

.cyber-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.cyber-hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.cyber-btn {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: var(--primary-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.cyber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
    color: var(--primary-bg);
    text-decoration: none;
}

.cyber-btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.cyber-btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--primary-bg);
    box-shadow: var(--glow-effect);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== CARDS ===== */
.cyber-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: var(--border-cyber);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cyber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: var(--accent-cyan);
}

.cyber-card-header {
    padding: 1.5rem;
    border-bottom: var(--border-cyber);
}

.cyber-card-body {
    padding: 1.5rem;
}

.cyber-card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

/* ===== PRODUCT GRID ===== */
.cyber-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cyber-product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: var(--border-cyber);
    transition: all 0.3s ease;
    position: relative;
}

.cyber-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: var(--accent-cyan);
}

.cyber-product-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cyber-product-image::before {
    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="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.cyber-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
}

.cyber-product-info {
    padding: 1.5rem;
}

.cyber-product-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.cyber-product-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cyber-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

/* ===== FORMS ===== */
.cyber-form-group {
    margin-bottom: 1.5rem;
}

.cyber-form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cyber-form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--card-bg);
    border: var(--border-cyber);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.cyber-form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
    background: rgba(26, 26, 46, 0.9);
}

.cyber-form-select {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%2300ffff" d="M8 13L3 8h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px;
    appearance: none;
}

/* ===== TABLES ===== */
.cyber-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: var(--border-cyber);
}

.cyber-table th {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: var(--primary-bg);
    padding: 1rem;
    font-weight: 700;
    text-align: left;
}

.cyber-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

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

/* ===== ALERTS ===== */
.cyber-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid;
    position: relative;
    transition: all 0.3s ease;
}

.cyber-alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.cyber-alert-error {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

.cyber-alert-info {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.cyber-alert-warning {
    background: rgba(255, 255, 0, 0.1);
    border-color: #ffff00;
    color: #ffff00;
}

.cyber-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ===== PAGINATION ===== */
.cyber-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.cyber-pagination .page-link {
    background: var(--card-bg);
    border: var(--border-cyber);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cyber-pagination .page-link:hover {
    background: var(--accent-cyan);
    color: var(--primary-bg);
    box-shadow: var(--glow-effect);
}

.cyber-pagination .page-link.active {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: var(--primary-bg);
}

/* ===== FOOTER ===== */
.cyber-footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 2px solid var(--accent-cyan);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* ===== FOOTER BIG JOKE SECTION ===== */
.footer-brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-avatar {
    width: 60px;
    height: 60px;
    position: relative;
}

.footer-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 25%;
    border: 2px solid var(--accent-cyan);
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgb(255, 255, 255);
    padding: 2px;
}

.footer-avatar:hover .footer-avatar-img {
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px var(--accent-cyan);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.footer-sub-brand {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-shadow: 0 0 6px var(--accent-purple);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.3;
}

.footer-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    align-items: start !important;
}

.footer-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer-section h4 {
    color: var(--accent-purple) !important;
    margin-bottom: 0.8rem !important;
    margin-top: 0 !important;
    font-family: 'Orbitron', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    width: 100% !important;
}

.footer-section ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-section ul li {
    margin-bottom: 0.5rem !important;
}

.footer-section ul li a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.85rem !important;
    font-family: 'Rajdhani', sans-serif !important;
}

.footer-section ul li a:hover {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

/* Admin Footer Section Styling */
.footer-section:last-child h4 {
    color: var(--accent-purple);
    text-shadow: 0 0 8px var(--accent-purple);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

.footer-section:last-child a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

.footer-section:last-child a:hover {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-secondary);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

.footer-bottom a:hover {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

.footer-bottom a:visited {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

.footer-bottom a:link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== TABLET STYLES ===== */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .big-joke-avatar {
        width: 80px;
        height: 80px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .cyber-main {
        margin-top: 200px;
        padding: 1.5rem 0;
    }
    
    .cyber-hero h1 {
        font-size: 2.8rem;
    }
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }

    .brand-section {
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .big-joke-avatar {
        width: 70px;
        height: 70px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .sub-brand {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .brand-text {
        align-items: center;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Increased margin to account for stacked navbar with avatar + nav links */
    .cyber-main {
        margin-top: 300px !important;
        padding: 1rem 0;
    }
    
    /* Container padding adjustments */
    .container {
        padding: 0 1rem;
    }

    .cyber-hero {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }

    .cyber-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .cyber-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cyber-product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer adjustments */
    .footer-brand-section {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .footer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-sub-brand {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ===== SMALL MOBILE STYLES ===== */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem;
        gap: 1rem;
    }
    
    .big-joke-avatar {
        width: 60px;
        height: 60px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .sub-brand {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Even more margin for very small screens */
    .cyber-main {
        margin-top: 280px !important;
        padding: 0.8rem 0;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .cyber-hero {
        padding: 1.5rem 0.8rem;
    }

    .cyber-hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .cyber-hero p {
        font-size: 0.9rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== GLOW EFFECTS ===== */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--accent-cyan); }
    to { text-shadow: 0 0 20px var(--accent-cyan), 0 0 30px var(--accent-cyan); }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }