/* Base Styles */
:root {
    --primary-color: #D0B49F;
    --secondary-color: #9F6B53;
    --accent-color: #2A2118;
    --text-color: #333333;
    --light-bg: #F8F4F0;
    --white: #FFFFFF;
    --success-color: #4CAF50;
    --error-color: #F44336;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(159, 107, 83, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 107, 83, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 100px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link.active {
    color: var(--white);
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-auth {
    display: flex;
    gap: 1rem;
}

.auth-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: whitesmoke;
    background-color: rgba(0, 0, 0, 0.5);
}

.signup-btn {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.signup-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.login-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.login-btn:hover {
    background-color: #3A3128;
    border-color: #3A3128;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/welcome_adopt.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

/* Featured Pet */
.featured-pet {
    padding: 5rem 0;
    background-color: var(--white);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.pet-image {
    margin: 20px;
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pet-info {
    flex: 1;
}

.pet-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pet-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 3rem 0 0;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-logo {
    height: 100px;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: var(--white);
    transition: all 0.3s ease;
}

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

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

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

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

.footer-section.links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-section.contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* Adopt Page Styles */
.pets-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/adopt_bg.webp');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.pets-hero h1{
    color: peachpuff; 
}

.search-container {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
}

.search-input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background-color: var(--accent-color);
}

.pets-section {
    padding: 5rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.section-title h2::before {
    left: -70px;
}

.section-title h2::after {
    right: -70px;
}

.pet-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.pet-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pet-image-container {
    position: relative;
}

.pet-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--success-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pet-info {
    padding: 1.5rem;
}

.pet-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pet-details {
    margin-bottom: 1.5rem;
}

.pet-details p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.pet-details i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.pet-actions {
    display: flex;
    justify-content: space-between;
}

/* Vet Page Styles */
.vet-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/vet.webp');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.vet-hero h1{
    color: greenyellow;
}

.vet-services {
    padding: 5rem 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.vet-partners {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.partner-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    padding: 2rem;
}

.partner-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

/* Tips Page Styles */
.tips-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/tips-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.tips-hero h1{
    color: lightseagreen;
}

.tips-section {
    padding: 5rem 0;
}

.tips-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 25px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tip-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tip-image {
    height: 200px;
    object-fit: cover;
}

.tip-content {
    padding: 1.5rem;
}

.tip-content h3 {
    margin-bottom: 1rem;
}

.tip-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.tip-meta span {
    display: flex;
    align-items: center;
}

.tip-meta i {
    margin-right: 5px;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.contact-hero h1{
    color: yellow;
}

.contact-section {
    padding: 5rem 0;
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

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

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    margin-top: 3rem;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Login/Signup Page Styles */
.auth-container {
    display: flex;
    min-height: 80vh;
}

.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.auth-image {
    flex: 1;
    background: url('../assets/auth-pets.jpg') center/cover no-repeat;
    background-repeat: no-repeat;
}

.auth-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-subtext {
    margin-bottom: 2rem;
    color: #777;
}

.auth-form-content {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.input-with-icon input {
    padding-left: 45px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 1.5rem;
}

.auth-submit-btn:hover {
    background-color: var(--accent-color);
}

.auth-divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
    color: #777;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: -1;
}

.auth-divider span {
    background-color: var(--white);
    padding: 0 15px;
}

.social-auth {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn.google-btn:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.social-btn.facebook-btn:hover {
    background-color: #f0f4ff;
    border-color: #b7c4f8;
}

.auth-switch {
    text-align: center;
    color: #777;
}

.auth-switch a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===== Profile Page Styles ===== */
.profile-section {
    padding: 40px 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.profile-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 30px;
}

.profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    cursor: pointer;
    position: relative;
    border: 3px solid #4a6fa5;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #333;
}

.profile-details p {
    color: #666;
    font-size: 16px;
}

.profile-edit-form {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.adopted-pets h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    border-bottom: 2px solid #4a6fa5;
    padding-bottom: 10px;
}

/* ===== Pet Details Page Styles ===== */
.pet-details-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: black;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.pet-details-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.pet-details-images {
    flex: 1;
    min-width: 300px;
}

.main-image-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-pet-image:hover {
    transform: scale(1.02);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #4a6fa5;
    transform: translateY(-3px);
}

.pet-details-info {
    flex: 1;
    min-width: 300px;
}

.pet-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.pet-meta {
    margin-bottom: 20px;
}

.pet-meta p {
    margin-bottom: 8px;
    color: #555;
    font-size: 16px;
}

.pet-meta i {
    color: #4a6fa5;
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.pet-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.pet-description h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.pet-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pet-attributes {
    margin-top: 30px;
}

.attribute {
    margin-bottom: 20px;
}

.attribute h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 5px;
}

.health-progress {
    background: #4CAF50;
    width: 90%;
}

.energy-progress {
    background: #FFC107;
    width: 70%;
}

.friendliness-progress {
    background: #FF5722;
    width: 85%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .pet-details-content {
        flex-direction: column;
    }
    
    .main-image-container {
        height: 300px;
    }
}