/* Robots.txt Generator - Complete Styling */

.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #10b981;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '🤖🔧';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

.robots-generator-root {
    max-width: 1000px;
    margin: 0 auto;
}

/* Template Selection */
.template-selection {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 2px solid rgba(16, 185, 129, 0.1);
}

.template-selection h3 {
    color: #10b981;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

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

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 25px 15px;
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.template-btn:hover {
    border-color: #10b981;
    background: #ecfdf5;
    transform: translateY(-5px);
}

.template-btn.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.template-icon {
    font-size: 36px;
}

.template-name {
    color: #1f2937;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

.template-desc {
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

/* Config Section */
.config-section {
    margin-bottom: 30px;
}

.config-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 2px solid rgba(16, 185, 129, 0.1);
}

.config-card h3 {
    color: #10b981;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Agent List */
.agent-list,
.rules-list,
.sitemap-list {
    margin-bottom: 20px;
}

.agent-item,
.rule-item,
.sitemap-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.agent-input,
.rule-path,
.sitemap-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
}

.agent-input:focus,
.rule-path:focus,
.sitemap-input:focus,
.rule-type:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.rule-type {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 110px;
}

.btn-remove {
    padding: 10px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Advanced Settings */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group small {
    color: #6b7280;
    font-size: 12px;
}

/* Common Patterns */
.patterns-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.patterns-card h4 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.pattern-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 13px;
    color: #1e40af;
}

.pattern-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Generate Section */
.generate-section {
    text-align: center;
    padding: 20px 0;
}

/* Results Section */
.results-section {
    margin-bottom: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    color: #1f2937;
    font-size: 28px;
    font-weight: 900;
}

/* Code Card */
.code-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 2px solid rgba(16, 185, 129, 0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.code-title {
    color: #374151;
    font-weight: 700;
    font-size: 16px;
}

.code-actions {
    display: flex;
    gap: 10px;
}

.btn-copy,
.btn-download {
    padding: 10px 18px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 13px;
}

.btn-copy:hover,
.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
}

.code-block {
    background: #1f2937;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    max-height: 500px;
}

.code-block code {
    color: #34d399;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre;
}

/* Usage Card */
.usage-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 25px;
}

.usage-card h4 {
    color: #1e40af;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.usage-card ol {
    margin: 0 0 0 20px;
    color: #1e3a8a;
}

.usage-card ol li {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.usage-card code {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #dc2626;
}

/* Validator Card */
.validator-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.validator-card h4 {
    color: #92400e;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.validator-card p {
    color: #78350f;
    margin-bottom: 15px;
}

.validator-card ul {
    margin: 0 0 0 20px;
    color: #78350f;
}

.validator-card ul li {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.validator-card strong {
    color: #92400e;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-secondary {
    background: white;
    border: 2px solid #10b981;
    color: #10b981;
}

.btn-secondary:hover {
    background: #10b981;
    color: white;
}

.btn-ghost {
    background: white;
    border: 2px solid rgba(0,0,0,0.1);
    color: #1f2937;
}

.btn-ghost:hover {
    border-color: #10b981;
    color: #10b981;
}

.btn-large {
    padding: 18px 48px;
    font-size: 17px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 5px solid #10b981;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.info-box h4 {
    color: #065f46;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.info-item strong {
    color: #065f46;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* SEO Content */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #10b981;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #10b981;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 15px;
    font-weight: 600;
    z-index: 10000;
    animation: slideInUp 0.3s ease-out;
}

.notification-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .rule-item {
        flex-direction: column;
    }
    
    .rule-type {
        width: 100%;
    }
    
    .pattern-grid {
        grid-template-columns: 1fr;
    }
    
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .code-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .code-actions {
        width: 100%;
    }
    
    .btn-copy,
    .btn-download {
        flex: 1;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .tool-header {
        padding: 40px 20px;
    }
    
    .tool-header h1 {
        font-size: 28px;
    }
    
    .tool-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-separator {
        display: none;
    }
    
    .template-selection,
    .config-card {
        padding: 25px;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agent-item,
    .sitemap-item {
        flex-direction: column;
    }
    
    .btn-remove {
        width: 100%;
    }
    
    .notification-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 14px;
    }
}

html {
    scroll-behavior: smooth;
}