/* Digital Marketing Tools */
.page-tools { background: #f1f5f9; }

.tools-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2072f3 100%);
    color: #fff; padding: 56px 0 48px; text-align: center;
}
.tools-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.tools-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.tools-hero p { font-size: 17px; opacity: 0.9; max-width: 640px; margin: 0 auto; }

.tools-body { padding: 40px 0 64px; }
.tools-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }

.tools-sidebar {
    background: #fff; border-radius: 16px; border: 1px solid #e2e8f0;
    padding: 20px; position: sticky; top: 100px; box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}
.tools-sidebar h3 { font-size: 14px; margin-bottom: 14px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.tools-nav { display: flex; flex-direction: column; gap: 4px; }
.tools-nav-link {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 10px; color: #475569; text-decoration: none; font-size: 14px; font-weight: 500;
    transition: all 0.2s;
}
.tools-nav-link:hover, .tools-nav-link.active { background: #eff6ff; color: #2072f3; }
.tools-nav-link i { width: 18px; text-align: center; }
.tools-sidebar-cta { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.tools-sidebar-cta p { font-size: 13px; color: #64748b; margin-bottom: 10px; }

.tools-main { min-width: 0; }
.tool-panel {
    display: none; background: #fff; border-radius: 16px; border: 1px solid #e2e8f0;
    padding: 28px 32px; box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}
.tool-panel.active { display: block; animation: toolFade 0.3s ease; }
@keyframes toolFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tool-panel h2 { font-size: 22px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.tool-panel h2 i { color: #2072f3; }
.tool-desc { color: #64748b; margin-bottom: 20px; font-size: 15px; }

.tool-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.tool-form .form-group { margin-bottom: 14px; }
.tool-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }

.meta-preview-box {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px;
    margin: 20px 0; font-family: Arial, sans-serif;
}
.meta-preview-title { color: #1a0dab; font-size: 20px; line-height: 1.3; margin-bottom: 4px; cursor: pointer; }
.meta-preview-title:hover { text-decoration: underline; }
.meta-preview-url { color: #006621; font-size: 14px; margin-bottom: 4px; }
.meta-preview-desc { color: #545454; font-size: 14px; line-height: 1.5; }

.tool-stats-row { display: flex; gap: 16px; flex-wrap: wrap; }
.tool-stat { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; background: #f1f5f9; color: #64748b; }
.tool-stat.is-ok { background: #ecfdf5; color: #059669; }
.tool-stat.is-warn { background: #fffbeb; color: #d97706; }
.tool-stat.is-bad { background: #fef2f2; color: #dc2626; }

.tool-results { margin-top: 20px; }
.tool-results table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool-results th, .tool-results td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.tool-results th { background: #f8fafc; font-weight: 600; }

.tool-results--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.tool-result-card {
    background: linear-gradient(135deg, #eff6ff, #ecfdf5); border-radius: 14px;
    padding: 20px; text-align: center; border: 1px solid #bfdbfe;
}
.tool-result-card strong { display: block; font-size: 28px; color: #2072f3; margin-bottom: 4px; }
.tool-result-card span { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.tool-result-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.tool-result-value { font-size: 36px; font-weight: 800; }
.tool-result-sub { font-size: 13px; color: #64748b; margin-top: 8px; }
.tool-loading { text-align: center; padding: 32px; color: #64748b; font-size: 15px; }

.utm-copy-row { display: flex; gap: 8px; margin-top: 8px; }
.utm-output { margin-top: 20px; padding: 16px; background: #f8fafc; border-radius: 12px; }

.social-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.social-limit-card {
    padding: 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc;
}
.social-limit-card strong { display: block; font-size: 13px; margin-bottom: 6px; }
.social-limit-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.social-limit-fill { height: 100%; background: #2072f3; border-radius: 3px; transition: width 0.2s; }
.social-limit-fill.over { background: #ef4444; }

.hashtag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hashtag-tag {
    padding: 8px 14px; background: #eff6ff; color: #2072f3; border-radius: 50px;
    font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid #bfdbfe;
}
.hashtag-tag:hover { background: #2072f3; color: #fff; }

.tools-cta-band {
    background: linear-gradient(135deg, #2072f3, #00c4a7);
    color: #fff; text-align: center; padding: 48px 24px;
}
.tools-cta-band h2 { margin-bottom: 8px; }
.tools-cta-band p { opacity: 0.9; margin-bottom: 20px; }

.tool-admin-cta {
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(145deg, #f8fbff, #eff6ff);
    border: 1px solid rgba(32, 114, 243, 0.15);
    border-radius: 14px;
    text-align: center;
}
.tool-admin-cta p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}
.tool-admin-cta p i { color: #2072f3; margin-right: 6px; }

@media (max-width: 900px) {
    .tools-layout { grid-template-columns: 1fr; }
    .tools-sidebar { position: static; }
    .tools-nav { flex-direction: row; flex-wrap: wrap; }
    .tool-form-grid { grid-template-columns: 1fr; }
}
