/* ==========================================
   ALTERNATIVES DIRECTORY PAGE STYLES
   Brand: #000000 dark, #d1fe17 accent, no box-shadows
   ========================================== */

/* Hero Section - padding handled by mobile-hero-fixes.css */
.alternatives-hero {
    background-color: #000000;
    padding-bottom: clamp(40px, 6vw, 60px);
    text-align: center;
}

.alternatives-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.alternatives-hero .hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.alternatives-hero .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.alternatives-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(209, 254, 23, 0.1);
    border: 1px solid rgba(209, 254, 23, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    color: #d1fe17;
}

.alternatives-hero .hero-badge .iconify {
    font-size: 1rem;
}

/* Category Navigation */
.category-nav-section {
    background-color: #ffffff;
    padding: 24px 0;
    position: sticky;
    top: 72px;
    z-index: 90;
}

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

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-chip {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: background-color 0.2s, color 0.2s;
}

.category-chip:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Section Titles */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1rem);
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

/* Featured Section */
.featured-section {
    background-color: #f9fafb;
    padding: clamp(40px, 5vw, 60px) 0;
}

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

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

@media (max-width: 1100px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 500px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.featured-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.featured-card .tool-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.featured-card .tool-info {
    flex: 1;
    min-width: 0;
}

.featured-card .tool-name {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.featured-card .tool-tagline {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 2px 0 0;
}

.featured-card-body {
    flex: 1;
}

.tool-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #000000;
}

.meta-value.has-free {
    color: #059669;
}

.meta-value.no-free {
    color: #6b7280;
}

.meta-value.approved {
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-value.not-approved {
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 4px;
}

.best-for {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

.best-for strong {
    color: #374151;
}

.featured-card-footer {
    margin-top: 16px;
    padding-top: 16px;
}

.btn-compare {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-compare:hover {
    background-color: #d1fe17;
    color: #000000;
}

/* Category Sections */
.category-section {
    background-color: #ffffff;
    padding: clamp(40px, 5vw, 60px) 0;
}

.category-section:nth-child(even) {
    background-color: #f9fafb;
}

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

.category-header {
    margin-bottom: 40px;
}

.category-title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.category-description {
    font-size: 0.9375rem;
    color: #6b7280;
    max-width: 600px;
}

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

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 500px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.tool-card.is-creatorflow {
    border-color: #d1fe17;
    background-color: #fefce8;
}

.tool-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tool-logo-small {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.tool-card-info {
    flex: 1;
}

.tool-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.our-product-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #000000;
    background-color: #d1fe17;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.tool-card-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.detail-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.detail-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #000000;
}

.detail-value.yes {
    color: #059669;
}

.detail-value.no {
    color: #9ca3af;
}

.tool-card-bestfor {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 16px;
    flex: 1;
}

.tool-card-action {
    margin-top: auto;
}

.btn-try-free {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background-color: #d1fe17;
    color: #000000;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn-try-free:hover {
    background-color: #bce615;
}

.btn-view-comparison {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-view-comparison:hover {
    background-color: #d1fe17;
    color: #000000;
}

/* Comparison Table Section */
.comparison-table-section {
    background-color: #f9fafb;
    padding: clamp(40px, 5vw, 60px) 0;
}

.comparison-table-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-table thead {
    background-color: #000000;
}

.comparison-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table th:first-child {
    border-radius: 11px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 11px 0 0;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: #f9fafb;
}

.comparison-table tbody tr.highlight-row {
    background-color: #fefce8;
}

.comparison-table tbody tr.highlight-row:hover {
    background-color: #fef9c3;
}

.comparison-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: #374151;
    vertical-align: middle;
}

.tool-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.table-tool-name {
    font-weight: 600;
    color: #000000;
}

.recommended-badge {
    display: inline-block;
    background-color: #d1fe17;
    color: #000000;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-yes {
    color: #059669;
}

.status-yes .iconify {
    font-size: 1.125rem;
}

.status-no {
    color: #dc2626;
}

.status-no .iconify {
    font-size: 1.125rem;
}

.action-cell {
    text-align: center;
}

.btn-table-action {
    display: inline-block;
    padding: 6px 14px;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-table-action:hover {
    background-color: #d1fe17;
    color: #000000;
}

.btn-table-action.primary {
    background-color: #d1fe17;
    color: #000000;
}

.btn-table-action.primary:hover {
    background-color: #000000;
    color: #ffffff;
}

/* SEO Content Section */
.seo-content-section {
    background-color: #ffffff;
    padding: clamp(40px, 5vw, 60px) 0;
}

.seo-content-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.seo-intro {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 600px) {
    .factors-grid {
        grid-template-columns: 1fr;
    }
}

.factor-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.factor-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.factor-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* FAQ Section - uses faq-unified.css for styling */
/* Last updated signal styling */
.cf-faq-updated {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .category-nav-section {
        top: 60px;
    }

    .category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }

    .category-chip {
        flex-shrink: 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 500px) {
    .featured-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tool-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
