/*
 * Dudes Marketplace — Frontend Layout
 * Navigation, footer, hamburger menu, cookie banner/modal, responsive
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid #1e293b;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #fff;
}
.btn-login {
    background: #1e293b;
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff !important;
}
.btn-login:hover {
    background: #334155;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 110;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer */
footer {
    background: #0b1120;
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid #1e293b;
    margin-top: 80px;
}
footer p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}
footer .footer-contact {
    margin-top: 16px;
}
footer .footer-contact a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
    transition: color 0.2s;
}
footer .footer-contact a:hover {
    color: #60a5fa;
}

/* Footer Links */
.footer-links {
    margin-top: 16px;
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 13px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #f8fafc;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 105;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        margin-left: 0;
        font-size: 20px;
        padding: 16px 0;
    }
    footer {
        padding: 40px 5%;
        margin-top: 40px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    box-sizing: border-box;
    display: none;
}
.cookie-banner-text {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.cookie-btn-primary {
    background: #3b82f6;
    color: #fff;
}
.cookie-btn-primary:hover {
    background: #2563eb;
}
.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}
.cookie-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.cookie-modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}
.cookie-modal-header {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}
.cookie-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    text-align: left;
}
.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cookie-option-title {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}
.cookie-option-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}
