/* ========================================
   PAC-MAN CANVAS - ESTILO PRINCIPAL
   Tema Clássico Arcade dos Anos 80
   ======================================== */

/* === RESET E VARIÁVEIS === */
:root {
    /* Cores Clássicas do Pac-Man */
    --pacman-yellow: #FFFF00;
    --maze-blue: #2121DE;
    --maze-blue-dark: #1B1B9A;
    --ghost-red: #FF0000;
    --ghost-pink: #FFB8FF;
    --ghost-cyan: #00FFFF;
    --ghost-orange: #FFB852;
    --pill-white: #FFFFFF;
    --powerpill-yellow: #FFD700;
    
    /* Cores do Layout */
    --bg-black: #000000;
    --text-white: #FFFFFF;
    --text-yellow: #FFFF00;
    --border-blue: #2121DE;
    
    /* Sombras e Efeitos */
    --glow-yellow: 0 0 20px rgba(255, 255, 0, 0.8);
    --glow-blue: 0 0 15px rgba(33, 33, 222, 0.6);
    --shadow-arcade: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* === RESET GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Press Start 2P', monospace, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === CONTAINER PRINCIPAL === */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* === CONTEÚDO === */
.content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--border-blue);
    border-radius: 10px;
    box-shadow: var(--shadow-arcade), var(--glow-blue);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === TÍTULOS === */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-yellow);
    text-align: center;
    margin: 20px 0;
    text-shadow: var(--glow-yellow);
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: var(--glow-yellow);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 0, 1);
    }
}

h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--ghost-pink);
    margin: 20px 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 184, 255, 0.5);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--ghost-cyan);
    margin: 15px 0 10px 0;
    display: inline-block;
}

/* === PARÁGRAFOS E TEXTO === */
p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

a {
    color: var(--text-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted var(--text-yellow);
}

a:hover {
    color: var(--ghost-cyan);
    border-bottom-color: var(--ghost-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* === LISTAS === */
ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 10px 0;
    line-height: 1.6;
}

/* === BOTÕES === */
.button {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    background: linear-gradient(180deg, var(--maze-blue), var(--maze-blue-dark));
    color: var(--text-yellow);
    font-weight: bold;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-align: center;
    border: 2px solid var(--text-yellow);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 var(--maze-blue-dark), var(--shadow-arcade);
    user-select: none;
}

.button:hover {
    background: linear-gradient(180deg, var(--text-yellow), var(--powerpill-yellow));
    color: var(--bg-black);
    border-color: var(--bg-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--maze-blue-dark), 
                0 8px 20px rgba(255, 255, 0, 0.5);
}

.button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--maze-blue-dark), var(--shadow-arcade);
}

/* === IMAGENS === */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

img.pull-right {
    float: right;
    margin-left: 20px;
    max-width: 80px;
}

/* === UTILIDADES === */
.nomobile {
    display: block;
}

.mobile {
    display: none;
}

.app-version {
    color: var(--ghost-cyan);
    font-weight: bold;
}

/* === NOSCRIPT === */
noscript {
    display: block;
    padding: 30px;
    background-color: var(--ghost-red);
    color: var(--text-white);
    text-align: center;
    font-size: 1.2rem;
    border: 3px solid var(--text-white);
    margin: 20px;
}

noscript h2 {
    color: var(--text-white);
    margin-bottom: 15px;
}

/* === ADSENSE === */
#adsense {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: rgba(33, 33, 222, 0.1);
    border: 1px dashed var(--border-blue);
    border-radius: 5px;
}

/* === RESPONSIVIDADE === */
@media screen and (max-width: 768px) {
    .nomobile {
        display: none;
    }
    
    .mobile {
        display: block;
    }
    
    .main {
        padding: 10px;
    }
    
    .content {
        padding: 15px;
        border-width: 2px;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 5px;
    }
    
    img.pull-right {
        float: none;
        margin: 10px auto;
        max-width: 60px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    p, li {
        font-size: 0.85rem;
    }
}

/* === ANIMAÇÕES ARCADE === */
@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1s infinite;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-black);
    border-left: 2px solid var(--border-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--maze-blue);
    border-radius: 6px;
    border: 2px solid var(--bg-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-yellow);
}
