/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 20px;
}

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

a:hover {
    color: #ff5252;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 50px;
    gap: 0;
}

.navbar .logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px; /* reduced gap for tighter logo and text */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar .logo i {
    font-size: 48px;
    color: #ff8a5b;
}

.navbar .logo .site-logo {
    width: 42px; /* image logo icon size */
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-left: 0;
}

.logo-pet, .logo-hub {
    line-height: 1;
}


.logo-pet {
    color: #ff8a5b;
    font-size: 26px;
}

.logo-hub {
    color: #1a3a52;
    font-size: 26px;
}

.navbar .logo a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
    margin: 0;
    padding: 0;
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 20px;
}

.nav-links a {
    color: #1a3a52;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ff8a5b;
}

.navbar-auth {
    display: flex;
    align-items: center;
}

.user-icon-btn {
    background: none;
    border: none;
    font-size: 36px;
    color: #1a3a52;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon-btn:hover {
    color: #ff8a5b;
    transform: scale(1.1);
}

.user-icon-btn .user-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.user-icon-btn:hover .user-icon-img {
    transform: scale(1.1);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 10px;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
    color: #ff8a5b;
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ff8a5b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        gap: 15px;
        z-index: 99;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content,
    .pet-details-container {
        grid-template-columns: 1fr;
    }
    
    .favorite-card {
        grid-template-columns: 150px 1fr auto;
    }
    
    .favorite-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .pets-grid {
        /* keep a fixed card width to match reference and allow scrolling when screen is too narrow */
        grid-template-columns: repeat(auto-fill, 310px);
        gap: 16px;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .favorite-card {
        grid-template-columns: 1fr;
    }
    
    .favorite-image {
        width: 100%;
        height: 250px;
    }
    
    .favorite-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}

/* Donation Modal Styles */
#donationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#donationModal .modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

#donationModal button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

#donationModal h2,
#donationModal h3 {
    font-weight: bold;
}

#donationModal ul {
    margin-bottom: 16px;
}

#donationModal p {
    margin-bottom: 8px;
}

#donationModal .modal-help {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
}

#donationModal a {
    color: #1a237e;
    text-decoration: underline;
}