/* Estilos para o header com imagem de capa */
.header-with-cover {
    width: 100%;
    position: relative;
    height: 70vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a202c;
}

header {
    background: #f8f9fa;
    color: #2d3748;
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Raleway', sans-serif;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
}

/* Navegação no topo da imagem */
.cover-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

.cover-store-name {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1002;
}

.cover-nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.cover-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.cover-nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.cover-nav-menu a:hover {
    transform: translateY(-2px);
}

.cover-nav-menu a:hover:after {
    width: 100%;
}

.cart-badge {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu móvel */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 100px 30px 30px 30px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-menu a {
    color: white;
    text-decoration: none;
    padding: 18px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.mobile-nav-menu a:hover {
    color: #63b3ed;
    padding-left: 10px;
}

.mobile-cart-badge {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    display: block;
}

/* Conteúdo centralizado */
.header-content {
    color: white;
    max-width: 900px;
    width: 100%;
    margin: auto;
    text-align: center;
    padding: 0 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.album-description {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.5;
    opacity: 0.9;
}

.album-protected {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header principal (será escondido quando houver capa) */
body.has-cover-header header {
    display: none;
}

/* Header padrão */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4299e1;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #2b6cb0;
}

.main-nav a:hover:after {
    width: 100%;
}

/* Responsividade do Header */
@media (max-width: 968px) {
    .cover-nav-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-nav-menu {
        display: flex;
    }
    
    .header-with-cover {
        height: 60vh;
        min-height: 500px;
    }
    
    .cover-navigation {
        padding: 20px 30px;
    }
    
    .header-content h1 {
        font-size: 2.8rem;
    }
    
    .album-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-with-cover {
        height: 55vh;
        min-height: 450px;
    }
    
    .cover-navigation {
        padding: 15px 20px;
    }
    
    .cover-store-name {
        font-size: 1.6rem;
    }
    
    .header-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .album-description {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .album-protected {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin-top: 10px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -6px;
        right: -10px;
    }
    
    .mobile-nav-menu {
        width: 280px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .cover-store-name {
        font-size: 1.4rem;
    }
    
    .header-content h1 {
        font-size: 1.9rem;
    }
    
    .album-description {
        font-size: 1rem;
    }
    
    .mobile-nav-menu {
        width: 85%;
        padding: 80px 20px 20px 20px;
    }
    
    .mobile-nav-menu a {
        font-size: 1.1rem;
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 1.7rem;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 1rem;
    }
}