/* ============================
   INDEX.CSS
   Página Inicial - Disco Cloud 
   ============================ */

/* === SEÇÃO HERO/INTRO === */
.content{
    max-width: var(--page-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}


.intro {
    text-align: center;
    padding: 3rem var(--spacing-lg);
    background: linear-gradient(135deg, var(--gray-800), var(--gray-600));
    color: var(--text-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.8s ease;
}


.intro h1 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 5vw, 3rem);
}

.intro p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* === WELCOME MESSAGE === */
.welcome-message {
    animation: slideInDown 0.8s ease;
}

.welcome-message h1 {
    background: linear-gradient(45deg, white, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SEÇÃO DE PRODUTOS === */
.produtos {
    margin-top: var(--spacing-xl);
}

.produtos h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.produtos h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--grad-sunset);
    border-radius: 2px;
}

/* === GRID DE PRODUTOS === */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* === CARD DE PRODUTO (VINIL) === */
.produto-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
    position: relative;
    border: 1px solid var(--gray-300);
    animation: fadeIn 0.6s ease;
    animation-fill-mode: backwards;
}

.produto-card:nth-child(1) { animation-delay: 0.1s; }
.produto-card:nth-child(2) { animation-delay: 0.2s; }
.produto-card:nth-child(3) { animation-delay: 0.3s; }
.produto-card:nth-child(4) { animation-delay: 0.4s; }
.produto-card:nth-child(5) { animation-delay: 0.5s; }
.produto-card:nth-child(6) { animation-delay: 0.6s; }

.produto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grad-sunset);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: var(--gray-400);
}

.produto-card:hover::before {
    opacity: 0.05;
}

/* === IMAGEM DO PRODUTO === */
.produto-imagem {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.03);
}

/* === INFO DO PRODUTO === */
.produto-card h3 {
    padding: var(--spacing-md);
    font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(42,42,42,0.95), rgba(74,74,74,0.95));
    border-radius: 14px;
    text-align: center;
    color: aliceblue;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    font-weight: 600;
    
}

.preco {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: var(--spacing-sm) 0;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
/* === ESTADO VAZIO === */
.vazio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-100);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 2px dashed var(--gray-300);
}

.vazio i {
    font-size: 3rem;
    color: var(--gray-400);
    display: block;
    margin-bottom: 1rem;
}

.vazio p {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin: 0;
}


/* === BOTÃO ADICIONAR AO CARRINHO === */
.btn-carrinho {
    width: calc(100% - 2rem);
    margin: 0 var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
    padding: 0.95rem;
    background: var(--grad-sunset);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
}

.btn-carrinho:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.btn-carrinho:active {
    transform: scale(0.97);
}

.btn-carrinho i {
    font-size: 1rem;
}
/* === ESTADO ERRO === */
.erro {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 15px;
    border-left: 5px solid var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.erro i {
    font-size: 2.5rem;
    color: var(--gray-500);
}

.erro p {
    color: var(--gray-700);
    font-weight: 600;
    margin: 0;
    font-size: 1.05rem;
}


/* === TOAST DE NOTIFICAÇÃO === */
.toast { position: fixed; top: 100px; right: 20px; background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-500) 100%); color: white; padding: var(--spacing-md) var(--spacing-lg); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 10000; display: flex; align-items: center; gap: var(--spacing-sm); font-weight: 600; min-width: 300px; border-left: 5px solid rgba(255,255,255,0.4); animation: slideInDown 0.4s ease; }

.toast i {
    font-size: 1.5rem;
}

.toast.erro { background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-800) 100%); }

/* Hidden helper to toggle visibility without inline styles */
.toast.hidden { display: none; }

/* === RESPONSIVIDADE === */
@media (max-width: 1200px) {
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .intro {
        padding: 2rem 1.5rem;
    }
    
    .produtos h2 {
        margin-bottom: 2rem;
    }
    
    .produto-imagem {
        height: 220px;
    }
}

@media (max-height: 820px) and (min-width: 900px) {
    .intro {
        padding: 2rem var(--spacing-lg);
    }

    .produtos {
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .produto-card {
        max-width: 100%;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100% - 40px);
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .intro h1 {
        font-size: 1.8rem;
    }
    
    .preco {
        font-size: 1.5rem;
    }

    .genre-card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .genre-card {
        min-height: 140px;
        padding: 1.5rem;
    }
}

/* === BOTÕES HERO === */
.btn-login-hero, .btn-catalogo-hero {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--white);
}

.btn-login-hero {
    background: var(--white);
    color: var(--gray-800);
}

.btn-login-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    background: var(--gray-100);
}

.btn-catalogo-hero {
    background: transparent;
    color: var(--text-light);
}

.btn-catalogo-hero:hover {
    background: rgba(255,255,255,0.08);
}

/* === SEÇÃO ARTISTAS === */
.artistas-section {
    margin: 4rem 0;
}

.artistas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.artista-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.artista-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(217, 30, 63, 0.15);
}

.artista-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.artista-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artista-card h4 { 
    margin: 0;
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(42,42,42,0.9), rgba(74,74,74,0.9)); 
    padding: 0.5rem; 
    border-radius: 8px; 
    font-size: 1.1rem; }

.artista-card p { margin: 0.5rem 0 0 0; color: var(--gray-500); font-size: 0.9rem; }

/* === SEÇÃO GÊNEROS === */
.generos-section {
    margin: 4rem 0;
}

.genre-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.genre-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 160px;
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--black);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.genre-card:hover {
    transform: translateY(-4px);
    background: var(--gray-100);
    border-color: var(--black);
    box-shadow: var(--shadow-md);
}

.genre-card-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-sunset);
    color: var(--white);
    font-size: 1.25rem;
}

.genre-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    font-family: Arial, sans-serif;
}

.genre-card-title {
    font-family: Arial, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.15;
    font-weight: 700;
}

.genre-card-stats {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* === INFO DO PRODUTO === */
.produto-info {
    padding: 1rem;
    border-radius: 12px;
}

.produto-info .ano { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.produto-info .descricao { font-size: 0.9rem; color: var(--gray-600); margin: 0.5rem 0; min-height: 45px; }
