/* Club Page Specific Styles */

.layout-container {
    grid-template-columns: 1fr 500px;
    grid-template-rows: 1fr;
}

.club-main {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    height: 100%;
}

.club-sidebar {
    background-color: transparent;
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    min-height: 0;
    height: 100%;
}

.club-details-card {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 300px;
}

.club-image-container {
    width: 276px;
    height: 276px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
}

.club-image-container.wide-banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    height: auto;
}

.club-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-image-container .mobile-club-image {
    display: none;
}

@media (max-width: 768px) {
    .club-image-container .desktop-club-image {
        display: none;
    }

    .club-image-container .mobile-club-image {
        display: block;
    }
}

.club-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.residencies-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    cursor: grab;
    user-select: none;
}

.residencies-scroll:active {
    cursor: grabbing;
}

.residency-image-container {
    width: 176px;
    height: 176px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.residency-image-container:hover {
    transform: translateY(-2px);
}

.residency-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.colored-chip.artist-chip {
    position: absolute;
    top: 5px;
    left: 5px;
}

.colored-chip.day-chip {
    position: absolute;
    bottom: 5px;
    left: 5px;
}

.colored-chip-inner {
    height: 22px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 166px;
}

.event-card {
    background-color: var(--surface);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
    height: 200px;
}

.event-card:hover {
    transform: translateY(-2px);
}

.event-card-image {
    width: 176px;
    height: 176px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-button {
    width: 100%;
    background-color: var(--secondary);
    color: var(--text);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: auto;
}

.ticket-button:hover {
    transform: translateY(-2px);
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile-specific styles */
.mobile-club-container {
    display: none;
}

.mobile-club-image {
    width: 100%;
    aspect-ratio: 3 / 1;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

.mobile-club-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-club-info-card {
    background-color: var(--surface);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.mobile-club-title {
    margin-bottom: 10px;
}

.mobile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mobile-description {
    margin-top: 10px;
}

.mobile-description .description-text {
    background-color: var(--background);
}

.mobile-residencies-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.mobile-residencies-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-residency-item {
    width: 176px;
    height: 176px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-residency-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-event-card {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.mobile-event-card-image {
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.mobile-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-event-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mobile-event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}

.mobile-map {
    width: 100%;
    height: 250px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Tablet and Mobile responsive */
@media (max-width: 1024px) {
    .layout-container {
        display: none;
    }

    .main-content {
        padding-bottom: 20px;
        padding-top: calc(var(--header-height) + 20px);
        min-height: auto;
    }

    .page-container {
        padding: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-club-container {
        display: block;
        position: relative;
        min-height: calc(100vh - var(--header-height) - 40px);
        background-color: rgba(10, 10, 10, 0.5);
        border-radius: 10px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px;
        margin: 0 20px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mobile-club-container::-webkit-scrollbar {
        display: none;
    }

    .mobile-club-container .card {
        background-color: var(--surface);
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.2);
        margin-bottom: 15px;
    }

    .mobile-club-container .card:last-child {
        margin-bottom: 0;
    }

    footer {
        position: relative;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding-top: calc(65px + 20px);
    }

    .page-container {
        padding: 0;
    }

    .mobile-club-container {
        min-height: calc(100vh - 65px - 40px);
        padding: 15px;
        margin: 0 15px;
    }

    .mobile-club-container .card {
        padding: 10px;
    }

    .mobile-club-info-card {
        padding: 10px;
    }

    .mobile-event-card {
        padding: 10px;
    }

    .mobile-event-card-image {
        width: 120px;
        height: 120px;
    }

    .mobile-residency-item {
        width: 150px;
        height: 150px;
    }

    .ticket-button {
        font-size: 14px;
        padding: 8px 12px;
    }

    footer {
        margin-top: 20px;
    }
}
