/* Doe com Solidariedade - Estilos Principais */

/* Base Styles */
body { 
    background-color: #F5F5F5; 
    color: #4f4f4f;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Typography Scale - Mobile First */
h1 {
    font-size: 1.75rem; /* 28px mobile */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.5rem; /* 24px mobile */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem; /* 20px mobile */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.125rem; /* 18px mobile */
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 0.9375rem; /* 15px mobile */
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

small, .text-sm {
    font-size: 0.8125rem; /* 13px mobile */
}

.text-xs {
    font-size: 0.6875rem; /* 11px mobile */
}

button, .btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem; /* 15px mobile */
}

a {
    font-family: 'Montserrat', sans-serif;
}

/* Desktop Typography - Larger screens */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem; /* 40px desktop */
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 2rem; /* 32px desktop */
        margin-bottom: 0.875rem;
    }

    h3 {
        font-size: 1.5rem; /* 24px desktop */
        margin-bottom: 0.75rem;
    }

    h4 {
        font-size: 1.25rem; /* 20px desktop */
    }

    p {
        font-size: 1rem; /* 16px desktop */
        margin-bottom: 1rem;
    }

    small, .text-sm {
        font-size: 0.875rem; /* 14px desktop */
    }

    .text-xs {
        font-size: 0.75rem; /* 12px desktop */
    }

    button, .btn {
        font-size: 1rem; /* 16px desktop */
    }
}

/* Accordion Styles */
.accordion-content { 
    max-height: 0px; 
    overflow: hidden; 
    transition: max-height 0.3s ease-in-out; 
}

.accordion-item.active .accordion-content { 
    max-height: 200px; 
}

.accordion-item.active .accordion-arrow { 
    transform: rotate(180deg); 
}

.accordion-arrow { 
    transition: transform 0.3s ease-in-out; 
}

/* Menu Mobile Styles */
#mobile-menu { 
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    z-index: 40;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#mobile-menu.show { 
    display: block; 
}

/* Tab Styles */
.tab-link-active { 
    border-bottom: 2px solid #25D366; 
    color: #25D366; 
    font-weight: 600; 
}

/* Avatar Group */
.avatar-group > div { 
    margin-left: -10px; 
}

.avatar-group > div:first-child { 
    margin-left: 0; 
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: -100px;
    left: -50px;
    width: calc(100% + 100px);
    height: 200px;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    border-radius: 50%;
    animation: fall-and-fade 3s linear forwards;
}

/* Keyframes para a animação de queda e fade-out */
@keyframes fall-and-fade {
    0% { 
        transform: translateY(-50px) rotate(0deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(200px) rotate(720deg);
        opacity: 0; 
    }
}

/* Animação para a notificação deslizar da direita para a esquerda */
@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease forwards;
}

/* Animação de fade para troca de doadores */
@keyframes fade-in-out {
    0% { opacity: 0; transform: translateY(5px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

.donor-fade {
    animation: fade-in-out 4s ease-in-out;
}

/* Animação para lista de doações */
.donation-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.donation-item:hover {
    background-color: #f9fafb;
    border-radius: 8px;
}

/* Container de doações com overflow controlado */
#recent-donations-list {
    overflow: hidden;
    position: relative;
}

/* Animação para o card fixo aparecer */
@keyframes slide-up {
    from {
        transform: translateY(120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.4s ease-out forwards;
}

/* Estilo adicional para o card fixo */
#sticky-donation-card {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

#sticky-donation-card.hidden {
    display: none !important;
}

/* Footer Styles */
.footer {
    background-color: #ffffff;
    color: #282828;
    position: relative;
    margin-top: 80px;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

/* Header do Footer */
.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo svg {
    width: 170px;
    height: 45px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: #282828;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.6;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: #282828;
}

/* Conteúdo Principal do Footer */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #25D366;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #282828;
    text-decoration: none;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.footer-column ul li a:hover {
    opacity: 0.6;
}

/* Coluna Fale Conosco */
.contact-info {
    color: #6b7280;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 15px;
}

.security-seal {
    margin-top: 15px;
}

.security-seal img {
    width: 115px;
    height: 40px;
}

/* Coluna App */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-button {
    display: block;
    width: 150px;
}

.app-button img {
    width: 100%;
    height: auto;
}

/* Copyright */
.footer-copyright {
    background-color: #f3f4f6;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #282828;
}

/* Responsividade do Footer */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-logo svg {
        width: 120px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-content {
        padding: 30px 15px 15px;
    }
}
