/* Gallery CSS Styles */

.gallery-section {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.gallery-detail-section {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    background: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.category-card .card-body {
    padding: 1.5rem;
}

/* Gallery Items */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item .card {
    border: 1px solid #dee2e6;
    background: white;
    overflow: hidden;
}

.gallery-item .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.gallery-item .card-img-top {
    transition: all 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.gallery-item:hover .card-img-top {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-item .card-body {
    padding: 1rem;
}

.gallery-item .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.gallery-item .card-text {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Image Detail Page */
.image-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.image-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: fit-content;
}

.image-info h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.description, .meta-info, .actions {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    margin-bottom: 20px;
}

.description h5, .meta-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.meta-info ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.meta-info .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Related Images */
.related-image {
    transition: all 0.3s ease;
    text-align: center;
}

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

.related-image img {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-image:hover img {
    opacity: 0.8;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.related-image-title {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Search and Filter */
.search-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Pagination */
.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-info {
        margin-top: 20px;
        padding: 20px;
    }
    
    .image-info h1 {
        font-size: 1.5rem;
    }
    
    .gallery-item .card-img-top {
        height: 150px;
    }
    
    .category-card .card-body {
        padding: 1rem;
    }
    
    .search-form {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-item .card-img-top {
        height: 120px;
    }
    
    .image-info {
        padding: 15px;
    }
    
    .image-info h1 {
        font-size: 1.3rem;
    }
}

/* Loading Animation */
.gallery-loading {
    text-align: center;
    padding: 50px 0;
}

.gallery-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 80px 0;
    color: #6c757d;
}

.gallery-empty h4 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.gallery-empty p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Image Zoom Effect */
.image-zoom {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

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

.image-zoom.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

/* Carousel Styles */
.carousel {
    border-radius: 10px;
    overflow: hidden;
}

.carousel-item img {
    max-height: 500px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Thumbnail Navigation */
.thumbnail-nav {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail-nav img {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail-nav img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.thumbnail-nav img.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Category Filter */
.category-filter {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.category-filter select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.category-filter select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
} 