/* ToolFlik Reusable Components */

/* Tool Card */
.tool-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--box-shadow-subtle);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    border-color: #D1CBBF;
    text-decoration: none;
}

.tool-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(15, 32, 56, 0.05);
    color: var(--color-brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tool-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand-primary);
    margin-bottom: 0.5rem;
}

.tool-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(230, 225, 213, 0.6);
}

/* Category Card */
.category-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    box-shadow: var(--box-shadow-subtle);
}

.category-card:hover {
    border-color: var(--color-brand-primary);
    box-shadow: var(--box-shadow-card);
    transform: translateY(-1px);
    text-decoration: none;
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(15, 32, 56, 0.05);
    color: var(--color-brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--color-brand-primary);
}

.category-info p {
    font-size: 0.825rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Badges */
.badge-tf {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.badge-featured {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-popular {
    background-color: #E0E7FF;
    color: #3730A3;
}

.badge-published {
    background-color: #DEF7EC;
    color: #03543F;
}

.badge-draft {
    background-color: #F3F4F6;
    color: #374151;
}

/* Content Container Card */
.content-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--box-shadow-subtle);
    margin-bottom: 2rem;
}

/* Alerts */
.alert-tf {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-tf-success {
    background-color: #DEF7EC;
    border-color: #BCF0DA;
    color: #03543F;
}

.alert-tf-danger {
    background-color: #FDE8E8;
    border-color: #FBD5D5;
    color: #9B1C1C;
}

.alert-tf-info {
    background-color: #E1EFFE;
    border-color: #BEE3F8;
    color: #1E429F;
}

/* Search bar component */
.search-box-tf {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.search-box-tf input {
    padding-left: 2.75rem;
    height: 48px;
    border-radius: 24px;
    font-size: 0.95rem;
    box-shadow: var(--box-shadow-card);
}

.search-box-tf svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
}

/* Tool Container */
.tool-header-block {
    margin-bottom: 1.5rem;
}

.tool-header-block h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-header-block p {
    font-size: 1.05rem;
    max-width: 800px;
}

.tool-interface-wrapper {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-card);
    padding: 2rem;
    margin-bottom: 3rem;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-brand-primary);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Live Invoice Preview */
.invoice-paper {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(15, 32, 56, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 2.5rem;
    min-height: 700px;
    color: #111822;
    font-family: var(--font-sans);
}

.invoice-paper table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-paper th {
    background-color: #F8FAFC;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.invoice-paper td {
    padding: 0.75rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.925rem;
}

.invoice-paper .totals-row td {
    border-bottom: none;
    padding: 0.4rem 0.75rem;
}

/* ==========================================================================
   Page Banner / Intro Section (Centered & Clean)
   ========================================================================== */
.page-banner {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F3F7 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0 2.75rem;
    overflow: hidden;
    text-align: center;
}

.page-banner-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(15, 32, 56, 0.22) 1.6px, transparent 1.6px);
    background-size: 20px 20px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0.85) 85%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0.85) 85%, rgba(0, 0, 0, 0.6) 100%);
}

.page-banner-graphic {
    position: absolute;
    right: -15px;
    top: -20px;
    width: 380px;
    height: 240px;
    pointer-events: none;
    opacity: 0.16;
    color: var(--color-brand-primary);
}

.page-banner-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-banner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-brand-primary);
    background-color: rgba(15, 32, 56, 0.06);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.page-banner-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--color-brand-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0 auto 0.65rem auto;
    text-align: center;
}

.page-banner-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 680px;
    text-align: center;
}

.page-banner-extra {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto 0;
}

.page-banner-extra .search-box-tf {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Ensure breadcrumbs are completely disabled across public site */
.breadcrumb-nav,
.page-banner-breadcrumb {
    display: none !important;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 2.25rem 0 2rem;
    }
    .page-banner-title {
        font-size: 1.75rem;
    }
    .page-banner-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .page-banner-graphic {
        width: 240px;
        height: 160px;
        opacity: 0.03;
    }
    .page-banner-extra {
        margin-top: 1.25rem;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 1.75rem 0 1.5rem;
    }
    .page-banner-title {
        font-size: 1.5rem;
    }
    .page-banner-badge {
        font-size: 0.6875rem;
        padding: 0.2rem 0.6rem;
    }
}


