/* Robots.txt Analyzer Tool CSS */

/* Tool Tabs */
.tool-tabs {
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.tab-link {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    background-color: #f8f8f8;
    transition: all 0.3s;
}

.tab-link.current {
    background-color: #fff;
    border-color: #ddd;
    border-bottom-color: #fff;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    background-color: #fff;
}

.tab-content.current {
    display: block;
}

/* Input Methods */
.input-methods {
    margin: 20px 0;
}

.input-method-tabs {
    display: flex;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.input-method-tab {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
}

.input-method-tab.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.input-method {
    display: none;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.input-method.active {
    display: block;
}

.field-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Score Visualization */
.score-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
}

.score-circle.excellent {
    background-color: #28a745;
}

.score-circle.good {
    background-color: #17a2b8;
}

.score-circle.average {
    background-color: #ffc107;
}

.score-circle.poor {
    background-color: #dc3545;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
}

.score-label {
    font-size: 0.8em;
    text-transform: uppercase;
}

.score-summary {
    flex-grow: 1;
}

/* Content Comparison */
.content-comparison {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.comparison-header {
    display: flex;
    background-color: #f0f0f0;
}

.comparison-header h3 {
    flex: 1;
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 1em;
}

.comparison-content {
    display: flex;
    max-height: 300px;
}

.original-content, 
.optimized-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid #ddd;
}

.optimized-content {
    border-right: none;
    background-color: #f8fff8;
}

.original-content pre, 
.optimized-content pre {
    margin: 0;
    padding: 10px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
}

.copy-optimized {
    padding: 10px;
    background-color: #f0f0f0;
    text-align: right;
}

/* Analysis Tabs */
.analysis-tabs {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.analysis-tab-header {
    display: flex;
    background-color: #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
}

.analysis-tab {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.analysis-tab.active {
    background-color: #007bff;
    color: white;
}

.analysis-tab-content {
    padding: 15px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Issue Cards */
.issue-filters, 
.paths-filter {
    display: flex;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.issue-filter, 
.path-filter {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 1px;
}

.issue-filter.active, 
.path-filter.active {
    background-color: #17a2b8;
    color: white;
}

.issues-list {
    max-height: 500px;
    overflow-y: auto;
}

.issue-card {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.issue-card.error {
    border-left: 5px solid #dc3545;
}

.issue-card.warning {
    border-left: 5px solid #ffc107;
}

.issue-card.info {
    border-left: 5px solid #17a2b8;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.issue-type {
    font-weight: bold;
}

.issue-severity {
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 3px;
}

.error .issue-severity {
    background-color: #dc3545;
    color: white;
}

.warning .issue-severity {
    background-color: #ffc107;
    color: #212529;
}

.info .issue-severity {
    background-color: #17a2b8;
    color: white;
}

.issue-body {
    padding: 15px;
}

.issue-description {
    margin-top: 0;
}

.issue-code {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin: 10px 0;
    position: relative;
}

.issue-code code {
    display: block;
    white-space: pre-wrap;
    font-family: monospace;
    max-width: 100%;
    overflow-x: auto;
}

.line-number {
    display: inline-block;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.issue-recommendation {
    margin-bottom: 0;
    color: #28a745;
    font-style: italic;
}

/* User Agent Cards */
.user-agents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.user-agent-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f8f8f8;
}

.user-agent-name {
    margin-bottom: 10px;
}

.agent-note {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}

/* Path Cards */
.paths-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.path-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.allowed-path .path-header {
    background-color: #d4edda;
    color: #155724;
}

.disallowed-path .path-header {
    background-color: #f8d7da;
    color: #721c24;
}

.path-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.path-type {
    font-weight: bold;
}

.path-agent {
    font-size: 0.9em;
    padding: 2px 6px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.path-body {
    padding: 10px;
    background-color: #f8f8f8;
}

.path-value {
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 5px;
}

/* Sitemap Cards */
.sitemaps-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.sitemap-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sitemap-url {
    word-break: break-all;
}

.sitemap-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.recommendation-box {
    margin-top: 15px;
    padding: 15px;
    background-color: #d4edda;
    border-radius: 4px;
    color: #155724;
}

.example-code {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-family: monospace;
}

/* Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f8f8f8;
    display: flex;
    align-items: flex-start;
}

.recommendation-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.export-options {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.no-data, .no-issues {
    padding: 20px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 4px;
}

/* Learn Section */
.learn-container {
    max-width: 800px;
    margin: 0 auto;
}

.directive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.directive-table th, 
.directive-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.directive-table th {
    background-color: #f0f0f0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .score-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .score-circle {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .comparison-content {
        flex-direction: column;
    }
    
    .original-content, 
    .optimized-content {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .user-agents-list,
    .paths-list {
        grid-template-columns: 1fr;
    }
    
    .sitemap-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sitemap-meta {
        margin-top: 10px;
        align-items: flex-start;
    }
    
    .export-buttons {
        flex-direction: column;
    }
}

/* Syntax Highlighting */
.hl-comment {
    color: #888;
    font-style: italic;
}

.hl-user-agent {
    color: #0066cc;
    font-weight: bold;
}

.hl-user-agent-value {
    color: #6600cc;
}

.hl-disallow {
    color: #cc0000;
    font-weight: bold;
}

.hl-disallow-value {
    color: #ff3333;
}

.hl-allow {
    color: #008800;
    font-weight: bold;
}

.hl-allow-value {
    color: #33aa33;
}

.hl-sitemap {
    color: #ff6600;
    font-weight: bold;
}

.hl-sitemap-value {
    color: #ff9933;
    text-decoration: underline;
}

.hl-crawl-delay {
    color: #cc6600;
    font-weight: bold;
}

.hl-crawl-delay-value {
    color: #ff9900;
}

.hl-unknown {
    color: #888;
    font-weight: bold;
}

.hl-unknown-value {
    color: #888;
}

/* Site Structure Tree View */
.site-structure-tree {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.tree-helper-text {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tree-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tree-note {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.tree-node {
    margin: 4px 0;
}

.tree-node-content {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tree-node-content:hover {
    background-color: #f0f0f0;
}

.tree-toggle, .tree-toggle-spacer {
    margin-right: 5px;
    cursor: pointer;
    width: 20px;
    text-align: center;
}

.tree-node-icon {
    margin-right: 8px;
}

.tree-node-icon.allowed {
    color: #28a745;
}

.tree-node-icon.disallowed {
    color: #dc3545;
}

.tree-node-name {
    font-family: monospace;
}

.tree-children {
    padding-left: 24px;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.tree-children.collapsed {
    display: none;
}

.syntax-highlighted-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

/* API Integration Section */
.api-integration-section {
    margin-top: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.api-integration-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.code-example {
    margin: 20px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.code-example h4 {
    margin: 0;
    padding: 10px 15px;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.code-example pre {
    margin: 0;
    padding: 15px;
    background-color: #f8f8f8;
    overflow-x: auto;
}

.code-example code {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    color: #333;
}

/* Quick Tips Container - NEW */
.quick-tips-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.quick-tips-container h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3em;
    display: flex;
    align-items: center;
}

.quick-tips-container h3 i {
    color: #f39c12;
    margin-right: 10px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tip-card {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
}

.tip-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.tip-icon i {
    font-size: 18px;
    color: #3498db;
}

.tip-icon i.fa-check-circle {
    color: #2ecc71;
}

.tip-icon i.fa-exclamation-triangle {
    color: #e74c3c;
}

.tip-icon i.fa-search {
    color: #3498db;
}

.tip-icon i.fa-sitemap {
    color: #9b59b6;
}

.tip-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #34495e;
}

.tip-content p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

/* User Agents Reference - NEW */
.user-agents-reference {
    margin: 20px 0 30px;
    overflow-x: auto;
}

/* Table sorting styles - NEW */
.sortable {
    position: relative;
    cursor: pointer;
}

.sortable:hover {
    background-color: rgba(0,0,0,0.03);
}

.sortable::after {
    content: "⇕";
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.5;
}

.sorted-asc::after {
    content: "↑";
    opacity: 1;
}

.sorted-desc::after {
    content: "↓";
    opacity: 1;
}

/* Modern SEO Considerations - NEW */
.modern-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.seo-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
}

.seo-card h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.seo-card p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

.example-code {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
}

.example-code code {
    display: block;
    font-family: monospace;
    white-space: pre-wrap;
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
}

.bad-practice {
    background-color: #fef2f2;
    border-left: 4px solid #e74c3c;
    padding: 12px;
    margin-top: 15px;
}

.bad-practice p {
    margin-top: 0;
    margin-bottom: 8px;
    color: #c0392b;
}

.bad-practice code {
    display: block;
    font-family: monospace;
    white-space: pre-wrap;
    color: #e74c3c;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Media Queries for Responsive Design - NEW */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-seo-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-card {
        padding: 12px;
    }
    
    .user-agents-reference {
        margin: 15px 0;
    }
    
    .user-agents-reference table {
        min-width: 600px;
    }
} 