* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #f3f4f6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER — UPDATED TO WHITE */

header {
    width: 100%;
    background-color: #ffffff;          /* changed from #1d4ed8 */
    color: #1e293b;
    border-bottom: 1px solid #e5e7eb;   /* clean subtle border */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* LOGO FIXED WITH PROPER ALIGNMENT */

.logo {
    display: flex;
    align-items: center; 
}

.logo img {
    height: 54px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 1.5rem;
}

/* NAV COLORS UPDATED FOR WHITE HEADER */
nav a {
    color: #1e293b;      /* dark text now visible */
    font-size: 0.95rem;
}

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

/* HERO + SEARCH CARD */

main {
    padding-bottom: 3rem;
}

.hero {
    padding: 3.2rem 0 2.4rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
}

.search-card {
    background-color: #ffffff;
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
    border: 2px solid #d4d4d8;
    padding: 2.1rem 2.4rem 1.8rem;
    max-width: 960px;
    width: 100%;
    text-align: center;
}

.search-main-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2.4rem, 3.4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #0f172a;
}

.search-description {
    margin: 0 0 1.7rem;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.search-row input[type="text"] {
    flex: 1 1 280px;
    max-width: 560px;
    padding: 1rem 1.1rem;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    font-size: 0.98rem;
    outline: none;
    background-color: #f9fafb;
}

.search-row input[type="text"]::placeholder {
    color: #9ca3af;
}

.search-row input[type="text"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
    background-color: #ffffff;
}

.search-row button {
    flex: 0 0 auto;
    padding: 1rem 1.9rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    white-space: nowrap;
}

.search-row button:hover {
    opacity: 0.96;
}

/* RESULTS */

.results {
    width: 100%;
}

.results-inner {
    max-width: 960px;
    margin: 0 auto;
}

.results-title {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.results-empty {
    margin: 0 0 1.2rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.result-card {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 1.3rem 1.5rem 1.3rem;
}

.result-layout {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}

.result-left {
    flex: 0 0 180px;
    border-right: 1px solid #e5e7eb;
    padding-right: 1rem;
}

.result-platform {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.result-handle {
    font-size: 0.9rem;
    color: #6b7280;
}

.result-right {
    flex: 1;
}

.result-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

.result-status-match {
    background-color: #dcfce7;
    color: #166534;
}

.result-status-possible {
    background-color: #fef9c3;
    color: #854d0e;
}

.result-status-none {
    background-color: #e5e7eb;
    color: #4b5563;
}

.result-summary {
    margin: 0;
    font-size: 0.93rem;
    color: #4b5563;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.result-actions .btn-primary {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.result-actions .btn-primary:hover {
    opacity: 0.96;
}

.btn-ghost {
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: #374151;
}

.btn-ghost:hover {
    background-color: #f3f4f6;
}

/* MOBILE RESULT CARD */

@media (max-width: 768px) {
    .results-inner {
        margin-top: 0.2rem;
    }

    .result-card {
        padding: 1.2rem 1.2rem 1.1rem;
    }

    .result-layout {
        flex-direction: column;
    }

    .result-left {
        flex: 1 1 auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 0.55rem;
        margin-bottom: 0.55rem;
    }
}

/* TEXT BLOCKS */

.text-blocks {
    padding: 3rem 0 3rem;
    background-color: #eef2ff;
}

.seo-card {
    max-width: 980px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    padding: 2.8rem 3rem;
}

.text-block {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.text-block:first-of-type {
    border-top: none;
}

.text-block-inner {
    max-width: 900px;
    margin: 0 auto;
}

.text-block h2 {
    margin: 0 0 1.2rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    color: #1e293b;
}

.text-block p {
    margin: 0 0 1.2rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
    text-align: left;
}

@media (max-width: 768px) {
    .seo-card {
        padding: 2rem 1.6rem;
        border-radius: 22px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    }

    .text-block {
        padding: 1.4rem 0;
    }

    .text-block h2 {
        font-size: 1.5rem;
    }

    .text-block p {
        font-size: 1rem;
        line-height: 1.75;
    }
}

/* FOOTER — UNCHANGED */

footer {
    width: 100%;
    background-color: #1d4ed8;
    color: #ffffff;
    padding: 1.2rem 0;
    margin-top: auto;
    font-size: 0.85rem;
}

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

.footer-inner a {
    color: #ffffff;
    text-decoration: underline;
}
