/* assets/css/generators/name-picker.css */

.name-picker-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;
}

/* 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;
}

/* 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);
}

/* Picker Settings */
.picker-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;
}

/* Pick Button */
.pick-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;
}

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

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

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

/* Results Section */
.results-section {
    animation: fadeIn 0.3s ease-in-out;
}

.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;
}

/* Winners Display */
.winners-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.winner-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card.revealed {
    animation: revealWinner 0.5s ease-out;
}

.winner-card.animating {
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes revealWinner {
    0% {
        transform: scale(0.8) rotateY(180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.winner-number {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.winner-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    min-height: 1.5rem;
}

/* Multiple winners - different gradients */
.winner-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.winner-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.winner-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.winner-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.winner-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.winner-card:nth-child(n+6) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

/* Remaining Names Section */
.remaining-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.remaining-section h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.remaining-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.name-tag {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.name-tag:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* 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 {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.history-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateX(4px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-item-header strong {
    color: #2c3e50;
    font-size: 0.95rem;
}

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

.history-item-winners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.winner-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.history-item-info {
    color: #6c757d;
    font-size: 0.85rem;
}

/* 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);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

    .results-actions {
        width: 100%;
    }

    .results-actions button {
        flex: 1;
    }

    .winner-card {
        padding: 1rem;
    }

    .winner-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }

    .winner-name {
        font-size: 1.2rem;
    }

    .notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

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

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