/* Стили раздела "Рыболовные клубы" для Fishing Analyzer */

/* Шапка над списком клубов */
.clubs-header-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.clubs-intro-text {
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 600;
}

.btn-create-club-trigger {
    background: linear-gradient(135deg, #d4af37 0%, #aa8417 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: 0.3s;
}

.btn-create-club-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Карточка клуба */
.club-card {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    background: linear-gradient(180deg, rgba(27, 22, 18, 0.95) 0%, rgba(15, 11, 9, 0.98) 100%) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: 0.3s !important;
}

.club-card:hover {
    border-color: #d4af37 !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-4px);
}

/* Кнопка удаления клуба */
.btn-delete-club {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 75, 43, 0.2);
    color: #ff4b2b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.btn-delete-club:hover {
    background: #ff4b2b;
    color: #fff;
    border-color: #ff4b2b;
    box-shadow: 0 0 10px rgba(255,75,43,0.5);
}

/* Кнопка редактирования клуба */
.btn-edit-club {
    position: absolute;
    top: 10px;
    right: 46px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #d4af37;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.btn-edit-club:hover {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

/* Модальное окно создания клуба */
.club-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2100;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.club-modal-content {
    background: #1b1612;
    border: 2px solid #d4af37;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    margin: 50px auto;
    padding: 30px;
    color: #fff;
    position: relative;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.25);
}

.club-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.club-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.club-input-group label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.club-input-group input[type="text"],
.club-input-group input[type="number"],
.club-input-group input[type="password"],
.club-input-group textarea,
.club-input-group select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: 0.3s;
}

.club-input-group input:focus,
.club-input-group textarea:focus,
.club-input-group select:focus {
    border-color: #d4af37;
    outline: none;
    background: rgba(212, 175, 55, 0.05);
}

.club-input-group select option {
    background: #1b1612;
    color: #fff;
}

/* Детали клуба во весь экран */
.club-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.club-detail-box {
    background: linear-gradient(135deg, #1b1612 0%, #110e0c 100%);
    border: 2px solid #d4af37;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.club-detail-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    object-fit: cover;
    background: #000;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.club-detail-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 5px;
}

.club-detail-style {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 15px;
}

.club-detail-desc {
    font-size: 0.9rem;
    color: #eee;
    line-height: 1.5;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 150px;
    overflow-y: auto;
    text-align: left;
}

.club-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Компактные и аккуратные кнопки модалки клубов */
.btn-club-submit {
    background: linear-gradient(135deg, #d4af37 0%, #aa8417 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transition: 0.3s;
}

.btn-club-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* Адаптивная строка для Страна и Город */
.club-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 480px) {
    .club-modal-content {
        width: 95% !important;
        margin: 20px auto !important;
        padding: 18px !important;
        border-radius: 16px !important;
    }
    .club-form-grid {
        gap: 10px !important;
    }
    .club-form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    #club-map-picker {
        height: 150px !important;
    }
    .club-modal-content style {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

