/* Robots.txt Generator & Analyzer Specific Styles */

.tool-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 80px 20px 40px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(85, 239, 196, 0.2);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.tool-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}
.tool-title span { color: var(--accent); }

.tool-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Tabs */
.tab-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.tab-nav {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px;
    backdrop-filter: blur(10px);
}
.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(29, 124, 110, 0.4);
}
.tab-btn i { width: 18px; height: 18px; }

.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

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

/* Forms & Inputs */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}
.card-title { color: #fff; font-size: 1.25rem; font-weight: 700; }

.form-group label {
    display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; font-weight: 600;
}
.form-select, .form-group input[type="text"], .form-group input[type="url"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-select:focus, .form-group input:focus { border-color: var(--accent); outline: none; }
.form-select option { background: #1a1c23; color: #fff; }

.input-with-btn { display: flex; gap: 10px; }
.input-with-btn input { flex: 1; }
.btn {
    padding: 12px 24px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #145f55; }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }

/* Tag List */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 6px; font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
}
.tag-remove { cursor: pointer; color: #ff7675; opacity: 0.7; transition: 0.2s; }
.tag-remove:hover { opacity: 1; }
.tag-remove i { width: 14px; height: 14px; }

/* Grid Layouts */
.gen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.code-editor-wrap {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    min-height: 400px;
}
.code-editor {
    width: 100%; height: 100%; min-height: 360px;
    background: transparent; border: none; color: #a5b4fc;
    font-family: 'Courier New', Courier, monospace; font-size: 14px; line-height: 1.6;
    resize: none; outline: none;
}
.code-editor::-webkit-scrollbar { width: 8px; }
.code-editor::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.code-editor::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Analyzer Dashboard */
.url-input-form {
    display: flex; gap: 15px; align-items: center; justify-content: center; max-width: 700px; margin: 0 auto;
}
.input-wrap {
    flex: 1; position: relative; display: flex; align-items: center;
}
.input-wrap i { position: absolute; left: 16px; color: var(--text-muted); width: 20px; height: 20px; }
.input-wrap input {
    width: 100%; padding: 16px 20px 16px 48px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: #fff; font-size: 1.1rem;
}
.input-wrap input:focus { border-color: var(--accent); outline: none; }
.analyze-btn { padding: 16px 32px; border-radius: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 20px; text-align: center;
}
.stat-val { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.stat-lbl { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.content-card pre { color: #a5b4fc; white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New', monospace; margin: 0; }

/* Analysis Items */
.analysis-item {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 16px; margin-bottom: 16px;
    display: flex; gap: 16px; align-items: flex-start;
}
.ai-icon {
    width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ai-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.ai-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ai-error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.ai-content h5 { margin: 0 0 8px 0; color: #fff; font-size: 1.05rem; }
.ai-content p { margin: 0 0 8px 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.ai-fix { background: rgba(255,255,255,0.03); padding: 10px; border-radius: 6px; font-size: 0.85rem; color: rgba(255,255,255,0.8); border-left: 3px solid var(--accent); }

@media(max-width: 992px) {
    .gen-grid, .analysis-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 768px) {
    .url-input-form { flex-direction: column; }
    .input-wrap, .analyze-btn { width: 100%; }
    .tab-nav { flex-wrap: wrap; justify-content: center; }
}
