/**
 * Cuboro Competition Styles
 */

/* Основная кнопка соревнований */
.competition-button {
    position: fixed;
    top: 140px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
    display: none; /* Скрыта по умолчанию */
    align-items: center;
    gap: 8px;
}

.competition-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

.competition-button:active {
    transform: translateY(0);
}

.competition-button .icon {
    font-size: 20px;
}

/* Модальное окно */
.competition-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.competition-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.competition-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.competition-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.competition-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.competition-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}

/* Табы */
.competition-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.competition-tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.competition-tab.active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

/* Форма */
.competition-form-group {
    margin-bottom: 15px;
}

.competition-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.competition-form-group input,
.competition-form-group textarea,
.competition-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.competition-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.competition-form-group small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 12px;
}

/* Кнопки */
.competition-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.competition-btn-primary {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.competition-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.competition-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

/* Список соревнований */
.competition-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.competition-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.competition-item h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.competition-item p {
    margin: 0 0 10px 0;
    color: #666;
}

.competition-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.competition-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.competition-type.FREE {
    background: #e8f5e9;
    color: #2e7d32;
}

.competition-type.FIX {
    background: #fff3e0;
    color: #ef6c00;
}
