/* SEO Test Unified CSS */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

body.index-page {
    background: linear-gradient(135deg, rgb(0,47,100) 41%, #4a90c2 100%);
}

.site-header {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main-header-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    min-height: 100px;
}

.site-branding .site-title {
    font-size: 28px;
    font-weight: 700;
    color: #15314d;
    text-decoration: none;
    margin: 0;
}

.site-branding .site-title:hover {
    color: #2B6CB0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 19px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #2B6CB0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .site-main-header-inner-wrap {
        height: 70px;
        min-height: 70px;
    }
    
    .site-branding .site-title {
        font-size: 24px;
    }
    
    .main-navigation ul {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .main-navigation a {
        font-size: 16px;
    }
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .main-navigation ul {
        position: fixed;
        top: 100px;
        right: -300px;
        width: 250px;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        margin: 0;
        border-radius: 0 0 0 12px;
    }

    .main-navigation ul.active {
        right: 0;
    }

    .main-navigation ul li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Index page specific styles */
.main-content {
    padding: 40px 0;
}

.hero-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 80px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 25px 0;
    text-align: left;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item h4 {
    color: white;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.recent-tests {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto 0;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-tests h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.test-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: #333;
}

.test-item:hover {
    transform: translateY(-2px);
    background: white;
}

.test-url {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #2b6cb0;
}

.test-score {
    font-size: 1.8em;
    font-weight: 700;
    margin: 8px 0;
}

.test-score.good { color: #38a169; }
.test-score.warning { color: #d69e2e; }
.test-score.poor { color: #e53e3e; }

.test-date {
    font-size: 0.8em;
    color: #666;
}

.seo-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 60px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 0 auto;
}

.form-title {
    color: #2d3748;
    font-size: 2.8em;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: #4a5568;
    font-size: 1.25em;
    margin-bottom: 30px;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 1.1em;
}

.form-group input[type="url"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.processing {
    color: #2b6cb0;
    font-weight: 600;
    margin-bottom: 20px;
}

.countdown {
    background: #bee3f8;
    color: #2b6cb0;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
}

.countdown-timer {
    font-size: 1.2em;
    font-weight: 700;
}

.features {
    margin-top: 30px;
    text-align: left;
}

.features h3 {
    color: #2d3748;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 0.95em;
}

.feature-list li::before {
    content: '✓';
    color: #48bb78;
    font-weight: bold;
    margin-right: 8px;
}

/* SEO Result styles */
.container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

.header-info {
    opacity: 0.9;
    font-size: 1.05em;
}

.score-overview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    text-align: center;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#00ff88 0deg var(--percentage), rgba(255,255,255,0.3) var(--percentage) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.score-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.score-circle span {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 0.95em;
    font-weight: 600;
    opacity: 0.95;
}

.content {
    padding: 30px;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    margin: 0 -30px 20px;
    padding: 12px 30px;
    border-left: 4px solid #667eea;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metadata-box {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.metadata-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.meta-label {
    font-weight: 600;
    min-width: 120px;
    color: #555;
    font-size: 0.9em;
}

.meta-value {
    flex: 1;
    font-size: 0.95em;
}

.meta-length {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 8px;
    color: #666;
}

.serp-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.serp-preview {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 18px;
    font-family: arial, sans-serif;
}

.serp-preview h4 {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.serp-desktop .serp-title {
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 2px;
    text-decoration: none;
}

.serp-desktop .serp-title:hover {
    text-decoration: underline;
}

.serp-desktop .serp-url {
    color: #006621;
    font-size: 13px;
    margin-bottom: 6px;
}

.serp-desktop .serp-description {
    color: #4d5156;
    font-size: 13px;
    line-height: 1.4;
}

.serp-mobile {
    max-width: 350px;
}

.serp-mobile .serp-title {
    color: #1a0dab;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 4px;
    text-decoration: none;
}

.serp-mobile .serp-url {
    color: #006621;
    font-size: 12px;
    margin-bottom: 8px;
}

.serp-mobile .serp-description {
    color: #4d5156;
    font-size: 13px;
    line-height: 1.4;
}

.content-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 8px;
    border-bottom: 3px solid #667eea;
}

.stat-number {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #555;
}

.headings-visual {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.heading-counts {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.heading-box {
    text-align: center;
    padding: 10px 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.heading-level {
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
    margin-bottom: 3px;
}

.heading-count {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
}

.heading-tree {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.6;
    color: #555;
    background: #101010;
    padding: 10px;
    border-radius: 6px;
}

.heading-tree .h1 { color: #28a745; font-weight: bold; }
.heading-tree .h2 { color: #667eea; }
.heading-tree .h3 { color: #ffc107; }
.heading-tree .h4 { color: #6c757d; }
.heading-tree .h5 { color: #6c757d; font-size: 0.9em; }
.heading-tree .h6 { color: #6c757d; font-size: 0.85em; }

.ngrams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.ngram-box {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.ngram-header {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
}

.ngram-list {
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.ngram-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.85em;
}

.ngram-item:last-child {
    border-bottom: none;
}

.ngram-phrase {
    font-weight: 500;
    color: #333;
}

.ngram-count {
    color: #667eea;
    font-weight: 600;
    font-size: 0.8em;
    background: #f8f9ff;
    padding: 2px 6px;
    border-radius: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.metric-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.metric-title {
    font-weight: 600;
    font-size: 1em;
    color: #333;
}

.metric-name {
    font-weight: 600;
    font-size: 1em;
    color: #333;
}

.metric-status {
    font-size: 1.2em;
    font-weight: 600;
}

.metric-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.metric-desc {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.status-good { 
    border-left-color: #28a745;
}
.status-good .metric-status { color: #28a745; }

.status-warning { 
    border-left-color: #ffc107;
}
.status-warning .metric-status { color: #ffc107; }

.status-error { 
    border-left-color: #dc3545;
}
.status-error .metric-status { color: #dc3545; }

.recommendations {
    margin-bottom: 40px;
}

.recommendations h2 {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: #333;
}

.recommendation-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid;
}

.recommendation-item.priority-high {
    border-left-color: #dc3545;
    background: linear-gradient(90deg, #fff5f5 0%, #ffffff 20%);
}

.recommendation-item.priority-medium {
    border-left-color: #ffc107;
    background: linear-gradient(90deg, #fffbf0 0%, #ffffff 20%);
}

.recommendation-item.priority-low {
    border-left-color: #17a2b8;
    background: linear-gradient(90deg, #f0f8ff 0%, #ffffff 20%);
}

.recommendation-item strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.recommendation-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.95em;
}

.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #666;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    white-space: normal;
    width: 320px;
    max-width: 90vw;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.share-section {
    background: #f8f9fa;
    margin: 30px -30px 0;
    padding: 25px 30px;
    text-align: center;
    border-top: 2px solid #e9ecef;
}

.share-url-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.share-url {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 12px 0;
    font-family: monospace;
    font-size: 0.9em;
    border: 1px dashed #ddd;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: relative;
}

.share-url:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.copy-feedback {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    display: none;
    z-index: 1000;
}

.copy-feedback::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #28a745;
}

.social-sharing {
    margin-top: 20px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.social-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.social-btn.email { background: #6c757d; }
.social-btn.email:hover { background: #5a6268; }

.social-btn.facebook { background: #3b5998; }
.social-btn.facebook:hover { background: #2d4373; }

.social-btn.whatsapp { background: #25d366; }
.social-btn.whatsapp:hover { background: #20ba5a; }

.social-btn.linkedin { background: #0077b5; }
.social-btn.linkedin:hover { background: #005885; }

.social-btn.messenger { background: #00b2ff; }
.social-btn.messenger:hover { background: #0095d9; }

/* Breadcrumbs */
.breadcrumbs {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: 6px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9em;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: white;
    font-weight: 600;
}

/* White background breadcrumbs for content pages */
.breadcrumbs.white-bg {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.breadcrumbs.white-bg .breadcrumb-item {
    color: #666;
}

.breadcrumbs.white-bg .breadcrumb-item a {
    color: #667eea;
}

.breadcrumbs.white-bg .breadcrumb-separator {
    color: #999;
}

.breadcrumbs.white-bg .breadcrumb-current {
    color: #333;
}

/* Keyword Consistency Tables */
.keyword-table-container {
    overflow-x: auto;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.keyword-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.85em;
}

.keyword-table th {
    background: #667eea;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #5a67d8;
    white-space: nowrap;
}

.keyword-table td {
    padding: 10px 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.keyword-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.keyword-table tbody tr:hover {
    background: #e3f2fd;
}

.keyword-cell {
    text-align: left !important;
    font-weight: 600;
    color: #2b6cb0;
    max-width: 150px;
    word-break: break-word;
}

.count-cell {
    font-weight: 500;
    color: #666;
}

.count-cell.has-keyword {
    background: #d4edda !important;
    color: #155724;
    font-weight: 700;
}

.total-cell {
    font-weight: 700;
    color: #2b6cb0;
    background: #f8f9ff !important;
}

/* Analyze page styles */
body[style*="linear-gradient(135deg, #667eea"] .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.analyzing-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s infinite;
}

.analyzing-title {
    font-size: 2.2em;
    color: #2d3748;
    margin-bottom: 10px;
    font-weight: 600;
}

.analyzing-url {
    color: #4a5568;
    font-size: 1.1em;
    margin-bottom: 30px;
    word-break: break-all;
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
}

.progress-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.current-step {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: #4a5568;
    font-weight: 500;
}

.analyzing-steps {
    text-align: left;
    margin-top: 20px;
}

.step-item {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    font-size: 0.95em;
}

.step-item.completed {
    color: #28a745;
}

.step-item.active {
    color: #667eea;
    font-weight: 600;
}

.step-item::before {
    content: '○';
    margin-right: 10px;
    font-weight: bold;
}

.step-item.completed::before {
    content: '✓';
    color: #28a745;
}

.step-item.active::before {
    content: '⟳';
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#consultationPopup.popup-visible .popup-overlay {
    opacity: 1;
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#consultationPopup.popup-visible .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #333;
}

.popup-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.popup-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1em;
}

.popup-button {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.popup-button:hover {
    background: #5a67d8;
    color: white;
    text-decoration: none;
}

/* Mobile responsive fixes */
@media (max-width: 1024px) {
    .hero-form {
        padding: 35px 40px;
        max-width: 100%;
        width: 100%;
    }
    
    .seo-form-container {
        padding: 35px 40px;
        max-width: 100%;
        width: 100%;
    }
    
    .form-title {
        font-size: 2.5em;
    }
    
    .ngrams-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 0;
    }
    
    .site-container {
        padding: 0 10px;
    }
    
    .hero-form {
        padding: 25px 20px;
        margin: 10px auto 20px;
        width: 100%;
        max-width: none;
    }
    
    .form-group label {
        font-size: 1em;
    }
    
    .seo-form-container {
        padding: 25px 20px;
        margin: 10px;
        max-width: none;
        width: 100%;
    }
    
    .form-title {
        font-size: 2.2em;
    }
    
    .form-subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .header h1 {
        font-size: 1.6em;
    }
    
    .header-info {
        font-size: 0.95em;
    }
    
    .score-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.1em;
        margin: 0 -15px 15px;
        padding: 10px 15px;
    }
    
    .metadata-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .meta-label {
        min-width: auto;
        font-weight: 700;
        color: #333;
    }
    
    .meta-length {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .serp-previews {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .serp-preview {
        padding: 15px;
    }
    
    .serp-mobile {
        max-width: none;
    }
    
    .content-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 10px 8px;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
    
    .heading-counts {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .heading-box {
        padding: 8px 6px;
    }
    
    .heading-count {
        font-size: 1.3em;
    }
    
    .ngrams-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ngram-box {
        margin: 0 -15px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .metric-card {
        padding: 15px 12px;
    }
    
    .keyword-table-container {
        margin: 15px -15px;
        padding: 0 15px;
    }
    
    .keyword-table {
        font-size: 0.75em;
    }
    
    .keyword-table th,
    .keyword-table td {
        padding: 6px 4px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .social-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .share-section {
        margin: 20px -15px 0;
        padding: 20px 15px;
    }
    
    .tooltip::after {
        position: absolute;
        bottom: auto;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        width: auto;
        max-width: 280px;
        margin: 0 auto;
        bottom: 100%;
        margin-bottom: 10px;
    }
    
    .popup-content {
        padding: 25px 20px;
        max-width: 350px;
    }
    
    .popup-content h3 {
        font-size: 1.2em;
    }
    
    .popup-content p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 0;
    }
    
    .site-container {
        padding: 0 5px;
    }
    
    .hero-form {
        padding: 20px 15px;
        margin: 10px auto 15px;
        border-radius: 15px;
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.9em;
    }
    
    .form-title {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .form-subtitle {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    
    .form-group input[type="url"] {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    
    .header h1 {
        font-size: 1.4em;
    }
    
    .score-overview {
        padding: 15px 10px;
    }
    
    .score-circle {
        width: 70px;
        height: 70px;
    }
    
    .score-circle::before {
        width: 50px;
        height: 50px;
    }
    
    .score-circle span {
        font-size: 1.2em;
    }
    
    .content {
        padding: 15px 10px;
    }
    
    .section-title {
        margin: 0 -10px 15px;
        padding: 8px 10px;
        font-size: 1em;
    }
    
    .content-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ngram-box {
        margin: 0 -10px;
    }
    
    .keyword-table-container {
        margin: 15px -10px;
        padding: 0 10px;
    }
    
    .share-section {
        margin: 15px -10px 0;
        padding: 15px 10px;
    }
    
    .share-url {
        font-size: 0.8em;
        padding: 10px 8px;
    }
}

/* Horizontal scroll for wide tables on mobile */
@media (max-width: 768px) {
    .keyword-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .keyword-table {
        min-width: 600px;
    }
    
    .ngram-list {
        max-height: 180px;
    }
    
    .heading-tree {
        overflow-x: auto;
        font-size: 0.8em;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.2em;
    }
    
    .header-info {
        font-size: 0.9em;
    }
    
    .score-overview {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-stats {
        grid-template-columns: 1fr 1fr;
    }
}