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

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

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

/* Result Display */
.generator-main {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
}

.result-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.single-result {
    text-align: center;
}

.result-name {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    display: inline-block;
    animation: fadeIn 0.5s ease;
    font-family: 'Times New Roman', serif;
    text-align: center;
    word-break: break-word;
}

.multiple-results {
    width: 100%;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.result-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    animation: slideIn 0.3s ease;
    transition: transform 0.2s ease;
    font-family: 'Times New Roman', serif;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    cursor: pointer;
}

.result-item:hover {
    transform: scale(1.02);
}

.results-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.results-list li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--light);
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    font-family: 'Times New Roman', serif;
    cursor: pointer;
    transition: var(--transition);
    word-break: break-word;
}

.results-list li:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.results-comma {
    font-size: 1.5rem;
    line-height: 1.8;
    word-break: break-all;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--border-radius);
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Times New Roman', serif;
    text-align: center;
}

/* Generate Button */
.generate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-size: 1.25rem;
    padding: 1rem 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

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

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

.settings-tabs {
    display: flex;
    background: var(--light);
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
    color: var(--primary-color);
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    padding: 1.5rem;
    display: none;
}

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

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

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

/* Name Type Specific Styles */
.name-type-fantasy .result-name,
.name-type-fantasy .result-item {
    font-family: 'Georgia', serif;
    font-style: italic;
}

.name-type-business .result-name,
.name-type-business .result-item {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.name-type-business .result-name {
    font-size: 2.5rem;
}

/* Language Specific Fonts */
.language-ru .result-name,
.language-ru .result-item {
    font-family: 'Times New Roman', serif;
}

.language-de .result-name,
.language-de .result-item {
    font-family: 'Times New Roman', serif;
}

.language-fr .result-name,
.language-fr .result-item {
    font-family: 'Times New Roman', serif;
}

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

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

.history-item {
    padding: 0.75rem;
    background: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    background: #e8e8e8;
}

.history-item-info {
    flex: 1;
}

.history-item-time {
    font-size: 0.75rem;
    color: #666;
}

.history-item-details {
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.history-item-result {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Times New Roman', serif;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-history {
    text-align: center;
    color: #666;
    padding: 2rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

.info-section h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.info-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.use-cases h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

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

.use-case {
    text-align: center;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.use-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.use-case h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Copy animation */
.result-item.copying,
.results-list li.copying {
    animation: copyPulse 0.3s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .generator-content {
        grid-template-columns: 1fr;
    }
    
    .settings-panel {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .result-name {
        font-size: 2rem;
    }
    
    .name-type-business .result-name {
        font-size: 1.8rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .result-item {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .generator-main {
        padding: 2rem;
    }
    
    /* Settings tabs mobile layout */
    .settings-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .tab-btn {
        font-size: 0.875rem;
        padding: 0.875rem 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .result-name {
        font-size: 1.8rem;
    }
    
    .name-type-business .result-name {
        font-size: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        font-size: 1.125rem;
        padding: 1rem;
    }
    
    .results-comma {
        font-size: 1.25rem;
        padding: 1rem;
    }
    
    /* Settings tabs mobile layout for small screens */
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem;
    }
}

/* Print styles */
@media print {
    .generator-content,
    .action-buttons {
        display: none;
    }
    
    .info-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}