/* Caixinha Simplificada - Tema Dinheiro */

:root {
    --gold-primary: #FFD700;
    --gold-dark: #B8860B;
    --green-money: #228B22;
    --green-light: #90EE90;
    --green-dark: #006400;
    --black: #1a1a1a;
    --white: #ffffff;
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    --gradient-green: linear-gradient(135deg, #228B22, #32CD32, #90EE90);
    --gradient-money: linear-gradient(135deg, #006400, #228B22, #32CD32);
}

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

body {
    font-family: 'Arial', sans-serif;
    background: var(--gradient-money);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--white);
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/caixinha-money-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo img {
    width: 60px;
    height: 60px;
    animation: bounce 2s infinite;
}

.logo h1 {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--green-light);
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Caixinha Principal */
.caixinha-main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: var(--shadow-dark);
    color: var(--black);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.caixinha-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
}

/* Hero Image */
.hero-image {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-gold);
    animation: pulse 3s infinite;
}

/* Título da Caixinha */
.caixinha-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.caixinha-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.6;
}

/* Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--gradient-green);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Barra de Progresso Vertical */
.progress-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.progress-vertical {
    width: 60px;
    height: 300px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-gold);
    border-radius: 30px;
    transition: height 1s ease-out;
    animation: shimmer 2s infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: var(--black);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.progress-label {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--green-dark);
}

/* Formulário de Participação */
.participation-form {
    background: var(--gradient-gold);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: var(--shadow-gold);
}

.form-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--black);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gold-dark);
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--green-money);
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.3);
    transform: scale(1.02);
}

.btn-participate {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.btn-participate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
}

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

/* Efeito de brilho no botão */
.btn-participate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

/* Lista de Participantes */
.participants-section {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.participants-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.participant-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    color: var(--black);
    transition: transform 0.3s ease;
}

.participant-card:hover {
    transform: scale(1.05);
}

.participant-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.participant-value {
    color: var(--green-money);
    font-weight: bold;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* Efeitos de Dinheiro Caindo */
.money-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.money-bill {
    position: absolute;
    width: 40px;
    height: 20px;
    background: var(--gradient-gold);
    border-radius: 3px;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .caixinha-main {
        padding: 2rem;
        margin: 1rem;
    }
    
    .caixinha-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-vertical {
        height: 200px;
        width: 50px;
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notificações */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: var(--white);
    font-weight: bold;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--green-money);
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #17a2b8;
}

