/* ============================= */
/* GLOBAL PAGE STYLING */
/* ============================= */

:root {
    --brand-red: #cc0000;
    --brand-red-hover: #ff1a1a;
    --header-dark-bg: #222222;
    --nav-dark-bg: #333333;
    --submenu-dark-bg: #222222;
    --text-on-dark: #f4f4f4;
    --hover-red: #b30000;
    --other-grey: #666666;
    --page-content-bg: #f4f4f4;
}

body {
    margin: 0;
    padding: 0;
    background: var(--page-content-bg);
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================= */
/* HEADER FIX (NO GAP) */
/* ============================= */

header {
    margin-bottom: 0;
    background: var(--header-dark-bg);
    padding: 20px 10px;
    text-align: center;
}

/* ============================= */
/* IMMERSIVE SEARCH */
/* ============================= */

.search-immersive {
    background: linear-gradient(135deg, #222222 0%, #333333 100%);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 12px;
}

.search-immersive h1 {
    color: var(--text-on-dark);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.search-immersive h3 {
    color: var(--text-on-dark);
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

/* FORM + ICON */
.search-immersive form {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Input */
.search-immersive input[type="search"] {
    flex: 1;
    padding: 18px 20px 18px 50px; /* space for icon */
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.search-immersive input::placeholder {
    color: #888;
}

/* Magnifying icon */
.search-immersive form::before {
    content: "\1F50D"; /* Unicode magnifying glass, escaped hex */
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0.6;
}

/* Button */
.search-immersive button {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 18px 30px;
    margin-left: 10px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.search-immersive button:hover {
    background: var(--brand-red-hover);
}

.search-immersive button:active {
    transform: scale(0.98);
}

/* ============================= */
/* RESULTS SECTION */
/* ============================= */

main {
    padding: 40px 20px;
}

.results-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Heading */
.results-page h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Count */
.results-count {
    color: #666;
    margin-bottom: 20px;
}

/* ============================= */
/* RESULT CARDS */
/* ============================= */

.result-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.result-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Label */
.result-type {
    background: var(--brand-red);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Title */
.result-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.result-title a {
    color: #1a0dab;
    text-decoration: none;
}

.result-title a:hover {
    color: var(--hover-red);
}

/* Description */
.result-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Action button */
.result-action {
    border: 1px solid var(--other-grey);
    padding: 6px 12px;
    text-decoration: none;
    font-weight: bold;
    color: var(--other-grey);
    border-radius: 4px;
    transition: 0.2s;
}

.result-action:hover {
    background: var(--other-grey);
    color: #fff;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    text-align: center;
    padding: 20px;
    background: var(--header-dark-bg);
    color: #fff;
    margin-top: 40px;
}

