﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.plex-navbar {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .menu-toggle:hover {
        background-color: rgba(255,255,255,0.1);
    }

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar-center {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.95);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

    .search-input:focus {
        background: white;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
    }

    .search-input::placeholder {
        color: transparent;
    }

.search-placeholder {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    font-family: inherit;
}

    .search-placeholder.typing::after {
        content: '|';
        animation: blink 1s infinite;
    }

    .search-placeholder.hidden {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-btn:hover {
        background-color: rgba(255,255,255,0.15);
        transform: translateY(-1px);
    }

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 20px;
}

.shop-all-btn {
    background: white;
    color: #4CAF50;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .shop-all-btn:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        transform: translateY(-1px);
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }

    .navbar-center {
        margin: 0 15px;
        max-width: none;
    }

    .logo {
        font-size: 20px;
    }

    .search-input {
        padding: 10px 12px 10px 40px;
        font-size: 13px;
    }

    .nav-btn {
        padding: 8px;
        font-size: 16px;
    }

    .shop-all-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar-center {
        margin: 0 10px;
    }

    .navbar-right {
        gap: 10px;
    }
}

/* Demo content */
.demo-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

    .demo-content h2 {
        color: #333;
        margin-bottom: 20px;
    }

    .demo-content p {
        color: #666;
        line-height: 1.6;
    }


@media (max-width: 767.98px) {
    #searchInput,
    #searchPlaceholder {
        display: none !important;
    }

    #search-container {
        display: none !important;
    }
}