/* AI Domain Suggestions Page Styles */
.ai-domains-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.header-content h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.header-content h1 i {
    color: #9b59b6;
    margin-right: 0.5rem;
}

.header-subtitle {
    color: #6c757d;
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Generation Form */
.generation-form {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.form-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-card h3 i {
    color: #9b59b6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-actions .btn:hover {
    transform: translateY(-1px);
}

/* Generating State */
.generating-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.generating-content h3 {
    color: #2c3e50;
    margin: 1rem 0;
    font-weight: 600;
}

.generating-content p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.generation-progress {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
    transform: scale(1.1);
}

.progress-step i {
    font-size: 1.5rem;
    color: #9b59b6;
    background: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-step span {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Suggestions Section */
.suggestions-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: #9b59b6;
}

.suggestions-filters {
    display: flex;
    gap: 1rem;
}

.suggestions-filters .form-control {
    min-width: 150px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Suggestions Grid */
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.suggestion-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #9b59b6;
}

.suggestion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.domain-name {
    flex: 1;
}

.domain-name h4 {
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.domain-extension {
    color: #9b59b6;
    font-weight: 600;
    font-size: 0.9rem;
}

.suggestion-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.score-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    position: relative;
}

.score-circle.excellent { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.score-circle.good { background: linear-gradient(135deg, #3498db, #2980b9); }
.score-circle.average { background: linear-gradient(135deg, #f39c12, #e67e22); }
.score-circle.poor { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.score-circle.very-poor { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }

.score-circle.large {
    width: 4rem;
    height: 4rem;
    font-size: 1rem;
}

.score-label {
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-details {
    margin-bottom: 1.5rem;
}

.suggestion-description {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.suggestion-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric-label {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 80px;
}

.metric-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.metric-value {
    color: #2c3e50;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tag.more {
    background: #e9ecef;
    color: #495057;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    min-width: 80px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 4rem;
    color: #9b59b6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.feature i {
    font-size: 1.5rem;
    color: #9b59b6;
}

.feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content.large-modal {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.modal-header h3 i {
    color: #9b59b6;
    margin-right: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Analysis Content */
.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analysis-overview {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.overall-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.score-details h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.score-details p {
    color: #6c757d;
    margin: 0;
}

.analysis-breakdown h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.breakdown-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
}

.breakdown-item h5 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.breakdown-item p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.score-indicator {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.score-indicator span {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.analysis-recommendations h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.analysis-recommendations ul {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0;
}

.analysis-recommendations li {
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.analysis-recommendations li:last-child {
    margin-bottom: 0;
}

.loading-analysis {
    text-align: center;
    padding: 2rem;
}

.loading-analysis p {
    color: #6c757d;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-domains-container {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .generation-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .suggestions-filters {
        flex-direction: column;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .suggestion-actions {
        flex-direction: column;
    }
    
    .empty-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .overall-score {
        flex-direction: column;
        gap: 1rem;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.suggestion-card {
    animation: fadeInUp 0.4s ease-out;
}

.suggestion-card:nth-child(1) { animation-delay: 0.1s; }
.suggestion-card:nth-child(2) { animation-delay: 0.2s; }
.suggestion-card:nth-child(3) { animation-delay: 0.3s; }
.suggestion-card:nth-child(4) { animation-delay: 0.4s; }
.suggestion-card:nth-child(5) { animation-delay: 0.5s; }
.suggestion-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.analysis-content > div {
    animation: slideIn 0.3s ease-out;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Loading Spinner */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Focus States */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.25);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 