/* EDA SEO Toolkit — Direction B palette: #FDFCF9 bg, #1E1B4B navy, #F59E0B amber */

.eda-tk-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E1B4B;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- Card grid ---------- */
.eda-tk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0 40px;
}
@media (max-width: 900px) { .eda-tk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eda-tk-grid { grid-template-columns: 1fr; } }

.eda-tk-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #FDFCF9;
    border: 1px solid #e8e4da;
    border-radius: 14px;
    padding: 22px;
    text-decoration: none !important;
    color: #1E1B4B !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.eda-tk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(30, 27, 75, .12);
    border-color: #F59E0B;
}
.eda-tk-card-icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #1E1B4B; color: #F59E0B;
    border-radius: 12px;
}
.eda-tk-card-icon svg { width: 24px; height: 24px; }
.eda-tk-card-title { font-size: 17px; font-weight: 700; }
.eda-tk-card-desc { font-size: 14px; color: #55516e; flex: 1; }
.eda-tk-card-link { font-size: 14px; font-weight: 600; color: #b97a06; }

/* ---------- Tool sections ---------- */
.eda-tk-tool {
    background: #FDFCF9;
    border: 1px solid #e8e4da;
    border-radius: 16px;
    padding: 28px;
    margin: 0 0 28px;
    scroll-margin-top: 90px;
}
.eda-tk-tool-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.eda-tk-tool-icon {
    width: 52px; height: 52px; flex: 0 0 52px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #1E1B4B; color: #F59E0B; border-radius: 14px;
}
.eda-tk-tool-icon svg { width: 28px; height: 28px; }
.eda-tk-tool-head h3 { margin: 0 0 4px; font-size: 21px; color: #1E1B4B; }
.eda-tk-tool-head p { margin: 0; font-size: 14px; color: #55516e; }

.eda-tk-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.eda-tk-form input[type="text"] {
    flex: 1 1 260px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #d9d4c7;
    border-radius: 10px;
    color: #1E1B4B;
    background: #fff;
}
.eda-tk-form input[type="text"]:focus { border-color: #F59E0B; outline: none; }
.eda-tk-form textarea {
    flex: 1 1 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #d9d4c7;
    border-radius: 10px;
    font-family: inherit;
    color: #1E1B4B;
    background: #fff;
    resize: vertical;
}
.eda-tk-hint { font-size: 13px; color: #77738f; margin: 4px 0 0; flex: 1 1 100%; }

.eda-tk-btn {
    display: inline-block;
    background: #1E1B4B; color: #fff !important;
    border: none; border-radius: 10px;
    padding: 12px 26px;
    font-size: 16px; font-weight: 600;
    cursor: pointer; text-decoration: none !important;
    transition: background .15s ease;
}
.eda-tk-btn:hover { background: #2d2870; }
.eda-tk-btn:disabled { opacity: .6; cursor: wait; }
.eda-tk-btn-amber { background: #F59E0B; color: #1E1B4B !important; }
.eda-tk-btn-amber:hover { background: #d99306; }
.eda-tk-btn-ghost { background: transparent; color: #1E1B4B !important; border: 2px solid #1E1B4B; }
.eda-tk-btn-ghost:hover { background: #1E1B4B; color: #fff !important; }
.eda-tk-btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }

/* ---------- Results ---------- */
.eda-tk-results { margin-top: 18px; }
.eda-tk-results:empty { margin-top: 0; }
.eda-tk-domain { font-size: 18px; font-weight: 700; margin: 0 0 12px; word-break: break-all; }

.eda-tk-kv { margin: 0 0 14px; border: 1px solid #e8e4da; border-radius: 10px; overflow: hidden; }
.eda-tk-kv-row { display: flex; gap: 12px; padding: 10px 16px; background: #fff; }
.eda-tk-kv-row:nth-child(even) { background: #faf8f2; }
.eda-tk-kv-row dt { flex: 0 0 180px; font-weight: 600; font-size: 14px; color: #55516e; }
.eda-tk-kv-row dd { margin: 0; font-size: 14px; word-break: break-word; }
@media (max-width: 600px) { .eda-tk-kv-row { flex-direction: column; gap: 2px; } .eda-tk-kv-row dt { flex: none; } }
.eda-tk-kv code { background: #f0ede4; padding: 1px 6px; border-radius: 4px; font-size: 13px; }

.eda-tk-badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; margin: 2px 4px 2px 0;
}
.eda-tk-badge-ok { background: #dcf5e5; color: #146c43; }
.eda-tk-badge-warn { background: #fff3d6; color: #8a5d00; }
.eda-tk-badge-bad { background: #fbdddd; color: #a02020; }
.eda-tk-badge-info { background: #e3e6fb; color: #2b2f8f; }
.eda-tk-badge-muted { background: #eceae4; color: #6b6880; }

.eda-tk-notice {
    border-left: 4px solid #F59E0B;
    background: #fffaf0;
    padding: 10px 14px; border-radius: 0 8px 8px 0;
    font-size: 14px; margin: 12px 0;
}
.eda-tk-notice-bad { border-color: #d33; background: #fdf2f2; }
.eda-tk-notice-info { border-color: #1E1B4B; background: #f2f2fb; }

.eda-tk-meter { height: 12px; background: #eceae4; border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.eda-tk-meter-fill { height: 100%; background: linear-gradient(90deg, #1E1B4B, #F59E0B); border-radius: 999px; transition: width .5s ease; }
.eda-tk-meter-low { background: #2e9e5b; }
.eda-tk-meter-medium { background: #F59E0B; }
.eda-tk-meter-high { background: #d33; }

.eda-tk-hops { list-style: none; margin: 0 0 14px; padding: 0; }
.eda-tk-hops li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e8e4da; font-size: 14px; }
.eda-tk-hop-n {
    flex: 0 0 26px; height: 26px; border-radius: 50%;
    background: #1E1B4B; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.eda-tk-hop-url { word-break: break-all; color: #55516e; }

.eda-tk-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.eda-tk-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.eda-tk-table th, .eda-tk-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e8e4da; }
.eda-tk-table th { background: #1E1B4B; color: #fff; font-weight: 600; white-space: nowrap; }
.eda-tk-table tbody tr:hover { background: #faf8f2; }

.eda-tk-details { margin-top: 12px; }
.eda-tk-details summary { cursor: pointer; font-weight: 600; color: #1E1B4B; }
.eda-tk-details pre {
    background: #1E1B4B; color: #e8e4da;
    padding: 16px; border-radius: 10px; overflow-x: auto;
    font-size: 12.5px; line-height: 1.5;
}

.eda-tk-link { color: #b97a06; font-weight: 600; }
.eda-tk-muted { color: #77738f; font-size: 13px; }
.eda-tk-error { color: #a02020; font-weight: 600; }

.eda-tk-spinner {
    display: flex; align-items: center; gap: 12px;
    padding: 18px; font-size: 15px; color: #55516e;
}
.eda-tk-spinner::before {
    content: ''; width: 26px; height: 26px; flex: 0 0 26px;
    border: 3px solid #e8e4da; border-top-color: #F59E0B;
    border-radius: 50%; animation: eda-tk-spin 0.8s linear infinite;
}
@keyframes eda-tk-spin { to { transform: rotate(360deg); } }

/* ---------- Full report boxes ---------- */
.eda-tk-report {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 14px;
}
@media (max-width: 900px) { .eda-tk-report { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eda-tk-report { grid-template-columns: 1fr; } }

.eda-tk-box {
    background: #fff;
    border: 1px solid #e8e4da;
    border-radius: 12px;
    padding: 16px 18px;
}
.eda-tk-box h4 {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #55516e;
}
.eda-tk-box-value { font-size: 20px; font-weight: 700; margin: 0 0 6px; word-break: break-word; }
.eda-tk-box p { margin: 0 0 6px; font-size: 14px; }
.eda-tk-box .eda-tk-meter { margin: 2px 0 10px; }
.eda-tk-box .eda-tk-notice { margin: 0; }
