/* SEO Checker Tool Styles */
.seo-checker-tool {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.seo-checker-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

/* Header Section */
.seo-checker-header {
    background: linear-gradient(135deg, #4CAF50, #45a049, #388E3C);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.seo-checker-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Input Section */
.input-section {
    padding: 40px;
    background: #f8f9fa;
}

.input-group {
    max-width: 700px;
    margin: 0 auto;
}

.input-container {
    display: flex;
    background: white;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-container:focus-within {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15);
}

.input-icon {
    padding: 15px 20px;
    color: #4CAF50;
    font-size: 1.2rem;
}

.website-url-input {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    background: transparent;
    outline: none;
}

.website-url-input::placeholder {
    color: #bdc3c7;
}

.analyze-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.analyze-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    justify-content: center;
}

.input-hint i {
    color: #4CAF50;
}

/* Loading State */
.loading-state {
    padding: 60px 40px;
    text-align: center;
    background: #f8f9fa;
}

.loading-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.loading-spinner {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 30px;
}

.loading-steps {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e1e5e9;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.loading-step.active {
    color: #4CAF50;
}

.loading-step i {
    width: 20px;
    text-align: center;
}

.loading-step:last-child {
    border-bottom: none;
}

/* Results Section */
.results-section {
    padding: 0;
}

.results-header {
    background: white;
    padding: 30px 40px;
    border-bottom: 1px solid #e1e5e9;
}

.results-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.website-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.website-url {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.analysis-time {
    color: #7f8c8d;
    font-weight: 500;
}

/* Score Overview */
.score-overview {
    padding: 40px;
    background: #f8f9fa;
}

.score-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.score-circle {
    text-align: center;
    position: relative;
}

.score-value {
    font-size: 4rem;
    font-weight: 800;
    color: #4CAF50;
    line-height: 1;
    margin-bottom: 10px;
}

.score-label {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 600;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breakdown-label {
    width: 120px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.breakdown-fill.technical { background: linear-gradient(90deg, #4CAF50, #45a049); }
.breakdown-fill.content { background: linear-gradient(90deg, #2196F3, #1976D2); }
.breakdown-fill.performance { background: linear-gradient(90deg, #FF9800, #F57C00); }

.breakdown-value {
    width: 50px;
    text-align: right;
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Metrics Section */
.metrics-section {
    padding: 40px;
    background: white;
    border-bottom: 1px solid #e1e5e9;
}

.section-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #4CAF50;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.metric-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.metric-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4CAF50;
}

.metric-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-good { background: #E8F5E8; color: #4CAF50; }
.status-medium { background: #FFF3E0; color: #FF9800; }
.status-poor { background: #FFEBEE; color: #F44336; }

.metric-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Analysis Section */
.analysis-section {
    padding: 40px;
    background: #f8f9fa;
}

.analysis-tabs {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: white;
    color: #4CAF50;
}

.tab-btn.active {
    background: white;
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 30px;
}

.tab-pane.active {
    display: block;
}

.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.analysis-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.analysis-item.poor { border-left-color: #F44336; }
.analysis-item.medium { border-left-color: #FF9800; }
.analysis-item.good { border-left-color: #4CAF50; }

.analysis-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analysis-item.good .analysis-icon { background: #E8F5E8; color: #4CAF50; }
.analysis-item.medium .analysis-icon { background: #FFF3E0; color: #FF9800; }
.analysis-item.poor .analysis-icon { background: #FFEBEE; color: #F44336; }

.analysis-content {
    flex: 1;
}

.analysis-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.analysis-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Recommendations List */
.recommendations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.recommendation-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.recommendation-card.high { border-left-color: #F44336; }
.recommendation-card.medium { border-left-color: #FF9800; }
.recommendation-card.low { border-left-color: #4CAF50; }

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.recommendation-card.high .recommendation-icon { background: #F44336; }
.recommendation-card.medium .recommendation-icon { background: #FF9800; }
.recommendation-card.low .recommendation-icon { background: #4CAF50; }

.recommendation-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.recommendation-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Chart Section */
.chart-section {
    padding: 40px;
    background: white;
    border-top: 1px solid #e1e5e9;
}

.chart-container {
    max-width: 400px;
    margin: 0 auto;
    height: 300px;
}

/* Action Section */
.action-section {
    padding: 30px 40px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.action-btn.secondary {
    background: #2c3e50;
    color: white;
}

.action-btn.secondary:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

/* Error State */
.error-state {
    padding: 60px 40px;
    text-align: center;
    background: #f8f9fa;
}

.error-content h3 {
    font-size: 1.8rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-suggestions {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 25px auto;
    max-width: 500px;
    text-align: left;
    border-left: 4px solid #e74c3c;
}

.error-suggestions p {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.error-suggestions ul {
    color: #7f8c8d;
    padding-left: 20px;
    margin: 0;
}

.error-suggestions li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.retry-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .seo-checker-container {
        margin: 20px;
    }
    
    .seo-checker-header {
        padding: 40px 20px;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .input-section {
        padding: 30px 20px;
    }
    
    .input-container {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .input-icon {
        display: none;
    }
    
    .score-card {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        grid-template-columns: 1fr;
    }
    
    .recommendations-list {
        grid-template-columns: 1fr;
    }
    
    .action-section {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.6rem;
    }
    
    .results-header {
        padding: 20px;
    }
    
    .website-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .score-value {
        font-size: 3rem;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breakdown-label {
        width: auto;
    }
    
    .breakdown-bar {
        width: 100%;
    }
}

/* Animation for score progress */
@keyframes fillProgress {
    from { width: 0%; }
    to { width: var(--target-width); }
}

.breakdown-fill {
    animation: fillProgress 1.5s ease-in-out forwards;
}

/* Score color variations */
.score-excellent { color: #4CAF50 !important; }
.score-good { color: #8BC34A !important; }
.score-average { color: #FFC107 !important; }
.score-poor { color: #FF9800 !important; }
.score-bad { color: #F44336 !important; }