/* Basic reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #e5e7eb;
    color: #454545;
    line-height: 1.6;
}

/* Layout helpers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: #024f8c;
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    max-height: 60px;
    height: auto;
    width: auto;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 15px;
}

.main-nav a:hover {
    color: #ffeb13;
}

/* Hero */
.hero {
    padding: 40px 0 32px;
}

/* Big card that contains title + text + search + results */
.hero-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 22px 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    max-width: 1040px;
    margin: 0 auto;
}

.hero-card h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 6px;
    font-weight: 800;
    text-align: center;
}

.hero-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 14px;
    text-align: center;
    color: #4a5568;
}

.hero-intro {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

/* Search form */
.search-form {
    margin-bottom: 12px;
}

.search-field {
    display: flex;
    gap: 8px;
}

.search-field input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    font-size: 16px;
}

.search-field input:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 2px rgba(30,115,190,0.15);
}

.search-field button {
    background: #1e73be;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
}

.search-field button:hover {
    background: #0c80e5;
}

/* Progress bar */
.progress-bar-wrapper {
    margin-top: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb800, #ffeb13);
    transition: width 0.3s ease;
}

/* Results container */
.results {
    margin-top: 16px;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

/* ───────────────────────────────────────────── */
/* RESULT ROW – 4 SEGMENTS LIKE THE CONCEPT     */
/* ───────────────────────────────────────────── */

.result-item {
    display: flex;
    align-items: stretch;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    margin-bottom: 12px;
    overflow: hidden;
}

/* Generic segment style */
.result-seg {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-right: 1px solid #e5e7eb;
    background: #ffffff;
    gap: 10px;
}

/* No border on last segment */
.result-seg:last-child {
    border-right: none;
}

/* Segment widths (approximate proportions of your concept) */
.result-platform-seg {
    flex: 0 0 34%;
    background: #f9fafb; /* soft tint behind icon + name */
}

.result-status-seg {
    flex: 0 0 14%;
    justify-content: center;
}

.result-cta-seg {
    flex: 0 0 30%;
    justify-content: center;
}

.result-view-seg {
    flex: 1 1 auto;
    justify-content: center;
}

/* Icon badge */
.result-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

/* Site name – natural capitalization, a bit bigger */
.result-platform {
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-found {
    background: #2563eb;
    color: #ffffff;
}

.status-not-found {
    background: #b0bec5;
    color: #263238;
}

.status-unknown {
    background: #ffeb3b;
    color: #37474f;
}

/* CTA button */
.partner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2e7d32;
    color: #fff;
    border-radius: 8px;
    padding: 9px 20px;
    border: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.partner-btn:hover {
    background: #1b5e20;
}

/* View profile link */
.profile-link {
    font-size: 14px;
    color: #111827;
    text-decoration: underline;
    white-space: nowrap;
}

.profile-link:hover {
    color: #000;
}

/* Load more */
.load-more {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 10px;
    border: none;
    background: #1e73be;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    margin: 16px auto 0;
    transition: background 0.2s ease;
}

.load-more:hover {
    background: #155a96;
}

.load-more[hidden] {
    display: none !important;
}

.results-message {
    font-size: 14px;
    color: #555;
}

/* Content sections background */
.content-section,
.feature-section,
.faq-section {
    padding: 32px 0;
    background: #e5e7eb;
}

/* Generic content cards */
.info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 18px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

/* Colored header bar for card titles */
.info-card > h2:first-child,
.info-card > h3:first-child {
    background: #006d8f;
    color: #ffffff;
    margin: -20px -18px 16px;
    padding: 14px 18px;
    text-align: center;
    font-weight: 700;
    border-radius: 18px 18px 0 0;
}

/* Slightly smaller font for h3 headers inside cards */
.info-card > h3:first-child {
    font-size: 22px;
}

/* Features / three columns (inside a card) */
.section-title {
    margin-top: 0;
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 4px;
}

.feature-card {
    background: #f7f8f9;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.feature-card h3 {
    margin-top: 0;
}

/* FAQ cards */
.faq-section > .container > h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.faq-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 26px rgba(15,23,42,0.05);
}

.faq-card p {
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 16px 0;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-nav a {
    margin-left: 12px;
    text-decoration: none;
    color: #1e73be;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Accessibility helpers */
.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Responsive */
@media (max-width: 800px) {
    .hero-card {
        padding: 22px 18px 18px;
    }

    .hero-card h1 {
        font-size: 30px;
    }

    /* Stack segments on mobile */
    .result-item {
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .result-seg {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .result-seg:last-child {
        border-bottom: none;
    }

    .partner-btn {
        width: 100%;
    }

    .three-columns {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-nav a {
        margin-left: 0;
        margin-right: 14px;
    }

    .info-card > h2:first-child,
    .info-card > h3:first-child {
        font-size: 20px;
        padding: 12px 16px;
    }
}

/* =========================================================
   SPRITE SOCIAL ICON SYSTEM (for 120+ platforms)
   Replaces generic emojis with colored circles + real icons
   ========================================================= */

.result-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ccc; /* fallback */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.result-icon::before {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    background: url("/img/social-icons.png") no-repeat;
    background-size: 345px;
}

/* =========================
   MAIN SOCIAL PLATFORMS
   ========================= */

/* TINDER */
.result-icon.icon-tinder { background: #ff6b6b; }
.result-icon.icon-tinder::before { background-position: 0 0; }

/* FACEBOOK */
.result-icon.icon-facebook { background: #3b5998; }
.result-icon.icon-facebook::before { background-position: -35px 0; }

/* INSTAGRAM */
.result-icon.icon-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.result-icon.icon-instagram::before { background-position: -70px 0; }

/* MEETME */
.result-icon.icon-meetme { background: #644489; }
.result-icon.icon-meetme::before { background-position: -105px 0; }

/* TIKTOK */
.result-icon.icon-tiktok { background: #000; }
.result-icon.icon-tiktok::before { background-position: -140px 0; }

/* BADOO */
.result-icon.icon-badoo { background: #7438f1; }
.result-icon.icon-badoo::before { background-position: -175px 0; }

/* YOUTUBE */
.result-icon.icon-youtube { background: #c4302b; }
.result-icon.icon-youtube::before { background-position: -210px 0; }

/* TWITTER / X */
.result-icon.icon-twitter { background: #1da1f2; }
.result-icon.icon-twitter::before { background-position: -245px 0; }

/* KIK */
.result-icon.icon-kik { background: #6cc644; }
.result-icon.icon-kik::before { background-position: -280px 0; }

/* TELEGRAM */
.result-icon.icon-telegram { background: #2da6df; }
.result-icon.icon-telegram::before { background-position: -315px 0; }

/* ===================================================
   You have ~100 more icons in the sprite.
   We will add them next once you confirm these load.
   =================================================== */


/* === Icon circle and PNG override – final === */
.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
    font-size: 22px;
}

/* Remove old sprite overlay for result icons */
.result-icon::before {
    content: none !important;
    background: none !important;
}

/* PNG fills the circle when present */
.result-icon img.result-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}
