/* Robots.txt Generator - Main Styles */

/* Container & Layout */
.rtg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header Styles */
.rtg-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.rtg-title {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.rtg-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Card Styles */
.rtg-form-card,
.rtg-output-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

/* Form Sections */
.rtg-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.rtg-form-section:last-child {
    border-bottom: none;
}

.rtg-form-section h3 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #2d3748;
    font-weight: 600;
}

/* Form Elements */
.rtg-select,
.rtg-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.rtg-select:focus,
.rtg-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rtg-helper {
    font-size: 0.9rem;
    color: #718096;
    margin: 8px 0 0 0;
}

/* Search Engines Grid */
.rtg-engines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rtg-engine-item {
    display: flex;
    flex-direction: column;
}

.rtg-engine-item label {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 500;
}

.rtg-engine-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
}

/* Restricted Directories */
.rtg-dir-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.rtg-dir-input {
    flex: 1;
}

.rtg-add-dir-btn {
    padding: 12px 20px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.rtg-add-dir-btn:hover {
    background: #38a169;
}

/* Action Buttons */
.rtg-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.rtg-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.rtg-btn-primary {
    background: #667eea;
    color: white;
}

.rtg-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(102, 126, 234, 0.2);
}

.rtg-btn-secondary {
    background: #48bb78;
    color: white;
}

.rtg-btn-secondary:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.rtg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading State */
.rtg-btn.loading {
    position: relative;
    color: transparent;
}

.rtg-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: rtg-spin 0.8s linear infinite;
}

@keyframes rtg-spin {
    to { transform: rotate(360deg); }
}

/* Output Section */
.rtg-output-container {
    margin-top: 20px;
}

.rtg-textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    background: #f8f9fa;
    color: #2d3748;
}

.rtg-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.rtg-output-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.rtg-btn-copy {
    background: #4299e1;
    color: white;
    padding: 10px 20px;
    min-width: auto;
}

.rtg-btn-copy:hover {
    background: #3182ce;
}

.rtg-copy-message {
    font-size: 0.9rem;
    color: #48bb78;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rtg-copy-message.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rtg-container {
        padding: 15px;
    }
    
    .rtg-title {
        font-size: 2rem;
    }
    
    .rtg-form-card,
    .rtg-output-card {
        padding: 20px;
    }
    
    .rtg-engines-grid {
        grid-template-columns: 1fr;
    }
    
    .rtg-actions {
        flex-direction: column;
    }
    
    .rtg-btn {
        width: 100%;
        min-width: auto;
    }
}