/* ========== AI STONE RECOMMENDER STYLES ========== */
.ai-recommender-btn {
    display: block;
    margin: 40px auto;
    background: linear-gradient(135deg, #0a2a5a, #4cc9f0);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 5px 20px rgba(10, 42, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-recommender-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 42, 90, 0.5);
    background: linear-gradient(135deg, #4cc9f0, #0a2a5a);
}

.ai-icon {
    font-size: 1.3rem;
}

.night-mode .ai-recommender-btn {
    background: linear-gradient(135deg, #4cc9f0, #2d9cdb);
    box-shadow: 0 5px 20px rgba(76, 201, 240, 0.3);
}

.night-mode .ai-recommender-btn:hover {
    background: linear-gradient(135deg, #2d9cdb, #4cc9f0);
    box-shadow: 0 10px 30px rgba(76, 201, 240, 0.5);
}

/* Recommender Modal */
.ai-recommender-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.ai-recommender-modal.hidden {
    display: none;
}

.ai-recommender-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.night-mode .ai-recommender-content {
    background: #1a1a2e;
    border: 1px solid #2d4059;
}

.ai-recommender-header {
    background: linear-gradient(135deg, #0a2a5a, #1a3a8a);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.night-mode .ai-recommender-header {
    background: linear-gradient(135deg, #0f3460, #2d4059);
}

.ai-recommender-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.ai-close-recommender {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.ai-close-recommender:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Recommender Body */
.ai-recommender-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.ai-step {
    animation: fadeIn 0.5s ease;
}

.ai-step h3 {
    margin: 0 0 25px 0;
    color: #0a2a5a;
    text-align: center;
    font-size: 1.3rem;
}

.night-mode .ai-step h3 {
    color: #4cc9f0;
}

.ai-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .ai-options {
        grid-template-columns: 1fr;
    }
}

.ai-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.night-mode .ai-option {
    background: #2d4059;
    border-color: #3a506b;
    color: #e6e6e6;
}

.ai-option:hover {
    border-color: #0a2a5a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 42, 90, 0.1);
}

.night-mode .ai-option:hover {
    border-color: #4cc9f0;
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.2);
}

.ai-option.selected {
    background: #e6f0ff;
    border-color: #0a2a5a;
    box-shadow: 0 5px 15px rgba(10, 42, 90, 0.2);
}

.night-mode .ai-option.selected {
    background: #0f3460;
    border-color: #4cc9f0;
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.option-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Results */
.ai-results {
    animation: fadeIn 0.5s ease;
}

.ai-results h3 {
    text-align: center;
    margin: 0 0 25px 0;
    color: #0a2a5a;
}

.night-mode .ai-results h3 {
    color: #4cc9f0;
}

.ai-results-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.ai-result-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.night-mode .ai-result-card {
    background: #2d4059;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ai-result-card.best-choice {
    border-color: #ff6b00;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.2);
}

.night-mode .ai-result-card.best-choice {
    border-color: #4cc9f0;
    box-shadow: 0 8px 25px rgba(76, 201, 240, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a2a5a;
}

.night-mode .result-title {
    color: #4cc9f0;
}

.result-badge {
    background: #ff6b00;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.night-mode .result-badge {
    background: #4cc9f0;
    color: #1a1a2e;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.result-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.night-mode .detail-label {
    color: #b8b8b8;
}

.detail-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.night-mode .detail-value {
    color: #e6e6e6;
}

.result-pros-cons {
    margin-top: 15px;
}

.pros-cons-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0a2a5a;
}

.night-mode .pros-cons-title {
    color: #4cc9f0;
}

.pros-cons-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .pros-cons-list {
        grid-template-columns: 1fr;
    }
}

.pros-list, .cons-list {
    padding: 10px;
    border-radius: 10px;
}

.pros-list {
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
}

.cons-list {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.pros-list ul, .cons-list ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
}

.pros-list li {
    color: #2d9cdb;
    margin-bottom: 5px;
}

.cons-list li {
    color: #ff6b00;
    margin-bottom: 5px;
}

.ai-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.ai-action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.night-mode .ai-action-btn {
    background: #2d4059;
    color: #e6e6e6;
    border-color: #3a506b;
}

.ai-action-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.night-mode .ai-action-btn:hover {
    background: #3a506b;
}

.ai-action-btn.primary {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    border: none;
}

.night-mode .ai-action-btn.primary {
    background: linear-gradient(135deg, #4cc9f0, #2d9cdb);
}

.ai-action-btn.primary:hover {
    background: linear-gradient(135deg, #ff8533, #ff6b00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.night-mode .ai-action-btn.primary:hover {
    background: linear-gradient(135deg, #2d9cdb, #4cc9f0);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

/* Navigation */
.ai-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.night-mode .ai-navigation {
    border-color: #2d4059;
}

.ai-nav-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.night-mode .ai-nav-btn {
    background: #2d4059;
    color: #e6e6e6;
    border-color: #3a506b;
}

.ai-nav-btn:hover:not(:disabled) {
    background: #0a2a5a;
    color: white;
    border-color: #0a2a5a;
}

.night-mode .ai-nav-btn:hover:not(:disabled) {
    background: #4cc9f0;
    color: #1a1a2e;
    border-color: #4cc9f0;
}

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

.ai-progress {
    flex: 1;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ai-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.night-mode .ai-progress-bar {
    background: #2d4059;
}

.ai-progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #0a2a5a, #1a3a8a);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.night-mode .ai-progress-bar-fill {
    background: linear-gradient(135deg, #4cc9f0, #2d9cdb);
}

.ai-progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.night-mode .ai-progress-text {
    color: #b8b8b8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
