/* ========================================
   VARIÁVEIS E RESET
   ======================================== */
:root {
    --purpura: #7b2d8e;
    --purpura-escuro: #5a1f6b;
    --purpura-claro: #9d4ead;
    --rosa-bebe: #ffd4d8;
    --azul-bebe: #b3d9ff;
    --amarelo-suave: #fff4b3;
    --verde-suave: #c8e6c9;
    --laranja-suave: #ffccbc;
    --branco: #ffffff;
    --cinza-claro: #f5f5f5;
    --texto-escuro: #333333;
    --sombra-padrao: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sombra-forte: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Fredoka', 'Comic Neue', 'Baloo 2', cursive, sans-serif;
    background: linear-gradient(135deg, var(--rosa-bebe) 0%, var(--azul-bebe) 50%, var(--amarelo-suave) 100%);
    background-attachment: fixed;
    color: var(--texto-escuro);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ========================================
   CABEÇALHO / HEADER
   ======================================== */
.site-header {
    background: linear-gradient(135deg, var(--purpura) 0%, var(--purpura-escuro) 100%);
    color: var(--branco);
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    box-shadow: var(--sombra-forte);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.site-logo {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, var(--rosa-bebe), #ffffff, var(--amarelo-suave));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: gradient-shift 5s ease infinite;
    position: relative;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.heart-icon, .star-icon {
    font-size: 2rem;
    color: var(--rosa-bebe);
    animation: pulse-icon 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 212, 216, 0.6));
}

.star-icon {
    color: var(--amarelo-suave);
    animation-delay: 1s;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.site-tagline {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--amarelo-suave);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-tagline i {
    margin: 0 0.5rem;
    color: var(--branco);
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */
.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--branco);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--sombra-padrao);
}

.main-nav a:hover {
    background: var(--branco);
    color: var(--purpura);
    border-color: var(--rosa-bebe);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--sombra-forte);
    text-decoration: none;
}

.main-nav i {
    margin-right: 0.5rem;
}

/* ========================================
   DECORAÇÕES DO CABEÇALHO E RODAPÉ
   ======================================== */
.header-decoration, .footer-decoration {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.header-decoration i, .footer-decoration i {
    animation: float 3s ease-in-out infinite;
}

.header-decoration i:nth-child(2), .footer-decoration i:nth-child(2) {
    animation-delay: 1s;
}

.header-decoration i:nth-child(3), .footer-decoration i:nth-child(3) {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */
.site-content {
    min-height: calc(100vh - 400px);
    padding: 2rem 1rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: var(--sombra-forte);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
}

h2 {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 2.5rem;
    color: var(--purpura);
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--purpura), transparent);
    border-radius: 2px;
}

/* ========================================
   TEXTO DE BOAS-VINDAS
   ======================================== */
.welcome-text {
    padding: 2rem;
    background: linear-gradient(135deg, var(--rosa-bebe) 0%, var(--azul-bebe) 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 3px solid var(--purpura);
    box-shadow: var(--sombra-padrao);
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
}

.welcome-text p {
    margin-bottom: 1rem;
}

.welcome-text strong {
    color: var(--purpura);
    font-weight: 700;
}

/* ========================================
   GALERIA DE VÍDEOS
   ======================================== */
.playlist-container {
    margin-top: 2rem;
}

.youtube-gridlist-view {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra-forte);
}

.main-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--texto-escuro);
}

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

.playlist-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-item {
    background: var(--branco);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-padrao);
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--sombra-forte);
    border: 3px solid var(--purpura);
}

.video-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumb {
    transform: scale(1.1);
}

.video-item h5 {
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--purpura);
    font-weight: 600;
    text-align: center;
}

.video-item h6 {
    padding: 0 0.8rem 0.8rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* ========================================
   PAGINAÇÃO
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background: var(--branco);
    color: var(--purpura);
    text-decoration: none;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    border: 3px solid var(--purpura);
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
    box-shadow: var(--sombra-padrao);
}

.pagination a:hover {
    background: var(--purpura);
    color: var(--branco);
    transform: scale(1.1);
    box-shadow: var(--sombra-forte);
    text-decoration: none;
}

.pagination a.active {
    background: var(--purpura);
    color: var(--branco);
    transform: scale(1.15);
}

/* ========================================
   RODAPÉ / FOOTER
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--purpura) 0%, var(--purpura-escuro) 100%);
    color: var(--branco);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-verse {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.footer-verse i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--amarelo-suave);
}

.verse-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: var(--branco);
}

.verse-reference {
    font-weight: 700;
    color: var(--amarelo-suave);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.footer-copyright {
    margin: 1.5rem 0;
    font-size: 1rem;
}

.footer-copyright p {
    margin: 0.5rem 0;
}

.footer-love {
    font-style: italic;
    color: var(--rosa-bebe);
}

.footer-love i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--branco);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--branco);
    color: var(--purpura);
    border-color: var(--rosa-bebe);
    transform: translateY(-5px) rotate(360deg);
    text-decoration: none;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .site-logo {
        font-size: 2.5rem;
        padding: 0.4rem 1rem;
    }
    
    .heart-icon, .star-icon {
        font-size: 1.5rem;
    }
    
    .site-tagline {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .welcome-text {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
    }
    
    .playlist-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 2rem;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .verse-text {
        font-size: 1rem;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ========================================
   ANIMAÇÕES EXTRAS
   ======================================== */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    animation: slideInFromTop 0.6s ease-out;
}

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

.container {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--purpura) 0%, var(--purpura-escuro) 100%);
    color: var(--branco);
    border: 3px solid var(--rosa-bebe);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(123, 45, 142, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--purpura-escuro) 0%, var(--purpura) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(123, 45, 142, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Responsividade do botão */
@media (max-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
}
