/* ═══════════════════════════════════════════════════════════════
   Agent Template Pages — Robofy.ai
═══════════════════════════════════════════════════════════════ */

/* ── Blueprint badge (hero) ────────────────────────────────── */
.at-blueprint-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #2F80ED;
    background: rgba(47, 128, 237, 0.08);
    border: 1px solid rgba(47, 128, 237, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 18px;
}

.at-blueprint-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ── Includes bar (hero) ────────────────────────────────────── */
.at-includes-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    margin-top: 4px;
}

.at-includes-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.at-includes-bar svg {
    width: 14px;
    height: 14px;
    color: #2F80ED;
    flex-shrink: 0;
}

/* ── Hero image transition (shared via industry-pages.css but
      repeated here as a safety net) ─────────────────────────── */
.hero-agent-img   { transition: opacity 0.4s ease; }
.hero-agent-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }

/* ── Breadcrumb (replaces blueprint badge when industry_url set) */
.at-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.at-breadcrumb-link {
    color: #2F80ED;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.at-breadcrumb-link:hover {
    color: #1a65d6;
    text-decoration: underline;
}

.at-breadcrumb-current {
    color: #6b7280;
    font-weight: 500;
}

.at-breadcrumb svg {
    width: 12px;
    height: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* ── Live chatbot embed (hero visual when chatbot is configured) */
.at-chatbot-embed {
    width: 100%;
}

.at-chatbot-frame-wrap {
    background: #f1f5f9;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10);
}

.at-chatbot-frame-wrap iframe {
    display: block;
    border: 0;
}

.at-chatbot-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.at-chatbot-loading svg {
    width: 28px;
    height: 28px;
    animation: at-spin 1s linear infinite;
}

@keyframes at-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Gallery (index) ────────────────────────────────────────── */
.at-gallery-section {
    padding: 100px 0 120px;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.at-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.at-gallery-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.at-gallery-card:hover {
    border-color: #2F80ED;
    box-shadow: 0 12px 36px rgba(47, 128, 237, 0.09);
    transform: translateY(-4px);
    text-decoration: none;
}

.at-gallery-card-industry {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2F80ED;
    margin-bottom: 12px;
}

.at-gallery-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 14px;
}

.at-gallery-card-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 28px;
}

.at-gallery-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2F80ED;
    transition: gap 0.2s ease;
}

.at-gallery-card:hover .at-gallery-card-link {
    gap: 10px;
}

.at-gallery-card-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 991px) {
    .at-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .at-gallery-grid { grid-template-columns: 1fr; }
    .at-gallery-section { padding: 60px 0 80px; }
}

/* ── Hero tagline (shown below SEO h1) ──────────────────────── */
.at-hero-tagline {
    font-size: 17px;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
    font-style: italic;
    margin-top: -8px;
    margin-bottom: 12px;
}

/* ── Features section ───────────────────────────────────────── */
.at-features-section {
    padding: 100px 0;
    background: #f8fafc;
}

.at-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
}

.at-feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.at-feature-card:hover {
    border-color: #2F80ED;
    box-shadow: 0 8px 28px rgba(47, 128, 237, 0.09);
    transform: translateY(-3px);
}

.at-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(47, 128, 237, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.at-feature-icon svg {
    width: 20px;
    height: 20px;
    color: #2F80ED;
}

.at-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0;
}

.at-feature-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991px) {
    .at-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .at-features-grid { grid-template-columns: 1fr; }
    .at-features-section { padding: 60px 0; }
}
