/* assets/css/generators/team-generator.css */

.team-generator-page {
    padding: 2rem 0;
}

.generator-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Main Generator Section (LEFT - Results Area) */
.generator-main {
    background: white;
    border-radius: var(--border-radius, 8px);
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* Initial State */
.initial-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.initial-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.initial-state h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.initial-state p {
    color: #666;
    font-size: 1.1rem;
}

/* Names Input */
.names-input-section {
    margin-bottom: 1.5rem;
}

.names-input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.names-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius, 8px);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s ease;
}

.names-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #4A90E2);
}

.names-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

#namesCount {
    font-weight: 600;
    color: var(--primary-color, #4A90E2);
}

/* Mode Selection */
.mode-selection {
    margin-bottom: 1.5rem;
}

.mode-selection label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mode-btn {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: var(--border-radius, 8px);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: var(--primary-color, #4A90E2);
    background: rgba(74, 144, 226, 0.05);
}

.mode-btn.active {
    border-color: var(--primary-color, #4A90E2);
    background: var(--primary-color, #4A90E2);
    color: white;
}

/* Team Settings */
.team-settings {
    margin-bottom: 1.5rem;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.input-with-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: var(--border-radius, 8px);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    border-color: var(--primary-color, #4A90E2);
    background: rgba(74, 144, 226, 0.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.form-control {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius, 8px);
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

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

.help-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius, 8px);
    background: linear-gradient(135deg, var(--primary-color, #4A90E2), var(--secondary-color, #357ABD));
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

/* Results Section */
.results-section {
    background: white;
    border-radius: var(--border-radius, 8px);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Teams Display */
.teams-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.team-header {
    background: linear-gradient(135deg, var(--primary-color, #4A90E2), var(--secondary-color, #357ABD));
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.team-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.team-members {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-members li {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #333;
}

.team-members li:last-child {
    border-bottom: none;
}

.team-members li:hover {
    background: rgba(74, 144, 226, 0.05);
}

/* Settings Panel (RIGHT) */
.settings-panel {
    background: white;
    border-radius: var(--border-radius, 8px);
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color, #4A90E2);
}

.tab-btn.active {
    color: var(--primary-color, #4A90E2);
    border-bottom-color: var(--primary-color, #4A90E2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Quick Examples */
.quick-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.example-btn {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: var(--border-radius, 8px);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-btn:hover {
    border-color: var(--primary-color, #4A90E2);
    background: rgba(74, 144, 226, 0.05);
}

/* History */
.history-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius, 8px);
    border-left: 4px solid var(--primary-color, #4A90E2);
}

.history-info {
    flex: 1;
}

.history-info strong {
    display: block;
    color: #333;
    margin-bottom: 0.25rem;
}

.history-date {
    font-size: 0.85rem;
    color: #666;
}

.btn-restore {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: var(--border-radius, 8px);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.btn-restore:hover {
    border-color: var(--primary-color, #4A90E2);
    background: rgba(74, 144, 226, 0.05);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius, 8px);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #4A90E2), var(--secondary-color, #357ABD));
    color: white;
}

.btn-secondary {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    border-color: var(--primary-color, #4A90E2);
    background: rgba(74, 144, 226, 0.05);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Info Section */
.info-section {
    background: white;
    border-radius: var(--border-radius, 8px);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.info-section h2 {
    margin-top: 0;
    color: #333;
}

.info-section h3 {
    color: #333;
    margin-top: 2rem;
}

.use-cases {
    margin-top: 2rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.use-case {
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius, 8px);
    transition: all 0.3s ease;
}

.use-case:hover {
    border-color: var(--primary-color, #4A90E2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.use-case .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.use-case h4 {
    margin: 0.5rem 0;
    color: #333;
}

.use-case p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.features-list {
    margin-top: 2rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.features-list li {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: var(--border-radius, 8px);
    border-left: 4px solid var(--primary-color, #4A90E2);
}

/* Responsive */
@media (max-width: 768px) {
    .generator-content {
        grid-template-columns: 1fr;
    }

    .mode-buttons {
        grid-template-columns: 1fr;
    }

    .teams-display {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-examples {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .features-list ul {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
