/* ===================================
   BIZI DIGITAL - TOOLS DIRECTORY
   =================================== */

.directory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HERO === */
.directory-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2235 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.directory-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--white);
}

.directory-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* === SEARCH === */
.directory-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.directory-search input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    color: var(--navy);
}

.directory-search button {
    background: var(--bright-blue);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.directory-search button:hover {
    background: var(--medium-blue);
}

/* === DISCLOSURE === */
.directory-disclosure {
    font-size: 0.75rem;
    opacity: 0.5;
    max-width: 520px;
    margin: 16px auto 0;
    line-height: 1.5;
}

/* === EDITOR'S PICKS === */
.directory-picks {
    padding: 48px 0 40px;
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

.picks-title {
    font-size: 1.4rem;
    margin: 0 0 4px;
    color: var(--navy);
}

.picks-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 24px;
}

.picks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pick-card {
    display: flex;
    flex-direction: column;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.25s ease;
}

.pick-card:hover {
    border-color: var(--bright-blue);
    box-shadow: 0 8px 24px rgba(1, 156, 253, 0.12);
}

.pick-card__actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

.pick-card__review {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bright-blue);
    text-decoration: none;
}

.pick-card__review:hover { text-decoration: underline; }

.pick-card__visit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    margin-left: auto;
}

.pick-card__visit:hover { color: var(--bright-blue); }

/* === BADGES === */
.badge-we-use,
.badge-bizi-built {
    display: inline-block;
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.badge-we-use {
    background: #16a34a;
}

.badge-bizi-built {
    background: var(--bright-blue);
    margin-left: 6px;
}

/* === CARD ACTIONS === */
.tool-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.tool-card__cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bright-blue);
    text-decoration: none;
}

.tool-card__cta:hover { text-decoration: underline; }

.tool-card__visit {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    text-decoration: none;
    margin-left: auto;
}

.tool-card__visit:hover { color: var(--bright-blue); }

/* === LAYOUT === */
.directory-main {
    padding: 40px 0 80px;
    background: var(--light-gray);
}

.directory-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* === SIDEBAR CATEGORIES === */
.directory-sidebar__inner {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    position: sticky;
    top: 24px;
}

.directory-sidebar__title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.directory-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directory-sidebar__list li {
    margin: 0;
}

.sidebar-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.sidebar-cat:hover {
    background: var(--light-gray);
    color: var(--bright-blue);
}

.sidebar-cat.active {
    background: var(--bright-blue);
    color: var(--white);
}

.sidebar-cat__count {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    padding: 2px 8px;
    font-weight: 600;
}

.sidebar-cat.active .sidebar-cat__count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.directory-count {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

/* === TOOL CARDS GRID === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: var(--navy);
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    position: relative;
}

.tool-card:hover {
    border-color: var(--bright-blue);
    box-shadow: 0 8px 24px rgba(1, 156, 253, 0.12);
    transform: translateY(-2px);
}

.tool-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tool-card__logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--light-gray);
    padding: 4px;
    flex-shrink: 0;
}

.tool-card__logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bright-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tool-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.tool-card__category {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.tool-card__outcome {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.tool-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tool-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-badge--pricing {
    background: #e0f2fe;
    color: #0369a1;
}

.tool-badge--size {
    background: #f0fdf4;
    color: #15803d;
}

.tool-badge--trust {
    background: #fef3c7;
    color: #92400e;
}

.tool-card__cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bright-blue);
}

.directory-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--gray);
}

/* === SINGLE TOOL === */
.tool-breadcrumb {
    background: var(--light-gray);
    padding: 16px 0;
    font-size: 0.85rem;
}

.tool-breadcrumb a {
    color: var(--bright-blue);
}

.tool-breadcrumb .sep {
    margin: 0 8px;
    color: var(--gray);
}

.tool-breadcrumb .current {
    color: var(--gray);
}

.tool-header {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0 40px;
}

.tool-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.tool-header__left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tool-header__logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--white);
    padding: 6px;
    object-fit: contain;
}

.tool-header h1 {
    font-size: 2rem;
    margin: 0 0 4px;
    color: var(--white);
}

.tool-header__cat {
    font-size: 0.85rem;
    opacity: 0.7;
}

.tool-header__outcome {
    margin-top: 8px;
    opacity: 0.85;
    font-size: 1rem;
    max-width: 600px;
}

.tool-header__cta {
    display: inline-block;
    background: var(--bright-blue);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tool-header__cta:hover {
    background: var(--light-blue);
    color: var(--white);
}

.tool-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === TOOL BODY === */
.tool-body {
    padding: 48px 0 80px;
    background: var(--white);
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* === TLDR BOX === */
.tool-tldr {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.tool-tldr h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bright-blue);
    margin: 0 0 10px;
    padding: 0;
    border: none;
}

.tool-tldr > p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 16px;
}

.tool-tldr__row {
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
    padding: 6px 0;
    border-top: 1px solid rgba(186, 230, 253, 0.6);
    color: #334155;
}

.tool-tldr__label {
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

.tool-section {
    margin-bottom: 40px;
}

.tool-section h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-gray);
}

.tool-prose {
    line-height: 1.8;
    color: #334155;
}

.tool-prose p {
    margin-bottom: 16px;
}

/* Verdict */
.tool-verdict {
    background: #f8fafc;
    border-left: 4px solid var(--bright-blue);
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

.tool-verdict h2 {
    border: none;
    padding: 0;
    margin-bottom: 12px;
}

.tool-verdict p {
    line-height: 1.7;
    color: #334155;
}

/* Pros & Cons */
.tool-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tool-pros-cons h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
}

.pros li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.cons li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

/* FAQ */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    background: #f8fafc;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    margin-right: 10px;
    font-weight: 700;
    color: var(--bright-blue);
}

.faq-item[open] summary::before {
    content: "\2212";
}

.faq-item p {
    padding: 10px 16px;
    margin: 0;
    line-height: 1.6;
    color: #475569;
    font-size: 0.8rem;
}

/* Alternatives */
.tool-alternatives {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alt-pill {
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 500;
}

/* === SIDEBAR === */
.sidebar-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.quick-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
}

.quick-facts dt {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray);
}

.quick-facts dd {
    font-size: 0.85rem;
    color: var(--navy);
    margin: 0;
}

.sidebar-cta {
    display: block;
    text-align: center;
    background: var(--bright-blue);
    color: var(--white);
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.sidebar-cta:hover {
    background: var(--medium-blue);
    color: var(--white);
}

.sidebar-freshness {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
}

/* === AEO INTRO === */
.directory-aeo-intro {
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 640px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* === DIRECTORY CTA STRIP === */
.directory-cta-strip {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.directory-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a2235 100%);
    border-radius: 12px;
    padding: 32px 40px;
    color: var(--white);
}

.directory-cta-text h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: var(--white);
}

.directory-cta-text p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
    max-width: 520px;
    line-height: 1.5;
}

.directory-cta-btn {
    display: inline-block;
    background: var(--bright-blue);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.directory-cta-btn:hover {
    background: var(--light-blue);
    color: var(--white);
}

/* === TOOL PAGE CTA BLOCK === */
.tool-cta-block {
    margin-bottom: 40px;
}

.tool-cta-inner {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2235 100%);
    border-radius: 12px;
    padding: 32px;
    color: var(--white);
    text-align: center;
}

.tool-cta-inner h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: var(--white);
}

.tool-cta-inner p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0 0 20px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tool-cta-btn {
    display: inline-block;
    background: var(--bright-blue);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.tool-cta-btn:hover {
    background: var(--light-blue);
    color: var(--white);
}

/* === TOOL DEFINITION === */
.tool-definition {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

/* === SINGLE TOOL PAGE BADGES === */
.tool-badge--weuse {
    background: #16a34a;
    color: var(--white);
}

.tool-badge--bizi-built {
    background: var(--bright-blue);
    color: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .picks-grid { grid-template-columns: repeat(2, 1fr); }
    .directory-layout { grid-template-columns: 1fr; }
    .directory-sidebar__inner {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }
    .directory-sidebar__title {
        border: none;
        padding: 0;
        margin: 0 8px 0 0;
    }
    .directory-sidebar__list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .sidebar-cat { padding: 6px 12px; border-radius: 100px; border: 1px solid #e2e8f0; }
    .sidebar-cat.active { border-color: var(--bright-blue); }
}

@media (max-width: 768px) {
    .directory-hero { padding: 60px 0 40px; }
    .directory-hero h1 { font-size: 1.8rem; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .picks-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-layout { grid-template-columns: 1fr; }
    .tool-header__inner { flex-direction: column; }
    .tool-pros-cons { grid-template-columns: 1fr; }
    .tool-sidebar { order: -1; }
    .directory-cta-inner { flex-direction: column; text-align: center; padding: 24px; }
    .directory-cta-text p { max-width: none; }
}
