﻿:root {
    --primary-color: #004aad;
    --primary-light: #1a5bb8;
    --primary-dark: #003080;
    --secondary-color: #73c2fb;
    --accent-color: #ff6b35;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-gray: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #fff;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: .3s;
}

.main-nav {
    padding: 15px 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform .3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 10px;
}

.nav-link {
    color: rgba(255,255,255,.9) !important;
    font-weight: 500;
    padding: 12px 20px !important;
    border-radius: 8px;
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-link:hover {
        color: #fff !important;
        background: rgba(255,255,255,.1);
        transform: translateY(-2px);
    }

    .nav-link.active {
        background: rgba(255,255,255,.15);
        color: #fff !important;
    }

.dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 15px 0;
    margin-top: 10px;
    min-width: 280px;
}

.dropdown-item {
    padding: 12px 25px;
    color: var(--text-primary);
    font-weight: 500;
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .dropdown-item:hover {
        background: var(--light-gray);
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .dropdown-item i {
        width: 20px;
        color: var(--primary-color);
    }

.user-info {
    color: rgba(255,255,255,.9);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .user-info .user-drop-down {
        list-style: none;
        position: relative;
    }

    .user-info .user-menu > a {
        color: rgba(255,255,255,.9) !important;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 8px;
        transition: .3s;
        background: rgba(255,255,255,.1);
    }

        .user-info .user-menu > a:hover {
            background: rgba(255,255,255,.2);
            color: #fff !important;
        }

    .user-info .photo {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid rgba(255,255,255,.3);
    }

    .user-info .img-top-user-prifile {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .user-info .dropdown-menu {
        background: #fff;
        border: none;
        border-radius: 12px;
        box-shadow: var(--shadow-xl);
        padding: 10px 0;
        margin-top: 8px;
        min-width: 180px;
        right: 0;
        left: auto;
    }

        .user-info .dropdown-menu a {
            color: var(--text-primary) !important;
            padding: 10px 20px;
            display: block;
            text-decoration: none;
            font-weight: 500;
            transition: .2s;
        }

            .user-info .dropdown-menu a:hover {
                background: var(--light-gray);
                color: var(--primary-color) !important;
            }

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .auth-links a {
        color: rgba(255,255,255,.9) !important;
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
        transition: .2s;
    }

        .auth-links a:hover {
            color: #fff !important;
            background: rgba(255,255,255,.1);
        }

    .auth-links .register {
        background: rgba(255,255,255,.15) !important;
        color: #fff !important;
    }

        .auth-links .register:hover {
            background: rgba(255,255,255,.25) !important;
        }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-color), #ff8a65);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: .2s;
    box-shadow: var(--shadow-md);
    color: #fff;
    text-decoration: none;
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: .2s;
    box-shadow: var(--shadow-md);
    color: #fff;
    text-decoration: none;
}

    .btn-primary-custom:hover, .btn-secondary-custom:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-xl);
        color: #fff;
    }

.cta-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--dark-color), #374151);
    color: #fff;
    margin-top: 60px;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    max-width: 400px;
}

.footer-links h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

    .footer-links ul li {
        margin-bottom: 12px;
    }

        .footer-links ul li a {
            color: rgba(255,255,255,.8);
            text-decoration: none;
            transition: .2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .footer-links ul li a:hover {
                color: var(--secondary-color);
                transform: translateX(5px);
            }

.footer-bottom {
    background: rgba(0,0,0,.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

    .footer-bottom p {
        margin: 0;
        color: rgba(255,255,255,.7);
        text-align: center;
    }

/* Mobile sticky footer */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1050;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 10px;
    font-family: 'Inter',sans-serif;
}

    .mobile-sticky-footer .footer-link {
        flex: 1;
        text-align: center;
        text-decoration: none;
        font-size: 11px;
        color: var(--text-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: .2s;
    }

        .mobile-sticky-footer .footer-link i {
            font-size: 18px;
            margin-bottom: 2px;
        }

        .mobile-sticky-footer .footer-link:hover {
            color: var(--primary-color);
        }

    .mobile-sticky-footer .sell-btn {
        position: relative;
        top: -12px;
        flex: none;
        text-align: center;
    }

        .mobile-sticky-footer .sell-btn .sell-icon {
            background: var(--accent-color);
            width: 46px;
            height: 46px;
            border-radius: 50%;
            color: #fff;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 3px;
            box-shadow: var(--shadow-lg);
            transition: transform .2s;
        }

            .mobile-sticky-footer .sell-btn .sell-icon:hover {
                transform: scale(1.08);
            }

/* Responsive */
@media (min-width:768px) {
    .mobile-sticky-footer {
        display: none;
    }
}

@media (max-width:768px) {
    .main-nav {
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 35px;
    }

    .user-info {
        font-size: 13px;
        margin-bottom: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-links {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .nav-link {
        padding: 10px 15px !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
