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

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

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

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

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

.empty-state {
    text-align: center;
    color: #999;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.125rem;
    color: #666;
}

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

.result-item {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    transition: transform 0.2s ease;
}

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

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

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 1.25rem;
    padding: 1rem 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 300px;
}

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

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* Settings Panel (Right Side) */
.settings-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.settings-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 1rem 0.5rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.tab-btn.active {
    color: #667eea;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.tab-content {
    display: none;
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

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

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.checkbox-label span {
    font-weight: normal;
    color: #555;
}

/* Length Range */
.length-range {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.range-input {
    flex: 1;
}

.range-input label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #666;
}

.range-input .form-control {
    text-align: center;
}

.range-separator {
    font-size: 1.25rem;
    color: #999;
    padding-bottom: 0.75rem;
}

/* History */
.history-controls {
    margin-bottom: 1rem;
}

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

.history-item {
    padding: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.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: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-section h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

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

.use-case {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

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

.use-case h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

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

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

    .settings-panel {
        max-height: none;
    }

    .generator-main {
        padding: 2rem 1.5rem;
        min-height: 400px;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .generator-main {
        padding: 1.5rem 1rem;
    }

    .generate-btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .empty-icon {
        font-size: 3rem;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Scrollbar Styling */
.results-grid::-webkit-scrollbar,
.tab-content::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 6px;
}

.results-grid::-webkit-scrollbar-track,
.tab-content::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.results-grid::-webkit-scrollbar-thumb,
.tab-content::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.results-grid::-webkit-scrollbar-thumb:hover,
.tab-content::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}
