/* ================================================================
   RedFux Forum v1.5.0 - Club-Bilder CSS Ergaenzungen
   Diese Datei in style.css einfuegen oder als clubs-images.css einbinden
   ================================================================ */

/* --- Club Card Logo --- */
.club-card-logo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,68,68,0.3); margin-bottom: 10px;
}
.club-logo-wrap { text-align: center; margin-bottom: 5px; }
.club-card-price {
    font-size: 0.9em; color: #ff4444; font-weight: 600; margin-bottom: 8px;
}

/* --- Hero / Titelbild --- */
.club-hero {
    position: relative; width: 100%; max-height: 400px; overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.club-hero > img {
    width: 100%; height: 400px; object-fit: cover; display: block;
}
.club-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 30%, rgba(10,10,20,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px;
}
.club-hero-content { display: flex; align-items: center; gap: 20px; }
.club-hero-logo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3); flex-shrink: 0;
}
.club-hero-content h1 { color: #fff; font-size: 1.8em; margin: 0 0 6px; }
.club-hero-content .club-detail-rating { margin: 0; }
.club-hero-content .club-detail-rating .fa-star,
.club-hero-content .club-detail-rating .fa-star-half-alt { color: #ffc107; }
.club-hero-content .club-detail-rating .far.fa-star { color: #555; }
.club-hero-content .club-detail-rating span { color: #ccc; }

.club-detail-badge {
    display: inline-block; background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 0.85em;
    font-weight: 600; margin-bottom: 10px; width: fit-content;
}

/* Header Logo (Fallback ohne Hero) */
.club-header-logo {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,68,68,0.3); margin-bottom: 12px;
}

/* --- Beschreibung --- */
.club-description { margin: 20px 0; line-height: 1.7; }
.club-description p { margin-bottom: 14px; color: #c0c0cc; }

/* --- Galerie --- */
.club-gallery-section {
    margin-top: 30px; padding-top: 24px;
    border-top: 1px solid #2a2a3e;
}
.club-gallery-section h3 {
    font-size: 1.1em; color: #e0e0e0; margin-bottom: 16px;
}
.club-gallery-section h3 i { color: #ff4444; margin-right: 8px; }

.club-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.gallery-thumb {
    border-radius: 8px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; transition: all 0.2s;
    aspect-ratio: 16/10;
}
.gallery-thumb:hover {
    border-color: #ff4444; transform: scale(1.03);
}
.gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --- Lightbox --- */
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.92);
}
.lightbox-content {
    position: relative; max-width: 90vw; max-height: 85vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-content img {
    max-width: 90vw; max-height: 80vh; object-fit: contain;
    border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute; top: -40px; right: 0;
    background: none; border: none; color: #fff; font-size: 2em;
    cursor: pointer; z-index: 10;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    font-size: 1.2em; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,68,68,0.4); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-caption {
    position: absolute; bottom: -35px; left: 0; right: 0;
    text-align: center; color: #aaa; font-size: 0.9em;
}

/* --- Verwandte Threads --- */
.club-threads {
    margin-top: 30px; padding-top: 24px;
    border-top: 1px solid #2a2a3e;
}
.club-threads h3 {
    font-size: 1.1em; color: #e0e0e0; margin-bottom: 16px;
}
.club-threads h3 i { color: #ff4444; margin-right: 8px; }

.thread-list-mini { display: flex; flex-direction: column; gap: 8px; }
.thread-mini {
    display: block; padding: 12px 16px;
    background: #12121e; border: 1px solid #2a2a3e; border-radius: 8px;
    color: #e0e0e0; text-decoration: none; transition: all 0.2s;
}
.thread-mini:hover {
    border-color: #ff4444; background: #1a1a2e;
}
.thread-mini-title { font-weight: 600; margin-bottom: 4px; }
.thread-mini-meta { display: flex; gap: 16px; font-size: 0.85em; color: #888; }
.thread-mini-meta i { color: #555; margin-right: 4px; }

/* --- Club Navigation (prev/next) --- */
.club-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 30px; padding-top: 20px;
    border-top: 1px solid #2a2a3e; gap: 10px;
}
.club-nav-link {
    color: #ccc; text-decoration: none; padding: 8px 14px;
    border: 1px solid #333; border-radius: 6px; font-size: 0.9em;
    transition: all 0.2s;
}
.club-nav-link:hover {
    border-color: #ff4444; color: #ff4444;
}
.club-nav-all { background: #1e1e2e; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .club-hero > img { height: 250px; }
    .club-hero-overlay { padding: 16px; }
    .club-hero-content { flex-direction: column; align-items: flex-start; gap: 10px; }
    .club-hero-content h1 { font-size: 1.3em; }
    .club-hero-logo { width: 60px; height: 60px; }

    .club-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }

    .club-nav { flex-direction: column; }
}
