/*
Theme Name: Mucura Y2K
Theme URI: https://github.com/adriel/arquivo-mucura
Author: Adriel
Author URI: https://github.com/adriel
Description: Tema retro estilo anos 2000 com estética Y2K - colagens, dark mode, cinema, esporte e cultura. Inspirado na mucura brasileira.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mucura-y2k
Tags: dark, retro, y2k, blog, portfolio
*/

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores Mucura - Terrosas e Cinzas */
    --bg-primary: #1a1714;          /* Marrom escuro (pelo da mucura) */
    --bg-secondary: #2a2520;        /* Marrom médio */
    --bg-card: #1f1c18;             /* Cartões */
    
    /* Cores da Mucura */
    --mucura-gray: #8b8178;         /* Cinza do pelo */
    --mucura-cream: #d4c8b8;        /* Creme/branco da face */
    --mucura-brown: #5c4d3d;        /* Marrom terroso */
    --mucura-dark: #3d3530;         /* Marrom escuro */
    --mucura-pink: #d4a5a5;         /* Rosa do focinho */
    --mucura-nose: #e8b4b4;         /* Rosa claro */
    
    /* Acentos Y2K (mais suaves) */
    --accent-warm: #c9a86c;         /* Dourado terroso */
    --accent-cool: #7a9e9f;         /* Verde-cinza */
    --accent-pink: #b88b8b;         /* Rosa terroso */
    
    /* Texto */
    --text-primary: #e8e0d5;        /* Creme claro */
    --text-secondary: #a89f94;      /* Cinza-bege */
    --text-muted: #6b6259;          /* Cinza terroso */
    
    /* Bordas */
    --border-main: 2px solid var(--mucura-gray);
    --border-dashed: 2px dashed var(--mucura-cream);
    
    /* Sombras */
    --shadow-warm: 0 0 15px rgba(201, 168, 108, 0.3);
    --shadow-glow: 0 0 10px rgba(212, 200, 184, 0.2);
    
    /* Fontes */
    --font-pixel: "Press Start 2P", "Courier New", monospace;
    --font-impact: Impact, "Arial Black", sans-serif;
    --font-body: "Trebuchet MS", "Comic Sans MS", sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    
    /* Background pattern terroso */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(201, 168, 108, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 129, 120, 0.03) 0%, transparent 50%);
}

/* ================================
   TIPOGRAFIA 
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-impact);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--mucura-cream);
    text-shadow: 
        3px 3px 0 var(--mucura-brown),
        -1px -1px 0 var(--mucura-gray);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--mucura-cream);
    text-shadow: 2px 2px 0 var(--bg-primary);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-warm);
}

a {
    color: var(--accent-warm);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--mucura-cream);
    text-shadow: var(--shadow-glow);
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* ================================
   BOTÕES
   ================================ */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 2px solid var(--mucura-cream);
    background: transparent;
    color: var(--mucura-cream);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--mucura-cream);
    color: var(--bg-primary);
    box-shadow: var(--shadow-warm);
    transform: scale(1.05);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* ================================
   CARDS
   ================================ */
.card {
    background: var(--bg-card);
    border: var(--border-dashed);
    padding: var(--space-md);
    position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-warm);
    transform: rotate(-1deg) scale(1.02);
    box-shadow: var(--shadow-warm);
}

/* Estilo Polaroid */
.card-polaroid {
    background: var(--mucura-cream);
    padding: var(--space-sm);
    padding-bottom: var(--space-xl);
    border: none;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    transform: rotate(-2deg);
}

.card-polaroid img {
    width: 100%;
    display: block;
}

.card-polaroid .caption {
    font-family: var(--font-body);
    color: var(--mucura-dark);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
}

/* ================================
   EFEITOS ESPECIAIS
   ================================ */

/* Glitch effect (mais suave) */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.4s infinite;
    color: var(--accent-cool);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.4s infinite;
    color: var(--accent-pink);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(30% 0 60% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, -2px); }
    20% { clip-path: inset(60% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(20% 0 60% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(80% 0 10% 0); transform: translate(2px, -2px); }
}

/* Blink text */
.blink {
    animation: blink 1s step-end infinite;
}

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

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    background: var(--mucura-brown);
    color: var(--mucura-cream);
    padding: var(--space-xs) 0;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
}

.marquee span {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================================
   MUCURA DECORATIVA
   ================================ */
.mucura-icon {
    font-size: 2rem;
    filter: grayscale(30%);
}

.mucura-float {
    animation: mucura-float 4s ease-in-out infinite;
}

@keyframes mucura-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ================================
   RESPONSIVIDADE
   ================================ */
@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 0.65rem;
        padding: var(--space-xs) var(--space-md);
    }
}
