/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 48px 20px 40px; text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 500px 250px at 30% 60%, rgba(194,37,92,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.page-header h1 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.page-header h1 span { color: #f472b6; }
.page-header .lead { font-size: 0.95rem; color: #94a3b8; line-height: 1.7; margin-bottom: 20px; }

/* ========== Section ========== */
.site-section { margin-bottom: 40px; }
.site-section-head { margin-bottom: 16px; }
.site-section-head h2 {
    font-size: 1.25rem; color: #1e293b; font-weight: 800;
    padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; margin-bottom: 6px;
}
.site-section-head .desc { font-size: 0.86rem; color: #64748b; line-height: 1.5; }

/* ========== Featured (Hero Cards) ========== */
.featured-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.featured-card {
    display: block; background: #fff; border-radius: 14px;
    padding: 28px 22px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); text-decoration: none; color: inherit;
    transition: all 0.25s; border: 2px solid transparent; position: relative;
}
.featured-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.10); transform: translateY(-4px);
    text-decoration: none; border-color: #fce7f3;
}
.featured-card .ribbon {
    position: absolute; top: 12px; right: 12px;
    font-size: 0.62rem; font-weight: 700; color: #a16207;
    background: #fefce8; padding: 2px 10px; border-radius: 10px;
}
.featured-card .logo { width: 90px; height: 60px; object-fit: contain; margin: 0 auto 14px; background: #f8fafc; border-radius: 8px; }
.featured-card .name { font-size: 1.1rem; font-weight: 800; color: #1e293b; margin-bottom: 6px; }
.featured-card .type { font-size: 0.75rem; color: #c2255c; font-weight: 600; margin-bottom: 8px; }
.featured-card .summary { font-size: 0.82rem; color: #64748b; line-height: 1.5; margin-bottom: 14px; }
.featured-card .tags { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.featured-card .cta-link {
    display: inline-block; font-size: 0.82rem; font-weight: 700;
    color: #c2255c; padding: 6px 20px;
    border: 1px solid #fce7f3; border-radius: 20px;
    transition: all 0.2s;
}
.featured-card:hover .cta-link { background: #fdf2f8; border-color: #c2255c; }

/* ========== Normal / Specialized Grid ========== */
.site-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.site-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border-radius: 10px; padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); text-decoration: none; color: inherit;
    transition: all 0.2s; border-left: 3px solid transparent;
}
.site-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px);
    text-decoration: none; border-left-color: #c2255c;
}
.site-card .logo { width: 56px; height: 40px; object-fit: contain; flex-shrink: 0; background: #f8fafc; border-radius: 6px; }
.site-card .body { flex: 1; min-width: 0; }
.site-card .body .name { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin-bottom: 2px; }
.site-card .body .type { font-size: 0.72rem; color: #c2255c; font-weight: 600; margin-bottom: 5px; }
.site-card .body .summary {
    font-size: 0.8rem; color: #94a3b8; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.site-card .body .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }

/* ========== Special Cards ========== */
.special-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.special-card {
    display: block; background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 10px; padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); text-decoration: none; color: inherit;
    transition: all 0.2s; border: 1px solid #e2e8f0;
}
.special-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px);
    text-decoration: none; border-color: #c2255c;
}
.special-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.special-card .head .icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: #fdf2f8; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.special-card .head .name { font-size: 1rem; font-weight: 700; color: #1e293b; }
.special-card .type { font-size: 0.72rem; color: #c2255c; font-weight: 600; margin-bottom: 6px; }
.special-card .summary { font-size: 0.82rem; color: #64748b; line-height: 1.5; margin-bottom: 10px; }
.special-card .tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* ========== Compare CTA ========== */
.compare-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px; padding: 26px 28px; margin-bottom: 40px;
    position: relative; overflow: hidden;
}
.compare-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 400px 200px at 80% 50%, rgba(194,37,92,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.compare-cta-inner { position: relative; z-index: 1; }
.compare-cta h2 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.compare-cta .desc { font-size: 0.88rem; color: #94a3b8; margin-bottom: 18px; line-height: 1.5; }
.compare-cta .compare-picks { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.compare-pick {
    display: block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px; padding: 14px; text-decoration: none; transition: all 0.2s;
}
.compare-pick:hover { background: rgba(255,255,255,0.18); border-color: rgba(194,37,92,0.4); text-decoration: none; }
.compare-pick .label { font-size: 0.92rem; font-weight: 700; color: #f472b6; margin-bottom: 2px; }
.compare-pick .label-sub { font-size: 0.76rem; font-weight: 600; color: #cbd5e1; }
.compare-pick .desc { font-size: 0.76rem; color: #64748b; line-height: 1.4; margin-top: 4px; }
.compare-axes-links {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.compare-axes-links a {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; text-decoration: none;
    background: rgba(255,255,255,0.08); color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.12); transition: all 0.2s;
}
.compare-axes-links a:hover { background: rgba(255,255,255,0.15); color: #f472b6; border-color: rgba(194,37,92,0.3); text-decoration: none; }
.compare-cta .cta-btn-wrap { text-align: right; }
.compare-cta .cta-btn {
    display: inline-block; padding: 10px 24px; border-radius: 8px;
    font-size: 0.88rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2); color: #cbd5e1;
    text-decoration: none; transition: all 0.2s;
}
.compare-cta .cta-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }

/* ========== tag pill ========== */
.tag-pill {
    display: inline-block; font-size: 0.68rem; font-weight: 600;
    padding: 2px 9px; border-radius: 10px;
    background: #f1f5f9; color: #64748b;
}
.tag-pill--green { background: #ecfdf5; color: #059669; }
.tag-pill--amber { background: #fefce8; color: #a16207; }
.tag-pill--pink { background: #fdf2f8; color: #c2255c; }

@media (max-width: 768px) {
    .page-header { padding: 32px 16px 28px; }
    .page-header h1 { font-size: 1.3rem; }
    .featured-grid { grid-template-columns: 1fr; }
    .site-grid { grid-template-columns: 1fr; }
    .special-grid { grid-template-columns: 1fr; }
    .compare-cta .compare-picks { grid-template-columns: 1fr; }
}
