/* Club Detail Page Styles */

.clickable-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sport-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.sport-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sport-icon-wrapper.primary {
    background-color: #ffc107;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sport-icon-wrapper.primary:hover {
    background-color: #ffb300;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sport-icon-wrapper:not(.primary) {
    background-color: #f8f9fa;
}

.sport-icon-wrapper:not(.primary):hover {
    background-color: #e9ecef;
}

/* Gallery styles */
.gallery-horizontal {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.gallery-horizontal::-webkit-scrollbar {
    height: 8px;
}

.gallery-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-horizontal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.gallery-horizontal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-item-wrapper {
    flex: 0 0 auto;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: auto;
    height: 200px;
    max-width: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Lightbox styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    padding: 10px 20px;
    max-width: 800px;
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}