/*
 * style.css - LÍRIC'S & CODE'S: Dark Street Flow V6.0
 * Status: OTIMIZADO COM CORREÇÕES CRÍTICAS
 */

/* GERAL */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-light-gray: #f0f0f0;
    --color-dark-gray: #1a1a1a;
    --color-highlight: #ff0000;
    --font-primary: 'Oswald', sans-serif;
    --font-display: 'Permanent Marker', cursive;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 80px; /* Corrige scroll com header fixo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--color-black);
    color: var(--color-light-gray);
    min-height: 100vh;
    padding-top: 80px; /* Compensa header fixo */
}

a {
    color: var(--color-light-gray); 
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-highlight);
}

/* ♿ FOCO DE NAVEGAÇÃO */
a:focus, 
.cta-button:focus {
    outline: 3px solid var(--color-highlight);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 1px;
}

/* GERAL E CONTAINERS */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center; 
}

/* HEADER */
.header {
    background-color: var(--color-black); 
    color: var(--color-white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-highlight);
    transition: all 0.3s ease-in-out;
    height: 80px; /* Altura fixa para cálculo do scroll */
}

.header.scrolled {
    padding: 10px 5%;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.95);
}

.header h1 {
    font-family: var(--font-display);
    font-size: 1.8em;
    letter-spacing: 5px;
    transition: font-size 0.3s ease-in-out;
}

.header.scrolled h1 {
    font-size: 1.5em;
}

.header nav a {
    margin-left: 20px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-highlight);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-out;
}

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

/* HERO SECTION - K-DOT BACKGROUND */
.hero-section {
    background: url('imagens/kendrick-lamar-bw.jpg') no-repeat center center/cover; 
    height: calc(100vh - 80px); /* Compensa header fixo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-attachment: fixed;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(255, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.hero-content {
    color: var(--color-white);
    z-index: 2;
    text-align: center;
    margin-top: -80px; 
}

/* SUBTÍTULO RECÔNCAVO TO THE WORLD */
.hero-content p {
    font-size: 1.5em; 
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: var(--color-highlight);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* TÍTULO H2 (ESTE É O MEU MUNDO) */
.hero-content h2 {
    font-size: 5.5em; 
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-white);
    font-weight: 700;
    text-shadow: 3px 3px 0px rgba(255, 0, 0, 0.3);
    line-height: 1.1;
    width: fit-content; 
    margin-left: auto;   
    margin-right: auto;
}

/* === ESTILOS PARA O JS: TYPEWRITER EFFECT === */
#hero-title {
    border: none !important;
    padding: 0 !important;
    min-height: 1.2em; /* Previne flickering */
}

/* Estado final após digitação */
#hero-title.typed-complete {
    border: 5px solid var(--color-highlight) !important;
    padding: 10px 20px !important;
    display: inline-block !important;
}

/* Remove cursor após digitação completa */
.typed-complete .cursor {
    display: none !important;
}

/* CURSOR ANIMADO */
.cursor {
    display: inline-block;
    width: 5px;
    height: 1.1em;
    margin-left: 5px;
    background-color: var(--color-white); 
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor.typed-end {
    background-color: var(--color-highlight);
}
/* === FIM ESTILOS TYPEWRITER === */

/* BOTÃO CTA (VER PERFIL) */
.cta-button {
    background-color: var(--color-highlight);
    color: var(--color-black);
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.1em;
    border: 3px solid var(--color-highlight);
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-highlight);
    border-color: var(--color-highlight);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

/* CONTENT SECTIONS */
.content-section {
    padding: 80px 0;
    border-top: 1px solid var(--color-dark-gray); 
    
    /* ESTILOS PARA O JS: REVEAL ON SCROLL */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.secondary-bg {
    background-color: var(--color-dark-gray);
}

/* TÍTULOS DE SEÇÃO (h3) */
.content-section h3 {
    text-transform: uppercase;
    font-size: 2.5em;
    margin: 0 auto 40px auto; 
    color: var(--color-highlight);
    border-bottom: 3px solid var(--color-highlight);
    display: inline-block;
    padding-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(255, 0, 0, 0.2);
}

/* GRID DE INFORMAÇÕES PESSOAIS */
.info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.info-card {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--color-highlight);
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 5px 0px rgba(255, 0, 0, 0.2);
}

.info-card:hover {
    background: linear-gradient(135deg, #2a1a1a 0%, #100000 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 8px 8px 0px rgba(255, 0, 0, 0.3);
}

.info-card h4 {
    color: var(--color-light-gray);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.info-card p {
    font-size: 1.2em;
    font-weight: 700; 
}

/* BIOGRAFIA E NOTA MUSICAL */
.bio-text, .music-note {
    text-align: center;
    margin: 30px auto; 
    width: 80%;
    font-weight: 700;
    color: var(--color-white);
}

.bio-text {
    font-style: italic;
    font-size: 1.1em;
    border-left: 5px solid var(--color-highlight);
    padding-left: 20px;
    margin-top: 30px;
    text-align: left;
    max-width: 700px;
    margin: 30px auto;
}

.music-note {
    font-style: normal;
    font-size: 1.2em;
    color: var(--color-highlight);
    margin-top: 40px;
    border-top: 1px dashed var(--color-highlight);
    padding-top: 15px;
}

/* VÍDEOS - CORREÇÕES CRÍTICAS */
.video-section {
    background-color: var(--color-black);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px;
    margin: 0 auto 40px auto;
    max-width: 1000px; 
}

.video-item {
    background-color: var(--color-dark-gray);
    padding: 10px;
    border: 3px solid var(--color-highlight);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

/* CONTAINER DOS VÍDEOS - CORREÇÃO ESSENCIAL */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
}

.lazy-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item p {
    text-align: center;
    margin-top: 10px;
    font-size: 1em;
    font-style: italic;
    color: var(--color-light-gray);
}

.video-cta {
    display: block;
    text-align: center;
    margin-top: 20px;
    background-color: var(--color-highlight); 
    color: var(--color-black);
    border: 2px solid var(--color-highlight);
}
.video-cta:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* GOSTOS MUSICAIS */
.music-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto 30px auto;
    max-width: 900px; 
}

.artist-item {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border: 1px dashed var(--color-light-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 3px 3px 0px rgba(255, 0, 0, 0.1);
}
.artist-item:hover {
    border: 1px solid var(--color-highlight);
    transform: translateY(-3px);
    box-shadow: 5px 5px 0px rgba(255, 0, 0, 0.2);
}

.artist-item h4 {
    text-transform: uppercase;
    color: var(--color-highlight);
    margin-bottom: 5px;
}

/* FOOTER */
.footer {
    background-color: var(--color-black);
    color: var(--color-dark-gray);
    text-align: center;
    padding: 30px 0;
    border-top: 5px double var(--color-highlight);
}

.footer p:first-child {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--color-highlight);
}

.social-links a {
    margin: 0 15px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-light-gray);
}

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Ajuste para mobile */
    }
    
    .header {
        flex-direction: column;
        padding: 10px 20px;
        position: fixed;
        height: 60px;
    }
    
    .header nav {
        margin-top: 10px;
        text-align: center;
    }
    
    .header nav a {
        margin: 0 8px;
        font-size: 0.9em;
    }
    
    .hero-section {
        height: calc(100vh - 60px); /* Ajuste mobile */
        padding-top: 0;
    }
    
    .hero-content {
        margin-top: -40px; 
    }
    
    .hero-content h2 {
        font-size: 3em;
    }

    .info-grid, 
    .music-list,
    .video-grid {
        flex-direction: column;
        display: flex;
        gap: 20px;
    }
    
    .content-section h3 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .social-links a {
        display: block;
        margin: 10px 0;
    }
}