/* Challenge Creator Component Styles */
.challenge-creator {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

/* Method Tab Styling */
.challenge-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.method-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.method-tab:hover {
    color: #16a34a;
    background: #f0fdf4;
}

.method-tab.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
    background: #f0fdf4;
}

/* Challenge Method Sections */
.challenge-method {
    display: none;
    margin-top: 24px;
}

.challenge-method.active {
    display: block;
}

/* Multi-Link Method Specific Styles */
.multi-link-method .multi-user-options {
    margin: 16px 0;
    padding: 0;
    background: none;
    border: none;
}

.multi-link-info {
    margin-top: 16px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.multi-link-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #166534;
}

.multi-link-info .info-item:last-child {
    margin-bottom: 0;
}

.generated-multi-link-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Email Challenge Form */
.email-challenge-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

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

/* Link Challenge Form */
.link-challenge-form {
    margin-top: 24px;
}

.link-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.generated-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin: 16px 0;
}

.link-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.link-url {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    color: #475569;
    word-break: break-all;
}

.copy-btn, .copy-link-btn {
    padding: 4px 8px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover, .copy-link-btn:hover {
    background: #15803d;
}

.copy-btn.success, .copy-link-btn.success {
    background: #059669;
}

.link-actions {
    display: flex;
    gap: 8px;
}

.qr-btn, .share-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.qr-btn:hover, .share-btn:hover {
    background: #e2e8f0;
}

/* Challenge Summary */
.challenge-summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #334155;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.summary-item .value {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.selected-games-preview {
    margin-top: 16px;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.selected-games-preview h6 {
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    font-size: 15px;
}

/* Games Expand/Collapse Toggle */
.games-expand-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #16a34a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.games-expand-toggle:hover {
    background: #f0fdf4;
    color: #15803d;
}

.games-expand-toggle .expand-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.games-expand-toggle[data-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

/* Hidden games styling */
.games-list .game-item:nth-child(n+6) {
    display: none !important;
}

.games-list[data-expanded="true"] .game-item:nth-child(n+6) {
    display: flex !important;
}

.games-list .game-item--hidden {
    display: none !important;
}

.games-list[data-expanded="true"] .game-item--hidden {
    display: flex !important;
}

.selected-games-list {
    margin-bottom: 12px;
}

/* Modern Game Item Styling */
.selected-game, .game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.game-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.game-item:last-child {
    margin-bottom: 0;
}

/* Game Matchup Container */
.game-matchup {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Team Logos */
.team-logos {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.vs-separator {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin: 0 2px;
}

/* Teams Badge */
.teams-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
}

.away-team {
    color: #475569;
}

.at-symbol {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.home-team {
    color: #475569;
}

/* Game Time Badge */
.game-time-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #16a34a;
    color: white;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.time-icon {
    font-size: 10px;
}

.time-text {
    font-weight: 500;
}

.challenge-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748b;
}

/* Challenge Messages */
.challenge-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.challenge-message.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.challenge-message.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #16a34a;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #15803d;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .link-actions {
        flex-direction: column;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-method-tabs {
        flex-direction: column;
    }
    
    .method-tab {
        text-align: center;
    }
    
    /* Mobile responsive adjustments for game items */
    .game-item {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .game-matchup {
        width: 100%;
        justify-content: space-between;
    }
    
    .team-logos {
        gap: 4px;
    }
    
    .team-logo {
        width: 18px;
        height: 18px;
    }
    
    .teams-badge {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .game-time-badge {
        align-self: flex-end;
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* Multi-User Challenge Options */
.multi-user-options {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #16a34a;
    cursor: pointer;
}

.checkmark {
    /* Custom checkbox styling if needed */
}

.help-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.participant-limit-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.participant-limit-section .form-group {
    margin-bottom: 0;
}

.participant-limit-section label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.participant-limit-section select {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
}

.participant-limit-section select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.participant-limit-section .help-text {
    margin-top: 6px;
} 