/* ===== VARIÁVEIS E CONFIGURAÇÕES GERAIS ===== */
:root {
    --primary-color: #FF5E7D;
    --secondary-color: #FF9A5A;
    --accent-color: #FFD166;
    --light-color: #FFF9F0;
    --bright-color: #FFFDED;
    --success-color: #00E3A0;
    --text-color: #444444;
    --gray-light: #F8F8F8;
    --gray-medium: #EEEEEE;
    --gray-dark: #888888;
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bright-color);
    overflow-x: hidden;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

/* ===== SEÇÃO HERO ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 154, 90, 0.9) 0%, rgba(255, 94, 125, 0.9) 100%), 
                url('https://images.unsplash.com/photo-1601758003122-53c40e686a19?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center/cover;
    color: white;
    padding: 2rem 1rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-in;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    margin: 0.5rem;
}

.btn-adopt {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 94, 125, 0.3);
}

.btn-adopt:hover {
    background-color: #FF4A6D; /* Tom mais escuro do primary-color */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 125, 0.4);
}

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

.btn-adopt i {
    transition: transform 0.3s ease;
}

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

/* Estilos para a seção Sobre */
.about-content p {
    position: relative;
    padding-left: 10px;
}

.about-content p i {
    transition: transform 0.3s ease;
}

.about-content p:hover i {
    transform: rotate(15deg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 94, 125, 0.3);
}

/* Efeito na imagem */
.img-fluid.rounded-3 {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.img-fluid.rounded-3:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 94, 125, 0.3) !important;
}

/* ===== CARDS DE CÃES ===== */
.dogs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
}

.dog-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.dog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.dog-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.dog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.dog-info {
    padding: 1.5rem;
    position: relative;
}

.dog-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.dog-breed {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.dog-age, .dog-size {
    display: inline-block;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.dog-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--accent-color);
    color: #444;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.urgency-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.urgency-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    animation: progressBar 2s ease-in-out;
}

/* ===== SEÇÕES ===== */
.section {
    padding: 4rem 1rem;
    background-color: var(--bright-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* ===== TESTEMUNHOS ===== */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial::before {
    content: "\"";
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--gray-light);
    position: absolute;
    top: -1rem;
    left: 1rem;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.author-info p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== CONTADOR DE ADOÇÕES ===== */
.counter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.counter-item {
    padding: 1rem;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    animation: pulse 2s infinite;
}

.counter-item p {
    font-size: 1.1rem;
}

/* ===== FILTROS ===== */
.filter-bar {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--gray-medium);
    background: white;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.menu-item i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.menu-item.active {
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== ELEMENTOS INTERATIVOS ===== */
.like-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.like-btn.liked {
    color: #FF3D4A;
    animation: heartBeat 0.5s;
}

.share-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(0,0,0,0.7);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes progressBar {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .dogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .counter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .dogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section {
        padding: 6rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* ===== UTILITÁRIOS ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* ===== LOADING ===== */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 2rem auto;
    display: block;
}

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