/* Enhanced styles for AI Visibility Analysis improvements */

/* Modern Analysis Cards Design */
.analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.analysis-card:hover::before {
    opacity: 1;
}

.analysis-card-header {
    padding: 24px 24px 16px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.domain-info {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.domain-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.domain-icon i {
    color: white;
    font-size: 1.2rem;
}

.domain-details {
    flex: 1;
    min-width: 0;
}

.domain-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 4px 0;
    word-break: break-word;
}

.analysis-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.analysis-time {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.score-badge {
    flex-shrink: 0;
}

.score-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.score-circle.grade-a, .score-circle.grade-b {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.score-circle.grade-c, .score-circle.grade-d {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.score-circle.grade-f {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.score-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-grade {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.analysis-card-body {
    padding: 0 24px 16px 24px;
}

.score-breakdown {
    margin-bottom: 20px;
}

.score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.grade-a, .progress-fill.grade-b {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.progress-fill.grade-c, .progress-fill.grade-d {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.progress-fill.grade-f {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { opacity: 0; transform: translateX(-20px); }
    50% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(20px); }
}

.score-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    min-width: 45px;
    text-align: right;
}

.analysis-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 0.9rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.analysis-card-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-glass {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary-glass:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.secondary-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-glass {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-icon-glass:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .analysis-card-header {
        padding: 20px 20px 12px 20px;
    }
    
    .analysis-card-body {
        padding: 0 20px 12px 20px;
    }
    
    .analysis-card-footer {
        padding: 12px 20px 20px 20px;
    }
    
    .domain-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .score-circle {
        width: 56px;
        height: 56px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .secondary-actions {
        justify-content: center;
        width: 100%;
    }
}

/* Score Breakdown Details */
.category-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.detail-text {
    flex: 1;
    margin-left: 0.5rem;
    margin-right: 1rem;
}

.detail-points {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* AI Analysis Summary */
.ai-analysis-summary {
    margin-bottom: 2rem;
}

.summary-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.summary-icon i {
    font-size: 1.5rem;
    color: white;
}

.summary-content h5 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Priority Badge Colors */
.priority-badge.priority-high {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.priority-badge.priority-medium {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.priority-badge.priority-low {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Suggestion Card Responsive Design */
.suggestion-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.suggestion-summary {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.suggestion-details {
    max-width: 100%;
    overflow: hidden;
}

.suggestion-details h6 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.suggestion-details p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Mobile Responsiveness for AI Suggestions */
@media (max-width: 768px) {
    .ai-suggestions {
        padding: 1.5rem;
    }
    
    .suggestion-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .suggestion-title {
        font-size: 1.1rem;
    }
    
    .priority-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .code-block pre {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Executive Dashboard */
.executive-dashboard-modern {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95), rgba(45, 45, 45, 0.85));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.main-score-card,
.competitive-intel-card,
.impact-projection-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

/* Quick Wins Section */
.quick-wins-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* No Quick Wins Section */
.no-quick-wins-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(25, 135, 84, 0.1));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.no-wins-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-wins-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-wins-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.no-wins-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.quick-win-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.quick-win-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
}

.quick-win-stats {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ai-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-ai-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Platform Optimization Cards */
.platform-optimization-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.platform-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.platform-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chatgpt-icon {
    background: linear-gradient(135deg, #10a37f, #1a7f64);
    color: white;
}

.perplexity-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.local-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.score-circle-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #10a37f 0%, #10a37f calc(var(--score, 0) * 1%), rgba(255, 255, 255, 0.1) calc(var(--score, 0) * 1%));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
}

.score-circle-small::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: rgba(25, 25, 25, 0.95);
}

.score-number-small {
    font-size: 16px;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 1;
}

.platform-score-display {
    text-align: center;
}

.platform-status {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.missing-elements {
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.missing-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.missing-item:last-child {
    margin-bottom: 0;
}

/* Enhanced score breakdown */
.score-breakdown-modern {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95), rgba(45, 45, 45, 0.85));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.metric-card-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.progress-modern {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-modern {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Suggestions section improvements */
.suggestions-section-modern {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.95), rgba(45, 45, 45, 0.85));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA section */
.cta-section-modern {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.btn-ai-primary {
    background: linear-gradient(135deg, #10a37f, #1a7f64);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-ai-primary:hover {
    background: linear-gradient(135deg, #1a7f64, #10a37f);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 163, 127, 0.3);
    color: white;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .executive-dashboard-modern,
    .quick-wins-section,
    .platform-optimization-section,
    .score-breakdown-modern,
    .suggestions-section-modern,
    .cta-section-modern {
        padding: 20px;
    }
    
    .main-score-card,
    .competitive-intel-card,
    .impact-projection-card,
    .platform-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .quick-win-card {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* Animation enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.executive-dashboard-modern,
.quick-wins-section,
.platform-optimization-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Code modal enhancements */
.modal-content.bg-dark {
    background-color: rgba(25, 25, 25, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-container {
    position: relative;
}

.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Platform Cards */
.ai-platforms-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-card-enhanced {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all 0.3s ease;
}

.chatgpt-enhanced::before {
    background: linear-gradient(90deg, #00D4AA, #00A3FF);
}

.perplexity-enhanced::before {
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4);
}

.local-enhanced::before {
    background: linear-gradient(90deg, #FFD93D, #FF6B6B);
}

.platform-card-enhanced:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.platform-brand-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.chatgpt-logo {
    background: linear-gradient(135deg, #00D4AA, #00A3FF);
}

.perplexity-logo {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
}

.local-logo {
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
}

.brand-info h4.brand-name {
    color: white;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.brand-info p.brand-focus {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
}

.score-showcase {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    border: 3px solid transparent;
}

.chatgpt-gradient {
    background: linear-gradient(135deg, #00D4AA, #00A3FF);
}

.perplexity-gradient {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
}

.local-gradient {
    background: linear-gradient(135deg, #FFD93D, #FF6B6B);
}

.score-inner {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-large {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-suffix {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -0.25rem;
}

.status-badge-large {
    margin-bottom: 1rem;
}

.status-text {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-excellent {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-good {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-needs-work {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.optimization-opportunities {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.opportunities-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.opportunities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opportunity-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.opportunity-item:last-child {
    margin-bottom: 0;
}

.platform-insights {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.insight-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Styles for Platform Cards */
@media (max-width: 992px) {
    .platform-card-enhanced {
        margin-bottom: 1.5rem;
    }
    
    .score-circle-large {
        width: 100px;
        height: 100px;
    }
    
    .score-inner {
        width: 80px;
        height: 80px;
    }
    
    .score-large {
        font-size: 1.5rem;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .brand-info h4.brand-name {
        font-size: 1.1rem;
    }
    
    .ai-platforms-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .platform-card-enhanced {
        padding: 1.5rem 1rem;
    }
    
    .platform-brand-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .brand-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .score-circle-large {
        width: 80px;
        height: 80px;
    }
    
    .score-inner {
        width: 65px;
        height: 65px;
    }
    
    .score-large {
        font-size: 1.25rem;
    }
}

/* Simplified AI Readiness Overview */
.ai-readiness-overview {
    padding: 2rem 0;
}

.main-score-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.score-display-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score-circle-main {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.score-number-main {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label-main {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: -0.2rem;
}

.score-status-main {
    flex: 1;
}

.status-badge-main {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.status-badge-main.excellent {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.status-badge-main.good {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.status-badge-main.needs-work {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.status-description {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.platforms-summary h5 {
    margin-bottom: 1rem;
}

.platform-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 80px;
    transition: all 0.3s ease;
}

.platform-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.platform-badge i {
    font-size: 1.5rem;
    color: #667eea;
}

.platform-badge span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.compatibility-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.2rem;
}

.compatibility-indicator.high {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.compatibility-indicator.medium {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.compatibility-indicator.low {
    background: #f87171;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* New Results Page Styling */

/* Analysis Header */
.analysis-header {
    margin-bottom: 2rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.site-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.meta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Performance Snapshot */
.performance-snapshot {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.score-showcase {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.score-circle-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.score-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: -0.5rem;
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grade-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.grade-letter {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.grade-letter.grade-a {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.grade-letter.grade-b {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.grade-letter.grade-c {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.grade-letter.grade-d {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.grade-letter.grade-f {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.grade-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.status-text.excellent {
    color: #4ade80;
}

.status-text.good {
    color: #60a5fa;
}

.status-text.needs-work {
    color: #fb923c;
}

.metrics-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.market-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.growth-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.traffic-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.metric-content {
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: 0.2rem;
}

.metric-context {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.2rem;
}

/* Score Breakdown */
.score-breakdown {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.breakdown-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.breakdown-category {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.content-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.technical-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.business-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-info {
    flex: 1;
}

.category-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.category-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.category-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Improvement Guide */
.improvement-guide {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.subsection-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-left: 1rem;
}

.quick-wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.quick-win-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.quick-win-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.win-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.win-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.meta-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.heading-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.schema-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.win-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.win-impact {
    font-size: 0.8rem;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.win-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.win-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* AI Suggestions */
.ai-suggestions {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.suggestions-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.suggestion-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

.priority-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-high {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
}

.priority-medium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.priority-low {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.suggestion-summary {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.btn-expand {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-expand:hover {
    background: rgba(255, 255, 255, 0.15);
}

.expand-icon {
    transition: transform 0.3s ease;
}

/* Code Generation Modal */
.code-container {
    position: relative;
}

.code-container pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.code-container code {
    color: #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-block {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.code-block pre {
    margin: 0;
    padding: 1rem;
    background: transparent;
    border: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .performance-snapshot,
    .score-breakdown,
    .improvement-guide,
    .ai-suggestions {
        padding: 1.5rem;
    }
    
    .snapshot-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .score-showcase {
        flex-direction: column;
        text-align: center;
    }
    
    .score-circle-large {
        width: 120px;
        height: 120px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .metrics-showcase {
        grid-template-columns: 1fr;
    }
    
    .quick-wins-grid {
        grid-template-columns: 1fr;
    }
}

.score-grade-combo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.score-display-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.score-number-compact {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.score-label-compact {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: -0.2rem;
}

.grade-badge-compact {
    display: flex;
    align-items: center;
}

.grade-text {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grade-text.grade-a {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.grade-text.grade-b {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.grade-text.grade-c {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.grade-text.grade-d {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white;
}

.grade-text.grade-f {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
}

.score-context {
    margin-top: 0.5rem;
}

.score-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.metric-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.metric-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .score-display-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .platform-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-score-card {
        padding: 1.5rem;
    }
    
    .performance-dashboard {
        padding: 1.5rem;
    }
    
    .insight-card {
        padding: 1.25rem;
    }
    
    .insight-value {
        font-size: 1.5rem;
    }
    
    .insight-unit {
        font-size: 0.9rem;
    }
    
    .grade-text-insight {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}
