/* ===== CLUBS DIRECTORY - Horizontal List Layout ===== */

/* Header */
.cld-header {
    margin-bottom: 20px;
}
.cld-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cld-header h1 i { color: #b8860b; }
.cld-header p { color: #999; font-size: 13px; margin: 0; }

/* Toolbar */
.cld-toolbar {
    background: #fff;
    border: 1px solid #e8e4d9;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cld-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cld-search-input {
    flex: 0 0 220px;
    padding: 8px 14px;
    border: 1.5px solid #d4d0c8;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color 0.15s;
}
.cld-search-input:focus { border-color: #b8860b; box-shadow: 0 0 0 3px rgba(184,134,11,0.1); }
.cld-search-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #b8860b; color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: background 0.15s;
}
.cld-search-btn:hover { background: #9a7209; }
.cld-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
}
.cld-filter {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1.5px solid #d4d0c8;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.cld-filter:hover { border-color: #b8860b; color: #b8860b; text-decoration: none; }
.cld-filter.active { background: #b8860b; color: #fff; border-color: #b8860b; }
.cld-filter.active:hover { background: #9a7209; text-decoration: none; }
.cld-filter-count {
    background: rgba(0,0,0,0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
}
.cld-filter.active .cld-filter-count { background: rgba(255,255,255,0.25); }

/* Counter */
.cld-counter {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    padding-left: 2px;
}

/* Empty state */
.cld-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}
.cld-empty i { font-size: 40px; display: block; margin-bottom: 12px; }
.cld-empty p { color: #999; font-size: 14px; }

/* ===== Grid card items ===== */
.cld-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.cld-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e8e4d9;
    border-radius: 12px;
    padding: 20px 16px 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    text-align: center;
}
.cld-item:hover {
    border-color: #b8860b;
    box-shadow: 0 4px 12px rgba(184,134,11,0.12);
    text-decoration: none;
    color: #333;
    transform: translateY(-2px);
}

/* Logo / default icon */
.cld-item-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f5f0e3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cld-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cld-item-logo .cld-default-icon {
    font-size: 22px;
    color: #b8860b;
}
.cld-type-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.cld-type-organizer { background: #b8860b; }
.cld-type-dj { background: #c62828; }
.cld-type-artist { background: #6a1b9a; }
.cld-type-venue { background: #1565c0; }

/* Body */
.cld-item-body {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.cld-item-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.cld-item-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.cld-item-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cld-badge-organizer { background: #b8860b; }
.cld-badge-dj { background: #c62828; }
.cld-badge-artist { background: #6a1b9a; }
.cld-badge-venue { background: #1565c0; }

.cld-item-desc {
    font-size: 12px;
    color: #888;
    margin: 0 0 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}
.cld-item-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #aaa;
    flex-wrap: wrap;
}
.cld-item-meta i { color: #b8860b; margin-right: 2px; }
.cld-item-socials {
    display: inline-flex;
    gap: 6px;
    font-size: 13px;
    color: #bbb;
}

/* Arrow - hidden in card layout */
.cld-item-arrow {
    display: none;
}

/* Pagination */
.cld-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e4d9;
}
.cld-page-btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1.5px solid #d4d0c8;
    background: #fff; color: #555;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.cld-page-btn:hover { border-color: #b8860b; color: #b8860b; text-decoration: none; }
.cld-page-btn.active { background: #b8860b; color: #fff; border-color: #b8860b; }

/* ===== CLUB DETAIL PAGE ===== */
.club-header-section {
    background: #fff;
    border: 1px solid #e8e4d9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.club-header-card { padding: 0; border: none; box-shadow: none; background: transparent; }
.club-logo-container { position: relative; }
.club-logo {
    width: 120px; height: 120px; border-radius: 12px;
    object-fit: cover; border: 2px solid #e8e4d9;
}
.club-type-badge {
    position: absolute; bottom: -4px; right: -4px;
    padding: 3px 8px; border-radius: 6px;
    font-size: 10px; font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-organizer { background: #b8860b; }
.badge-dj { background: #c62828; }
.badge-artist { background: #6a1b9a; }
.badge-venue { background: #1565c0; }

.club-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; color: #333; }
.club-description { color: #666; font-size: 13px; line-height: 1.6; }

.club-social-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.btn-social {
    padding: 5px 12px; border-radius: 6px; font-size: 11px;
    font-weight: 600; text-decoration: none; color: white; transition: all 0.15s;
}
.btn-instagram { background: linear-gradient(45deg, #405de6, #c13584, #e1306c); }
.btn-facebook { background: #1877f2; }
.btn-tiktok { background: #000; }
.btn-x { background: #000; }
.btn-website { background: #b8860b; }
.btn-social:hover { opacity: 0.85; color: white; }

.club-stats-box {
    display: flex; justify-content: space-around; text-align: center;
    padding: 14px; background: #faf9f5; border-radius: 10px; border: 1px solid #e8e4d9;
}
.stat-item { flex: 1; }
.stat-item i { font-size: 16px; color: #b8860b; margin-bottom: 2px; display: block; }
.stat-value { font-size: 20px; font-weight: 800; color: #333; }
.stat-label { font-size: 10px; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* Navigation Tabs */
.club-nav-section {
    background: #fff; border-bottom: 1px solid #e8e4d9;
    position: sticky; top: 0; z-index: 100;
    margin-bottom: 20px;
}
.club-nav { border: none; }
.club-nav .nav-link {
    color: #555; font-weight: 600; font-size: 13px;
    padding: 12px 18px; border: none;
    border-bottom: 3px solid transparent; transition: all 0.15s;
}
.club-nav .nav-link:hover { color: #b8860b; }
.club-nav .nav-link.active { color: #b8860b; border-bottom-color: #b8860b; }
.club-nav .badge { margin-left: 4px; font-size: 10px; }

/* About */
.about-section { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e8e4d9; }
.about-description { font-size: 13px; line-height: 1.7; color: #555; margin: 12px 0; }
.stat-box {
    padding: 10px 12px; background: #faf9f5; border-radius: 8px;
    margin-bottom: 8px; border: 1px solid #e8e4d9; font-size: 13px;
}
.stat-box i { color: #b8860b; margin-right: 6px; }
.contact-box { background: #fff; padding: 18px; border-radius: 12px; border: 1px solid #e8e4d9; }
.contact-box h4 { margin-bottom: 12px; color: #333; font-size: 15px; font-weight: 700; }
.contact-box a { color: #b8860b; }
.social-icon {
    display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
    border-radius: 8px; background: #faf9f5; border: 1px solid #e8e4d9;
    color: #555; margin-right: 4px; transition: all 0.15s;
}
.social-icon:hover { background: #b8860b; color: #fff; border-color: #b8860b; }

/* Responsive */
@media (max-width: 991px) {
    .cld-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .cld-search-input { flex: 1; min-width: 0; }
    .cld-filters { flex-basis: 100%; }
    .cld-list { grid-template-columns: 1fr; }
    .cld-item { flex-direction: row; text-align: left; padding: 12px 14px; }
    .cld-item-logo { width: 48px; height: 48px; }
    .cld-item-top { flex-direction: row; align-items: center; }
    .cld-item-meta { justify-content: flex-start; }
    .cld-item-desc { display: none; }
    .club-logo { width: 80px; height: 80px; }
    .club-title { font-size: 18px; }
    .club-stats-box { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   Dark mode — activé via html.dark-mode (cf. head.phtml)
   ========================================================================== */
html.dark-mode .cld-header h1 { color: #e4e4e7 !important; }
html.dark-mode .cld-header h1 i { color: #d4a84b !important; }
html.dark-mode .cld-header p { color: #71717a !important; }

/* Toolbar (search + filtres) */
html.dark-mode .cld-toolbar {
    background: linear-gradient(145deg, #1e1e24 0%, #1a1a1f 100%) !important;
    border-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
html.dark-mode .cld-search-input {
    background: #1e1e26 !important;
    color: #e4e4e7 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
html.dark-mode .cld-search-input::placeholder { color: #6b6b78 !important; }
html.dark-mode .cld-search-input:focus {
    border-color: #d4a84b !important;
    box-shadow: 0 0 0 3px rgba(212,168,75,0.15) !important;
}
html.dark-mode .cld-search-btn { background: #b8860b !important; color: #fff !important; }
html.dark-mode .cld-search-btn:hover { background: #d4a84b !important; }

html.dark-mode .cld-filter {
    background: rgba(255,255,255,0.04) !important;
    color: #a1a1aa !important;
    border-color: rgba(255,255,255,0.1) !important;
}
html.dark-mode .cld-filter:hover {
    border-color: #d4a84b !important;
    color: #d4a84b !important;
    background: rgba(212,168,75,0.08) !important;
}
html.dark-mode .cld-filter.active {
    background: linear-gradient(135deg, #d4a84b 0%, #b8860b 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
html.dark-mode .cld-filter-count { background: rgba(255,255,255,0.08) !important; color: inherit !important; }
html.dark-mode .cld-filter.active .cld-filter-count { background: rgba(0,0,0,0.3) !important; }

html.dark-mode .cld-counter { color: #71717a !important; }

html.dark-mode .cld-empty { color: #52525b !important; }
html.dark-mode .cld-empty p { color: #71717a !important; }

/* Cards clubs */
html.dark-mode .cld-item {
    background: linear-gradient(145deg, #1e1e24 0%, #1a1a1f 100%) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e4e4e7 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
html.dark-mode .cld-item:hover {
    border-color: rgba(212,168,75,0.4) !important;
    box-shadow: 0 4px 20px rgba(212,168,75,0.1) !important;
    color: #e4e4e7 !important;
}
html.dark-mode .cld-item-logo {
    background: rgba(255,255,255,0.04) !important;
}
html.dark-mode .cld-item-logo .cld-default-icon { color: #d4a84b !important; }
html.dark-mode .cld-type-dot { border-color: #1a1a1f !important; }

html.dark-mode .cld-item-name { color: #e4e4e7 !important; }
html.dark-mode .cld-item-desc { color: #a1a1aa !important; }
html.dark-mode .cld-item-meta { color: #71717a !important; }
html.dark-mode .cld-item-meta i { color: #d4a84b !important; }
html.dark-mode .cld-item-socials { color: #52525b !important; }

/* Section headers ("Organisateurs", "DJs", etc.) — h2 inline color #333 */
html.dark-mode .cld-wrap h2 { color: #e4e4e7 !important; }

/* Pagination */
html.dark-mode .cld-pagination { border-top-color: rgba(255,255,255,0.08) !important; }
html.dark-mode .cld-page-btn {
    background: rgba(255,255,255,0.04) !important;
    color: #a1a1aa !important;
    border-color: rgba(255,255,255,0.1) !important;
}
html.dark-mode .cld-page-btn:hover {
    border-color: #d4a84b !important;
    color: #d4a84b !important;
    background: rgba(212,168,75,0.08) !important;
}
html.dark-mode .cld-page-btn.active {
    background: linear-gradient(135deg, #d4a84b 0%, #b8860b 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ─── Page détail d'un club ─── */
html.dark-mode .club-header-section,
html.dark-mode .about-section,
html.dark-mode .contact-box {
    background: linear-gradient(145deg, #1e1e24 0%, #1a1a1f 100%) !important;
    border-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
html.dark-mode .club-logo { border-color: rgba(255,255,255,0.1) !important; }
html.dark-mode .club-title { color: #e4e4e7 !important; }
html.dark-mode .club-description { color: #a1a1aa !important; }

html.dark-mode .club-stats-box,
html.dark-mode .stat-box {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
}
html.dark-mode .stat-box i,
html.dark-mode .club-stats-box .stat-item i { color: #d4a84b !important; }
html.dark-mode .stat-value { color: #e4e4e7 !important; }
html.dark-mode .stat-label { color: #71717a !important; }

html.dark-mode .club-nav-section {
    background: #1a1a1f !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
html.dark-mode .club-nav .nav-link { color: #a1a1aa !important; }
html.dark-mode .club-nav .nav-link:hover { color: #d4a84b !important; }
html.dark-mode .club-nav .nav-link.active { color: #d4a84b !important; border-bottom-color: #d4a84b !important; }

html.dark-mode .about-description { color: #a1a1aa !important; }
html.dark-mode .contact-box h4 { color: #e4e4e7 !important; }
html.dark-mode .contact-box a { color: #d4a84b !important; }

html.dark-mode .social-icon {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #a1a1aa !important;
}
html.dark-mode .social-icon:hover {
    background: linear-gradient(135deg, #d4a84b 0%, #b8860b 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
}
