/* ========================================
   Tzuzoo Rescue - Index/Home Page Styles
   ======================================== */

/* Header & Navigation */
.header {
    background: var(--background-white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-purple);
}

.logo .tzu {
    color: var(--primary-green);
    margin-right: 0.2rem;
}

.logo .zoo {
    color: var(--primary-purple);
    margin-right: 0.3rem;
}

.logo .rescue {
    color: var(--text-medium);
    font-size: 1.2rem;
    font-weight: 500;
}

.logo i {
    margin-right: 10px;
    color: var(--primary-green);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-green);
    color: white;
    border-bottom-color: var(--secondary-green);
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px var(--shadow-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    text-transform: none;
    font-weight: 400;
}

.dropdown a:hover {
    background: var(--primary-green);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    text-align: center;
    padding: 150px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::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 1200 600"><g fill="white" opacity="0.1"><circle cx="200" cy="150" r="60"/><circle cx="800" cy="100" r="80"/><circle cx="400" cy="350" r="40"/><circle cx="1000" cy="250" r="70"/></g></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-style: italic;
    color: var(--primary-green);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(126, 211, 33, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-purple);
    border-color: white;
}

/* Stats Section */
.stats {
    background: var(--background-white);
    padding: 4rem 0;
    border-top: 5px solid var(--primary-green);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(126, 211, 33, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Instagram Section */
.instagram-section {
    padding: 4rem 0;
    background: white;
}

.instagram-section .section-title {
    text-align: center;
    color: var(--primary-purple);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Quick Actions */
.quick-actions {
    background: #F8F9FA;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-purple);
}

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

.action-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-green);
}

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

.action-header {
    background: var(--primary-green);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.action-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-content {
    padding: 2rem;
}

.action-list {
    list-style: none;
    margin-bottom: 2rem;
}

.action-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-light);
    transition: color 0.3s ease;
}

.action-list li:hover {
    color: var(--primary-purple);
    cursor: pointer;
}

.action-list li::before {
    content: '\25B6';
    color: var(--primary-green);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Featured Dogs */
.featured-dogs {
    background: var(--background-white);
    padding: 5rem 0;
}

.dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.3s ease;
}

.dog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(126, 211, 33, 0.2);
}

.dog-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
}

.dog-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-purple);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.dog-info {
    padding: 1.5rem;
}

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

.dog-details {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dog-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-medium);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #aaa;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-purple);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 15px var(--shadow-light);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu a {
        padding: 1rem 1.5rem;
        width: 100%;
    }

    .nav-menu .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: #f8f9fa;
        min-width: 100%;
    }

    .nav-menu .dropdown.active {
        display: block;
    }

    .nav-menu .dropdown a {
        padding-left: 2.5rem;
        font-size: 0.85rem;
    }

    .nav-menu li:hover .dropdown {
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu li .dropdown.active {
        opacity: 1;
        visibility: visible;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .actions-grid,
    .dogs-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: block;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Error Message */
.error-message {
    background: #ffebee;
    border: 2px solid #ef5350;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #c62828;
}

.error-message p {
    margin: 0;
    font-weight: 500;
}

/* Pet Card Enhancements */
.dog-card .pet-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}

.dog-card .pet-photo-placeholder {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
}

.pet-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pet-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pet-badge.special-needs {
    background: var(--primary-purple);
}

.pet-badge.senior {
    background: #ff9800;
}

.pet-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.pet-attribute {
    background: var(--border-light);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.pet-contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-light);
}
