/* assets/css/gallery-hub.css */
/* Modern Artsy/Saatchi Art inspired design with Community Hub foundation */

.khub.gallery-hub {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #222;
}

.gallery-hub h1, .gallery-hub h2, .gallery-hub h3, .gallery-hub h4, .gallery-hub h5 {
    font-family: var(--font-serif, 'Playfair Display', serif);
}

/* Hero Section */
.gallery-hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: #fafafa;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gallery-hero p.lead {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.gallery-hero .btn-primary {
    background-color: #C9A963;
    border-color: #C9A963;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.gallery-hero .btn-primary:hover {
    background-color: #b59858;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 99, 0.3);
}

/* Section Titles */
.gallery-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Trending Artworks Grid */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.artwork-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.artwork-card:hover {
    opacity: 0.9;
    color: inherit;
}

.artwork-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
}

.artwork-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Don't crop art */
    transition: transform 0.5s ease;
}

.artwork-card:hover .artwork-image-wrapper img {
    transform: scale(1.03);
}

.artwork-meta h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.artwork-meta p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Exhibitions Horizontal Scroll */
.exhibitions-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

.exhibitions-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.exhibition-card {
    min-width: 400px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    color: white;
}

.exhibition-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exhibition-card:hover img {
    transform: scale(1.05);
}

.exhibition-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.exhibition-overlay h3 {
    margin: 0 0 5px;
    font-size: 1.5rem;
}

/* Featured Artists */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

.artist-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.artist-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.artist-card:hover img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.artist-card h5 {
    font-size: 1.1rem;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    .exhibition-card {
        min-width: 280px;
    }
    .exhibition-card img {
        height: 200px;
    }
}
