/* ============================================
   CTA Components — Apple-inspired design system
   Shared across all content-type pages
   ============================================ */

/* ============================================
   SECTION — wraps every CTA block
   ============================================ */

.cta-section {
    padding: 3.5rem 0;
}

.cta-section--muted {
    background: var(--bs-body-tertiary-bg);
}

.cta-section--bordered {
    border-top: 1px solid rgba(var(--bs-body-color-rgb), 0.06);
}

.cta-section--compact {
    padding: 2.5rem 0;
}

/* ============================================
   SECTION HEADER — centered title + subtitle
   ============================================ */

.cta-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-header-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bs-body-color);
    margin: 0 0 0.375rem;
}

.cta-header-subtitle {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
    margin: 0;
    line-height: 1.5;
}

.cta-section--compact .cta-header-title {
    font-size: 1.1875rem;
}

.cta-section--compact .cta-header-subtitle {
    font-size: 0.75rem;
}

/* ============================================
   PANEL — rounded card used inside CTA grids
   ============================================ */

.cta-panel {
    background: var(--bs-body-bg);
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cta-section--muted .cta-panel {
    background: var(--bs-body-bg);
}

/* ============================================
   PANEL HEADER — icon + label row
   ============================================ */

.cta-panel-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.cta-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cta-panel-icon--green  { background: rgba(var(--bs-success-rgb), 0.12); color: var(--bs-success); }
.cta-panel-icon--blue   { background: rgba(var(--bs-primary-rgb), 0.12); color: var(--bs-primary); }
.cta-panel-icon--purple { background: rgba(111, 66, 193, 0.12); color: #6f42c1; }
.cta-panel-icon--amber  { background: rgba(var(--bs-warning-rgb), 0.12); color: var(--bs-warning); }
.cta-panel-icon--teal   { background: rgba(var(--bs-info-rgb), 0.12); color: var(--bs-info); }

.cta-panel-title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
    margin: 0;
}

.cta-panel-desc {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
    margin: 0.0625rem 0 0;
}

/* ============================================
   PANEL LIST — item rows inside a panel
   ============================================ */

.cta-panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.cta-panel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), 0.04);
}

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

.cta-panel-item-link {
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    transition: color 0.15s ease;
}

.cta-panel-item-link:hover {
    color: var(--bs-primary);
}

.cta-panel-item-meta {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    white-space: nowrap;
    margin-left: 1rem;
}

/* ============================================
   VIEW-ALL LINK — subtle arrow link
   ============================================ */

.cta-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--bs-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.15s ease;
}

.cta-view-all:hover {
    gap: 0.5rem;
    text-decoration: none;
    color: var(--bs-primary);
}

.cta-view-all i {
    font-size: 0.625rem;
    transition: transform 0.15s ease;
}

.cta-view-all:hover i {
    transform: translateX(2px);
}

/* ============================================
   PANEL ACTIONS — header-right controls
   ============================================ */

.cta-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* ============================================
   TAG CLOUD — pill badges for trending tags
   ============================================ */

.cta-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    background: transparent;
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.cta-tag:hover {
    background: rgba(var(--bs-body-color-rgb), 0.06);
    color: var(--bs-body-color);
    border-color: rgba(var(--bs-body-color-rgb), 0.12);
    text-decoration: none;
}

.cta-tag:active {
    transform: scale(0.97);
}

/* ============================================
   CATEGORY GRID — small icon tiles
   ============================================ */

.cta-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.cta-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    background: var(--bs-body-tertiary-bg);
    text-decoration: none;
    transition: all 0.15s ease;
}

.cta-category-tile:hover {
    background: rgba(var(--bs-body-color-rgb), 0.06);
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-category-tile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.375rem;
}

.cta-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    margin-bottom: 0.375rem;
}

.cta-category-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--bs-body-color);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ============================================
   EXPLORE GRID — app discovery tiles
   ============================================ */

.cta-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    justify-items: center;
}

.cta-explore-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bs-body-bg);
    border: 1px solid rgba(var(--bs-body-color-rgb), 0.06);
    border-radius: 1rem;
    text-decoration: none;
    width: 100%;
    transition: all 0.2s ease;
}

.cta-explore-tile:hover {
    border-color: rgba(var(--bs-body-color-rgb), 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.cta-explore-tile:active {
    transform: translateY(0);
}

.cta-explore-icon {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
}

.cta-explore-icon--green  { color: var(--bs-success); }
.cta-explore-icon--blue   { color: var(--bs-primary); }
.cta-explore-icon--purple { color: #6f42c1; }
.cta-explore-icon--amber  { color: var(--bs-warning); }
.cta-explore-icon--teal   { color: var(--bs-info); }

.cta-explore-name {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
    margin: 0 0 0.125rem;
}

.cta-explore-desc {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
    margin: 0;
}

/* ============================================
   AUTHOR ROW — "More from this creator"
   ============================================ */

.cta-author-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.cta-author-card {
    display: block;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--bs-body-tertiary-bg);
    text-decoration: none;
    transition: all 0.15s ease;
}

.cta-author-card:hover {
    background: rgba(var(--bs-body-color-rgb), 0.06);
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-author-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cta-author-card-meta {
    font-size: 0.6875rem;
    color: var(--bs-secondary-color);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767.98px) {
    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-section--compact {
        padding: 2rem 0;
    }

    .cta-header-title {
        font-size: 1.1875rem;
    }

    .cta-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-author-grid {
        grid-template-columns: 1fr;
    }

    .cta-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .cta-explore-tile {
        padding: 1rem 0.75rem;
    }

    .cta-explore-desc {
        display: none;
    }

    .cta-tag-cloud {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .cta-tag-cloud::-webkit-scrollbar {
        display: none;
    }
} 