/* Variáveis e Estilos Base */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --card-bg: #f8fafc;
    --hover-color: #6366f1;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --primary-hover: #4338ca;
    --code-bg: #f1f5f9;
    --border-color: #e2e8f0;
}

/* Layout base */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Cards da página inicial */
.category-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.category-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.category-description {
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

.category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    gap: 0.5rem;
    width: fit-content;
}

.category-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3);
}

.category-button i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.category-button:hover i {
    transform: translateX(4px);
}

/* Header e Footer */
.header {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

/* Estilos da barra de pesquisa */
.search-container {
    margin: 24px auto;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 24px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    background-color: var(--background);
    transition: all 0.3s ease;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: var(--primary-color);
}

/* Estilos compartilhados para blocos de código */
.code-block {
    display: none;
    background: var(--surface-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.code-block code {
    display: block;
    overflow-x: auto;
}

.code-block h4 {
    margin: 10px 0 5px;
    color: var(--text-primary);
    font-size: 14px;
}

.code-block h4:first-child {
    margin-top: 0;
}

.code-block::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-block::-webkit-scrollbar-track {
    background: var(--surface-primary);
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-dark);
}

.code-block.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.code-block pre {
    margin: 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.code-block code {
    color: var(--text-primary);
}

/* Botão Ver Código */
.ver-codigo {
    background: var(--background);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ver-codigo:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

/* Links */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-4px);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos base para demonstração de efeitos */
.demo-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* Estilos para a página de botões */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.effect-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.effect-card h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.effect-demo {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
}

/* Botão */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin: 5px;
}

/* Demo Buttons Base Styles */
.demo-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* Efeito 3D Push */
.btn-3d {
    background: #2ecc71;
    color: white;
    box-shadow: 0 5px #27ae60;
    transform: translateY(0);
    transition: transform 0.1s, box-shadow 0.1s;
    border: none;
}
.btn-3d:hover {
    box-shadow: 0 3px #27ae60;
    transform: translateY(2px);
}
.btn-3d:active {
    box-shadow: 0 0 #27ae60;
    transform: translateY(5px);
}

/* Efeito Ripple */
.btn-ripple {
    background: #3498db;
    color: white;
    border: none;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}
.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Efeito Neon Pulse */
.btn-neon-pulse {
    background: transparent;
    color: #ff00ff;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 5px #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    transition: all 0.3s;
}
.btn-neon-pulse:hover {
    animation: neonPulse 1.5s infinite;
    background: rgba(255, 0, 255, 0.1);
}

/* Efeito Shake */
.btn-shake {
    background: #e74c3c;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-shake:hover {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both infinite;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Efeito Split */
.btn-split {
    background: #9b59b6;
    color: white;
    border: none;
}
.btn-split::before,
.btn-split::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: rgba(142, 68, 173, 0.2);
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}
.btn-split::before {
    left: 0;
    transform-origin: left;
}
.btn-split::after {
    right: 0;
    transform-origin: right;
}
.btn-split:hover::before,
.btn-split:hover::after {
    transform: scaleX(1);
}

/* Efeito Gradient Border */
.btn-gradient-border {
    color: #2c3e50;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff0000, #00ff00, #0000ff) 1;
    background: white;
    transition: transform 0.3s;
}
.btn-gradient-border:hover {
    transform: scale(1.05);
}

/* Efeito Bubble */
.btn-bubble {
    background: #8e44ad;
    color: white;
    border: none;
}
.btn-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}
.btn-bubble:hover::before {
    width: 300px;
    height: 300px;
}

/* Efeito Diagonal Swipe */
.btn-diagonal-swipe {
    background: #c0392b;
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-diagonal-swipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 50%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.2) 100%
    );
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-diagonal-swipe:hover::before {
    left: 0;
    transform: translateX(100%);
}

/* Efeito Scale Up */
.btn-scale-up {
    background: #16a085;
    color: white;
    border: none;
    transform: scale(1);
    transition: transform 0.3s;
}
.btn-scale-up:hover {
    transform: scale(1.1);
}

/* Efeito Glow */
.btn-glow {
    background: #2980b9;
    color: white;
    border: none;
    transition: box-shadow 0.3s;
}
.btn-glow:hover {
    box-shadow: 0 0 20px #2980b9;
}

/* Efeito Highlight */
.btn-highlight {
    background: #f39c12;
    color: white;
    border: none;
}
.btn-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-highlight:hover::before {
    transform: translateX(100%);
}

/* Efeito Glitch */
.btn-glitch {
    background: #7f8c8d;
    color: white;
    border: none;
}
.btn-glitch:hover {
    animation: glitch 0.3s infinite;
}

/* Efeito Text Scramble */
.btn-text-scramble {
    background: #27ae60;
    color: white;
    border: none;
}
.btn-text-scramble:hover {
    animation: textScramble 0.5s;
}

/* Efeito Slide Split */
.btn-slide-split {
    background: #c0392b;
    color: white;
    border: none;
}
.btn-slide-split::before,
.btn-slide-split::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    background: rgba(255,255,255,0.1);
    transition: transform 0.3s ease-out;
}
.btn-slide-split::before {
    left: 0;
    transform: translateX(-100%);
}
.btn-slide-split::after {
    right: 0;
    transform: translateX(100%);
}
.btn-slide-split:hover::before {
    transform: translateX(0);
}
.btn-slide-split:hover::after {
    transform: translateX(0);
}

/* Efeito Circuit */
.btn-circuit {
    background: #2c3e50;
    color: white;
    border: 2px solid #3498db;
    overflow: visible;
}
.btn-circuit::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db 50%, transparent 50%);
    z-index: -1;
    transform: scale(0);
    transform-origin: 0 100%;
    transition: transform 0.3s ease;
}
.btn-circuit:hover::before {
    transform: scale(1);
}

/* Efeito Jelly */
.btn-jelly {
    transition: transform 0.3s ease;
}

.btn-jelly:hover {
    animation: jelly 0.5s;
}

@keyframes jelly {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(0.95, 1.05); }
    50% { transform: scale(1.05, 0.95); }
    75% { transform: scale(0.98, 1.02); }
}

/* Efeito Elastic */
.btn-elastic {
    transition: all 0.3s ease;
}

.btn-elastic:hover {
    animation: elastic 0.8s ease;
}

@keyframes elastic {
    0% { transform: scale(1); }
    30% { transform: scaleX(1.15) scaleY(0.9); }
    60% { transform: scaleX(0.95) scaleY(1.05); }
    100% { transform: scale(1); }
}

/* Efeito Flip */
.btn-flip {
    perspective: 1000px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.btn-flip:hover {
    transform: rotateY(180deg);
}

/* Efeito Rainbow */
.btn-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    background-size: 700% 100%;
    animation: rainbow 6s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Efeito Scale Up */
.btn-scale-up {
    transition: transform 0.3s ease;
}

.btn-scale-up:hover {
    transform: scale(1.1);
}

/* Efeito Shockwave */
.btn-shockwave {
    position: relative;
    overflow: hidden;
}

.btn-shockwave:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: shockwave 0.6s ease-out;
}

@keyframes shockwave {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Efeito Border Draw */
.btn-border-draw {
    position: relative;
    border: none;
    background: none;
}

.btn-border-draw::before,
.btn-border-draw::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.btn-border-draw::before { top: 0; left: 0; }
.btn-border-draw::after { bottom: 0; right: 0; }

.btn-border-draw:hover::before,
.btn-border-draw:hover::after {
    width: 100%;
}

/* Efeito Text Reveal */
.btn-text-reveal {
    position: relative;
    overflow: hidden;
}

.btn-text-reveal span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-text-reveal:hover span {
    transform: translateY(-100%);
}

.btn-text-reveal::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn-text-reveal:hover::after {
    transform: translateY(0);
}

/* Efeito Ghost */
.btn-ghost {
    background: transparent;
    color: #4caf50;
    border: 2px solid #4caf50;
}

.btn-ghost:hover {
    background: #4caf50;
    color: var(--background) !important;
}

/* Efeito Shadow Pulse */
.btn-shadow-pulse {
    animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Efeito Neon Border */
.btn-neon-border {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color),
                0 0 10px var(--primary-color),
                0 0 20px var(--primary-color);
    animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
    from { box-shadow: 0 0 5px var(--primary-color),
                      0 0 10px var(--primary-color),
                      0 0 20px var(--primary-color); }
    to { box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color),
                    0 0 30px var(--primary-color); }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    display: none;
}

/* Efeito Shine */
.btn-shine {
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.5s;
}
.btn-shine:hover::after {
    transform: rotate(30deg) translate(100%, -100%);
}

/* Efeito Glitch */
.btn-glitch {
    background: #2d3436;
    color: white;
    border: none;
    position: relative;
}
.btn-glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Efeito Magnetic */
.btn-magnetic {
    background: #6c5ce7;
    color: white;
    border: none;
    transition: transform 0.3s ease;
}
.btn-magnetic:hover {
    transform: translate(var(--mx, 0), var(--my, 0));
}

/* Efeito Double Layer */
.btn-double-layer {
    background: #e17055;
    color: white;
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
}

.btn-double-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d63031;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-double-layer:hover {
    color: #fff;
}

.btn-double-layer:hover::before {
    transform: scaleY(1);
    transform-origin: bottom;
}

/* Efeito Liquid */
.btn-liquid {
    background: #0984e3;
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-liquid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40%;
    transform: translate(-50%, -50%) rotate(0);
    animation: liquid-spin 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-liquid:hover::before {
    opacity: 1;
}
@keyframes liquid-spin {
    from {
        transform: translate(-50%, -50%) rotate(0);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Efeito Outline Fill */
.btn-outline-fill {
    background: transparent;
    color: #00b894;
    border: 2px solid #00b894;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}
.btn-outline-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00b894;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.btn-outline-fill:hover {
    color: white;
}
.btn-outline-fill:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Efeito Rotate */
.btn-rotate {
    background: #fd79a8;
    color: white;
    border: none;
    transition: transform 0.3s ease;
}
.btn-rotate:hover {
    transform: rotate(360deg);
}

/* Efeito Bounce */
.btn-bounce {
    background: #6c5ce7;
    color: white;
    border: none;
    animation: bounce-ready 1s infinite;
}
@keyframes bounce-ready {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
.btn-bounce:hover {
    animation: bounce 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Efeito Swipe */
.btn-swipe {
    background: #e056fd;
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-swipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #be2edd;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}
.btn-swipe:hover::before {
    transform: translateX(0);
}

/* Efeito Slice */
.btn-slice {
    background: #2d3436;
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-slice::before,
.btn-slice::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 50%;
    background: #636e72;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.btn-slice::before {
    top: 0;
}
.btn-slice::after {
    bottom: 0;
    transition-delay: 0.1s;
}
.btn-slice:hover::before,
.btn-slice:hover::after {
    transform: translateX(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.75rem;
    }
}

/* Efeito Pixel */
.btn-pixel {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    position: relative;
    font-weight: bold;
}

.btn-pixel:hover {
    animation: pixelate 0.4s infinite;
}

@keyframes pixelate {
    0% {
        background-size: 100% 100%;
        background-image: linear-gradient(45deg, #2ecc71, #27ae60);
    }
    25% {
        background-size: 20px 20px;
        background-image: 
            linear-gradient(90deg, #2ecc71 50%, #27ae60 50%),
            linear-gradient(90deg, #27ae60 50%, #2ecc71 50%);
    }
    50% {
        background-size: 10px 10px;
        background-image: 
            linear-gradient(90deg, #27ae60 50%, #2ecc71 50%),
            linear-gradient(90deg, #2ecc71 50%, #27ae60 50%);
    }
    75% {
        background-size: 20px 20px;
        background-image: 
            linear-gradient(90deg, #2ecc71 50%, #27ae60 50%),
            linear-gradient(90deg, #27ae60 50%, #2ecc71 50%);
    }
    100% {
        background-size: 100% 100%;
        background-image: linear-gradient(45deg, #2ecc71, #27ae60);
    }
}
