/* Import Jost font */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

/* Root Variables - Inspired by getsphere.ai */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --success-color: #10B981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #e2e8f0;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    color: #e2e8f0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 50px;
    background: #1e293b;
    color: white;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 19px;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Main Section */
.main-section {
    padding: 50px 0;
}

.robots-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.robots-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.robots-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.code-block-clean {
    background: #1e293b;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.code-block-clean:hover .code-actions {
    opacity: 1;
}

.code-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.code-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.code-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.code-action-btn:active {
    transform: translateY(0);
}

.code-action-btn.downloaded,
.code-action-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
}

.code-block-clean pre {
    color: #e2e8f0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.install-box {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 10px;
}

.disclaimer-box {
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--warning-color);
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.install-box h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.install-box ol {
    margin: 0 0 16px 20px;
    padding: 0;
}

.install-box li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.install-box .download-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s;
}

.install-box .download-link:hover {
    color: #4f46e5;
    text-decoration: none;
}

.install-box code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.verify-note {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.verify-note code {
    background: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* CMS Box (inside main section) */
.cms-box-simple {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cms-box-simple label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    margin: 0;
}

.cms-dropdown {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Jost', sans-serif;
}

.cms-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cms-dropdown:hover {
    border-color: var(--primary-color);
}

.sitemap-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    transition: all 0.2s;
    font-family: 'Jost', sans-serif;
}

.sitemap-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.sitemap-input:hover {
    border-color: var(--primary-color);
}

.sitemap-input::placeholder {
    color: #94a3b8;
}

/* Customize Section */
.customize-section {
    padding: 40px 0;
    /* background: white; */
}

.customize-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.customize-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.customize-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.customize-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

#smart-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

#smart-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.custom-results {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.custom-results.hidden {
    display: none;
}

.status-badge-wrapper {
    margin-bottom: 16px;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.good {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.bad {
    background: #fee2e2;
    color: #991b1b;
}

.copy-btn-secondary {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

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

.copy-btn-secondary.copied {
    background: var(--success-color);
    border-color: var(--success-color);
}

.audit-toggle {
    margin-top: 20px;
    margin-bottom: 32px;
}

.audit-toggle summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s;
    text-align: center;
}

.audit-toggle summary:hover {
    background: var(--bg-secondary);
}

.audit-toggle summary::-webkit-details-marker {
    display: none;
}

.audit-toggle[open] summary {
    margin-bottom: 16px;
}

.audit-toggle[open] {
    padding-bottom: 24px;
}

.custom-robots-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 32px;
}

.audit-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audit-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 4px solid;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.audit-item:hover {
    background: #e5e7eb;
    transform: translateX(2px);
}

.audit-item.good {
    border-left-color: var(--success-color);
}

.audit-item.bad {
    border-left-color: var(--danger-color);
}

.audit-item.warning {
    border-left-color: var(--warning-color);
}

.audit-item.expanded {
    background: white;
    box-shadow: var(--shadow-md);
}

.audit-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.audit-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.audit-text {
    flex: 1;
}

.audit-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.audit-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.expand-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.2s;
    margin-left: auto;
}

.audit-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.audit-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 36px;
}

.audit-item.expanded .audit-details {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
}

.audit-details-content {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.audit-details h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.audit-details p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.audit-details ul {
    margin: 8px 0 12px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.audit-details li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.audit-details .detail-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.audit-details .detail-badge.good {
    background: var(--success-color);
}

.audit-details .detail-badge.warning {
    background: var(--warning-color);
}

.audit-details .detail-badge.bad {
    background: var(--danger-color);
}

.click-hint {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 4px;
    font-style: italic;
}

.simple-steps {
    margin-top: 32px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.simple-steps h3 {
    font-size: 22px;
    margin-bottom: 24px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.step p {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.step code {
    display: inline-block;
    margin-top: 4px;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
}

.verify-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.verify-text code {
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.audit-details-toggle {
    margin-top: 32px;
    border-top: 2px solid var(--border-color);
    padding-top: 24px;
}

.audit-details-toggle summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 10px;
    transition: all 0.2s;
}

.audit-details-toggle summary:hover {
    background: var(--bg-secondary);
}

.audit-details-toggle summary::-webkit-details-marker {
    display: none;
}

.audit-details-toggle[open] summary {
    margin-bottom: 24px;
}

.code-block {
    position: relative;
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

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

.copy-btn.copied {
    background: var(--success-color);
}

.code-block pre {
    color: #e2e8f0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}


/* Trust Section */
.trust-section {
    padding: 50px 0;
    background: white;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-text {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.examples-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.example-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.info-item {
    background: white;
    padding: 28px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.source-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.source-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.source-link a:hover {
    border-bottom-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 24px;
}

.footer-text {
    font-size: 13px;
    opacity: 0.8;
    margin: 0 0 8px 0;
}

.footer-contributor {
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
}

.footer-contributor a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.footer-contributor a:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .robots-card {
        padding: 24px;
    }
    
    .robots-header h2 {
        font-size: 20px;
    }
    
    .code-actions {
        opacity: 1;
    }
    
    .code-block-clean {
        padding: 16px;
    }
    
    .code-block-clean pre {
        font-size: 12px;
    }
    
    .cms-box-simple {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .cms-box-simple label {
        white-space: normal;
        font-size: 14px;
    }
    
    .cms-dropdown {
        width: 100%;
    }
    
    .customize-card {
        padding: 24px;
    }
    
    .customize-card h2 {
        font-size: 20px;
    }
    
    .customize-input-group {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .examples-list {
        gap: 12px;
    }
    
    .example-badge {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-item {
        padding: 20px;
    }
}


