/* Gallery Page Specific Styles */

/* Gallery Navigation */
.gallery-nav {
    background: rgba(245, 230, 211, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links a.active {
    color: #FFD700;
    font-weight: 600;
}

/* Gallery Hero */
.gallery-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #8B6F47 0%, #D4A574 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.3"/></svg>');
    opacity: 0.1;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gallery-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 3rem;
}

.impact-stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-box .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Upload Section */
.upload-section {
    padding: 80px 0;
    background: #F5E6D3;
}

.upload-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.upload-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 0.5rem;
    text-align: center;
}

.upload-card > p {
    text-align: center;
    color: #8B6F47;
    margin-bottom: 2rem;
}

.upload-form {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #654321;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #E8D5B7;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4A574;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #F5E6D3;
    border: 2px dashed #D4A574;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: #E8D5B7;
    border-color: #8B6F47;
}

.upload-icon {
    font-size: 1.5rem;
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #654321;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

.btn-icon {
    font-size: 1.5rem;
}

.upload-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #F5F5DC;
    border-radius: 10px;
    text-align: center;
}

.upload-note p {
    margin: 0;
    color: #8B6F47;
    font-size: 0.875rem;
}

/* Gallery Section */
.dogs-gallery {
    padding: 80px 0;
    background: white;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 2rem;
}

.filter-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #D4A574;
    border-radius: 25px;
    font-weight: 500;
    color: #8B6F47;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #D4A574;
    color: white;
}

/* Dogs Grid */
.dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #8B6F47;
    max-width: 500px;
    margin: 0 auto;
}

/* Dog Cards */
.dog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.dog-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.dog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dog-card:hover .dog-overlay {
    opacity: 1;
}

.view-story {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.dog-info {
    padding: 1.5rem;
}

.dog-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #8B4513;
    margin: 0 0 0.5rem;
}

.shelter-name,
.adoption-date {
    color: #8B6F47;
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.story-preview {
    margin-top: 1rem;
    color: #654321;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #F5F5DC;
}

.status {
    font-size: 0.875rem;
    color: #8B6F47;
    font-weight: 500;
}

/* Story Modal */
.story-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #8B6F47;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #654321;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
}

.modal-dog-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8B4513;
    margin: 0 0 1rem;
}

.modal-shelter,
.modal-date {
    color: #8B6F47;
    margin: 0.5rem 0;
}

.modal-story {
    margin: 2rem 0;
    line-height: 1.8;
    color: #654321;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #F5E6D3;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #8B6F47;
}

/* Gallery Footer */
.gallery-footer {
    background: #8B4513;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
}

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

.social-link {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .dogs-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}