/* style.css */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--light-color);
    line-height: 1.6;
    color: var(--dark-color);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

    header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    header .subtitle {
        font-size: 1.2rem;
        opacity: 0.9;
    }

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

    nav a {
        color: var(--dark-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        padding: 0.5rem 1rem;
        border-radius: var(--radius);
    }

        nav a:hover {
            color: var(--primary-color);
            background: rgba(255, 107, 107, 0.1);
        }

.hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1554456854-55a039fd095b') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.search-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow);
}

.search-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--transition);
}

    .search-bar input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    }

.dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .dog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.dog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.dog-info {
    padding: 1.5rem;
}

    .dog-info h3 {
        color: var(--dark-color);
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    .dog-info p {
        color: #666;
        margin: 0.5rem 0;
        line-height: 1.4;
    }

.dog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: rgba(78, 205, 196, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.book-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

    .book-btn:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
    }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    width: 95%;
    max-width: 500px;
    border-radius: var(--radius);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

    .modal-close:hover {
        color: var(--primary-color);
    }

form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

form label {
    font-weight: 500;
    color: var(--dark-color);
}

form input {
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 8px;
    width: 100%;
    transition: var(--transition);
}

    form input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    }

@media (max-width: 768px) {
    header {
        padding: 2rem 1rem;
    }

        header h1 {
            font-size: 2rem;
        }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-bar input {
        width: 100%;
        margin-bottom: 1rem;
    }

    .dog-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .book-btn {
        padding: 1rem;
    }
}
