/* navigation.css - Estilos de navegacao e product switcher */

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 3px solid #E2E8F0;
}

nav .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}

nav .logo-small {
    height: 40px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

nav a {
    text-decoration: none;
    cursor: pointer;
}

nav .container > a {
    display: inline-block;
    transition: opacity 0.2s ease;
}

nav .container > a:hover {
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
}

nav ul a:hover {
    color: var(--primary);
}

nav ul a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Product Switcher na Nav */
.product-switcher {
    display: flex;
    gap: 4px;
    background: var(--gray-bg);
    padding: 4px;
    border-radius: 8px;
}

.product-switcher button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.product-switcher button:hover {
    background: rgba(124, 58, 237, 0.1);
}

.product-switcher button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3);
}

/* Product Selector na Cover */
.product-selector-cover {
    display: flex;
    gap: 8px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.product-selector-cover button {
    padding: 12px 24px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.product-selector-cover button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.product-selector-cover button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Product Content containers */
.product-content {
    display: none;
}

.product-content.active {
    display: block;
}

/* Section Navigation (nav menu items) */
#section-nav {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

#section-nav li {
    margin: 0;
}

#section-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: 4px;
}

#section-nav a:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

#section-nav a.active {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.6);
}

#backToTop:active {
    transform: translateY(-1px);
}

#backToTop.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
