/*
Theme Name: SEO Agent Directory
Theme URI: https://example.com/seo-agent-directory
Author: Custom
Description: Compact dark theme for SEO Agent listing with WhatsApp numbers. Includes Custom Post Type for easy agent management from WordPress Admin.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: seo-agent-directory
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0b1120;
    color: #e2e8f0;
    line-height: 1.5;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(37, 211, 102, 0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

a { text-decoration: none; color: inherit; }

.site-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    padding: 8px 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.site-logo {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-logo span {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.official-wa {
    background: linear-gradient(135deg, #25d366, #1ebe57);
    color: #fff !important;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
    transition: all 0.25s ease;
}

.official-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.35);
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 14px 36px;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.hero p {
    color: #94a3b8;
    font-size: 0.78rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.4;
}

.search-box {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(8px);
}

.search-box label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 500;
}

.search-box input {
    width: 100%;
    padding: 8px 11px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.84rem;
    outline: none;
}

.search-box input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.search-box .hint {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 5px;
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 2px;
}

.stats .count { font-size: 0.8rem; color: #94a3b8; }
.stats .count strong { color: #38bdf8; font-weight: 700; }
.stats .note { font-size: 0.72rem; color: #64748b; }

.agent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 12px;
    padding: 11px 13px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.agent-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.agent-card:hover::before { opacity: 1; }

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.agent-type {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    font-weight: 600;
}

.agent-id {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 1px 0 0;
    letter-spacing: -0.4px;
}

.status {
    background: rgba(6, 95, 70, 0.5);
    color: #6ee7b7;
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid rgba(110, 231, 183, 0.2);
}

.agent-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 1px;
}

.agent-location {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.agent-desc {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 8px;
    line-height: 1.35;
}

.whatsapp-section {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 9px;
    padding: 9px 11px;
}

.wa-label {
    font-size: 0.62rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
    font-weight: 600;
}

.wa-number {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.3px;
    margin-bottom: 7px;
    font-variant-numeric: tabular-nums;
}

.wa-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.35);
}

.btn-copy {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.btn-copy:hover {
    background: rgba(71, 85, 105, 0.9);
}

.site-footer {
    text-align: center;
    margin-top: 32px;
    padding: 18px 14px 6px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    color: #64748b;
    font-size: 0.72rem;
}

.no-agents {
    text-align: center;
    padding: 30px 16px;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px dashed #334155;
    font-size: 0.88rem;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.25rem; }
    .agent-header { flex-direction: column; gap: 4px; }
    .wa-buttons { flex-direction: column; }
    .btn { min-width: 100%; }
    .container { padding: 12px 12px 30px; }
}
