/* Variables pentru teme */
:root {
    --bg-color: #ffffff;
    --text-color: #2d3748;
    --primary-color: #667eea;
    --primary-hover: #764ba2;
    --secondary-color: #718096;
    --card-bg: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #1a202c;
    --text-color: #e2e8f0;
    --primary-color: #667eea;
    --primary-hover: #764ba2;
    --secondary-color: #a0aec0;
    --card-bg: #2d3748;
    --border-color: #4a5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Font */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color, #ffffff);
    color: var(--text-color, #2d3748);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-hover, #764ba2) 100%);
    box-shadow: var(--shadow, 0 4px 6px rgba(0, 0, 0, 0.07));
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cart-link {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.2rem !important;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Custom Language Selector */
.lang-selector-custom {
    position: relative;
}

.lang-selected {
    width: 40px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lang-selected:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg, #f7fafc);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    z-index: 1002;
}

.lang-dropdown.active {
    display: flex;
}

.lang-option {
    width: 40px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lang-option:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

/* Flag Icons */
.flag-icon {
    width: 28px;
    height: 20px;
    border-radius: 2px;
    display: inline-block;
    background-size: cover;
    background-position: center;
}

/* Romania */
.flag-icon[data-flag="ro"] {
    background: linear-gradient(to right, #002B7F 33%, #FCD116 33%, #FCD116 66%, #CE1126 66%);
}

/* USA */
.flag-icon[data-flag="us"] {
    background: #B22234;
    position: relative;
}

.flag-icon[data-flag="us"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
            to bottom,
            #ffffff 0%,
            #ffffff 7.69%,
            #B22234 7.69%,
            #B22234 15.38%
    );
}

.flag-icon[data-flag="us"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 53.85%;
    background: #3C3B6E;
}

/* France */
.flag-icon[data-flag="fr"] {
    background: linear-gradient(to right, #002395 33%, #ffffff 33%, #ffffff 66%, #ED2939 66%);
}

/* Germany */
.flag-icon[data-flag="de"] {
    background: linear-gradient(to bottom, #000000 33%, #DD0000 33%, #DD0000 66%, #FFCC00 66%);
}

/* Spain */
.flag-icon[data-flag="es"] {
    background: linear-gradient(to bottom, #AA151B 25%, #F1BF00 25%, #F1BF00 75%, #AA151B 75%);
}

/* Theme Toggle */
#theme-toggle {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Main content */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-hover, #764ba2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    padding: 3rem 2rem;
    background: var(--card-bg, #f7fafc);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color, #2d3748);
    transition: all 0.4s;
    box-shadow: var(--shadow, 0 4px 6px rgba(0, 0, 0, 0.07));
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--primary-hover, #764ba2) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
    border-color: var(--primary-color, #667eea);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card h2 {
    color: var(--primary-color, #667eea);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-card p {
    color: var(--secondary-color, #718096);
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding: 2.5rem 0;
    background: var(--card-bg, #f7fafc);
    border-top: 2px solid var(--border-color, #e2e8f0);
    text-align: center;
    color: var(--secondary-color, #718096);
}

footer p {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--card-bg, #f7fafc);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.1));
        padding: 2rem 0;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        color: var(--text-color, #2d3748);
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    main {
        padding: 2rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.4rem;
    }

    .nav-actions {
        gap: 0.3rem;
    }
}