/* Estilo de Álbum de Figurinhas */
:root {
    --album-background: #0f172a;
    --album-border: #334155;
    --album-page-color: rgba(17, 24, 39, 0.7);
    --sticker-border: #334155;
    --sticker-shadow: rgba(0, 0, 0, 0.6);
    --album-text: #e5e7eb;
}

body {
    background: radial-gradient(1200px 600px at 20% 0%, rgba(59,130,246,0.25), transparent 60%),
                radial-gradient(800px 400px at 90% 10%, rgba(16,185,129,0.25), transparent 60%),
                linear-gradient(180deg, #0f172a, #111827);
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
    color: var(--album-text);
}

/* Estilo do Álbum */
.album-container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: var(--album-page-color);
    border: 15px solid var(--album-border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.album-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23d4af37" stroke-width="0.5"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.album-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--album-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Correção para o header */
h1, h2, h3, h4, h5, h6, .header-text {
    color: var(--album-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Estilo das Figurinhas */
.sticker-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sticker {
    background-color: #111827;
    border: 5px solid var(--sticker-border);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px var(--sticker-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sticker:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px var(--sticker-shadow);
    z-index: 10;
}

.sticker img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.sticker-name {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.sticker.missing {
    background-color: #1f2937;
    border-color: #334155;
    opacity: 0.7;
}

.sticker.missing::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #999;
}

/* Efeito de Página */
.album-page {
    position: relative;
    margin-bottom: 50px;
    padding: 20px;
    background-color: var(--album-page-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.album-page::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--album-page-color);
    border-radius: 0 0 10px 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    transform: rotate(45deg);
    z-index: -1;
}

/* Botões estilizados */
.album-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.album-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Animação para abrir pacotes */
@keyframes openPack {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
}

.pack-opening {
    animation: openPack 0.5s ease-in-out;
}

/* Animação para colar figurinha */
@keyframes stickIt {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.sticker-new {
    animation: stickIt 0.7s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .album-container {
        padding: 15px;
        border-width: 10px;
    }
    
    .sticker-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .album-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .sticker-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .sticker {
        border-width: 3px;
    }
    
    .album-title {
        font-size: 1.5rem;
    }
}

/* Cabeçalho padronizado */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.site-header .brand-title { 
    color: #e5e7eb; 
    font-weight: 800; 
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.05em;
}

.site-header a { color: #cbd5e1; text-decoration: none; }
.site-header a:hover { color: #93c5fd; }
.site-header .user-coins { background: #f59e0b; color: #1f2937; border-radius: 9999px; padding: 0.125rem 0.5rem; font-weight: 700; }

/* Ícone do header com animação */
.header-icon-wrapper {
    transition: transform 0.3s ease;
}

.header-icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Botão do menu do usuário melhorado */
.user-menu-btn {
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.user-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.user-menu-btn:active {
    transform: translateY(0);
}

/* Barra de navegação melhorada */
.nav-bar {
    position: sticky;
    top: 0;
    margin-top: -1px;
}

.nav-button {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.5);
}

.nav-button:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-button:active {
    transform: translateY(0);
}

/* Animação de brilho no fundo do header */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

/* Animação de pulse para o gradiente de fundo */
@keyframes pulse-gradient {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Responsividade para o header */
@media (max-width: 640px) {
    .site-header .brand-title {
        font-size: 1.25rem;
        letter-spacing: 0.02em;
    }
    
    .header-icon-wrapper {
        transform: scale(0.9);
    }
    
    .user-menu-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .nav-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .nav-button span {
        display: none;
    }
    
    .nav-button i {
        margin-right: 0;
    }
}