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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: var(--text-light);
    position: relative;
    overflow-x: hidden;
}

/* Animação de gradiente no fundo */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efeito de partículas no fundo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.6;
    }
}

/* Efeito de ondas no fundo */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.05) 100%);
    animation: waveAnimation 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scaleY(1.1);
        opacity: 0.5;
    }
}

.header {
}

/* Hero Section com Filtros */
.hero-filters {
    background: transparent;
    padding: var(--space-4xl) 0;
    margin-top: 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efeito de brilho animado no hero */
.hero-filters::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

/* Efeitos de brilho flutuante */
@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.6;
    }
}

/* Partículas decorativas */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle-bg::before,
.particle-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
    animation: floatGlow 15s ease-in-out infinite;
}

.particle-bg::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-bg::after {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    animation-delay: 5s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
}

.highlight {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* Card de Filtros */
.filters-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.filters-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.filters-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.filters-header p {
    opacity: 0.8;
    font-size: 1rem;
    margin: 0;
}

.filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-field label {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.9;
}

.filter-field input {
    padding: var(--space-md) var(--space-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-field input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.filter-actions .btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-actions .btn::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.6s;
}

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

.filter-actions .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.filter-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.filter-actions .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.filter-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .filter-group {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-filters {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .filters-card {
        padding: var(--space-lg);
    }
}

/* Conteúdo Principal */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg) var(--space-4xl) var(--space-lg);
    background: transparent;
    border-radius: 0;
    margin-top: 0;
    position: relative;
    z-index: 3;
    box-shadow: none;
}

/* Efeito de brilho suave nos cards */
.doacoes-grid::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.5;
    }
}

.loading {
    text-align: center;
    padding: 3rem;
    color: white;
    font-size: 1.2rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== GRID RESPONSIVO PARA CARDS ===== */
.doacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* ===== CARD MODERNO DE DOAÇÃO ===== */
.doacao-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    animation: cardFadeIn 0.6s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Animação de entrada para novos cards */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.doacao-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===== HEADER DO CARD ===== */
.doacao-header {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
    pointer-events: none;
}

.doacao-header > * {
    pointer-events: auto;
}

/* Badge de categoria/tipo */
.doacao-type {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.doacao-type i {
    font-size: 0.7rem;
}

/* Status de disponibilidade */
.status-available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.65rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.status-urgent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-expired {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ===== IMAGEM DO ALIMENTO ===== */
.doacao-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.doacao-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
}

.doacao-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.doacao-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

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

/* ===== CORPO DO CARD ===== */
.doacao-body {
    padding: 1.25rem 1.5rem 1rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doacao-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doacao-description {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== DETALHES DO ALIMENTO ===== */
.doacao-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.detail-item i {
    color: #fbbf24;
    width: 20px;
    font-size: 0.9rem;
    flex-shrink: 0;
    text-align: center;
    margin-top: 0.1rem;
}

.detail-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-item .detail-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-item .detail-value {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

/* ===== FOOTER DO CARD ===== */
.doacao-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: auto;
    flex-shrink: 0;
}

.doacao-owner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
}

.doacao-owner i {
    color: #60a5fa;
    font-size: 0.9rem;
}

/* ===== BOTÃO DE AÇÃO ===== */
.btn-request {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    z-index: 10;
}

.btn-request:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-request i {
    font-size: 0.8rem;
}

.no-donations {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.no-donations i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-donations h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.btn-add-donation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-add-donation:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-add-donation i {
    font-size: 1.2rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .doacoes-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .filter-group input {
        min-width: 100%;
    }
    
    /* Grid responsivo - lista vertical no mobile */
    .doacoes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .doacao-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .doacao-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .doacao-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        margin-top: auto;
    }
    
    .btn-request {
        width: 100%;
        justify-content: center;
    }
    
    .doacao-image {
        height: 280px;
    }
    
    .doacao-image-placeholder {
        height: 280px;
    }
    
    .floating-btn {
        bottom: 1rem;
        right: 1rem;
    }
    
    .btn-add-donation span {
        display: none;
    }
}

@media (max-width: 480px) {
    .doacoes-grid {
        padding: 0;
    }
    
    .doacao-header {
        padding: 1rem 1rem 0 1rem;
    }
    
    .doacao-body {
        padding: 0 1rem 1rem 1rem;
    }
    
    .doacao-footer {
        padding: 1rem;
        margin-top: auto;
    }
    
    .doacao-image {
        height: 250px;
    }
    
    .doacao-image-placeholder {
        height: 250px;
    }
    
    .doacao-title {
        font-size: 1.2rem;
    }
    
    .detail-item {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* Estilos para minhas doações */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.inactive {
    background: #95a5a6;
    color: white;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Estilos para novos cards de doação */
.doacao-card.new-donation {
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.doacao-card.new-donation::before {
    content: 'NOVO';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    animation: pulse 2s infinite;
}

.doacao-card.highlight-new {
    animation: highlightPulse 3s ease-in-out;
    border-color: #8b5cf6;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    }
    25% {
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 0 35px rgba(139, 92, 246, 0.5);
    }
    75% {
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    }
}

/* Efeito de entrada para novos cards */
.doacao-card.new-donation {
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}