/* partners.css - /home/partners page specific styles. Requires redesign-core.css.
   Simplified vs the original mockup: the real Partner model only has Name/Image/Url
   (admin-managed via HomeStaticController), so type filters, country flags and
   spotlight descriptions from the mockup are not available and were dropped. */

[data-theme="dark"] .btn-ghost { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 150px 0 76px;
    background: var(--bg);
}
.hero::before {
    content: ''; position: absolute; left: 50%; top: -160px; transform: translateX(-50%);
    width: 1100px; height: 540px; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse at center, var(--orange-soft), transparent 66%);
}
[data-theme="dark"] .hero { background: linear-gradient(180deg, #17120c, var(--bg) 70%); }
[data-theme="dark"] .hero::before { background: radial-gradient(ellipse at center, rgba(255,102,0,0.22), transparent 64%); }
.hero .container { position: relative; z-index: 1; }
.hero-tagline { color: var(--orange); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; margin: 0 0 18px; }
.hero h1 { margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 660px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats (single real, admin-managed count) ---------- */
.stats-grid { display: flex; justify-content: center; margin: 52px auto 0; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 40px; text-align: center; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .stat { background: var(--bg-soft); }
.stat .num { font-size: 2.6rem; font-weight: 900; color: var(--orange); letter-spacing: -.02em; line-height: 1; }
.stat .label { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin-top: 4px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }

/* ---------- Spotlight (rotates through all active partners; no tag/where/desc - no such data) ---------- */
.spotlight {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); background: var(--bg);
}
[data-theme="dark"] .spotlight { background: var(--bg-soft); }
.spotlight .media { background: #f7f8fa; display: grid; place-items: center; padding: 48px; min-height: 260px; }
.spotlight .media img { max-height: 130px; width: auto; transition: opacity .4s ease; }
.spotlight .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.spotlight .body h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 24px; transition: opacity .4s ease; }
.spotlight-dots { display: flex; gap: 8px; margin-top: 22px; }
.spotlight-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: background .2s, transform .2s; }
.spotlight-dots button.active { background: var(--orange); transform: scale(1.25); }

/* ---------- Controls (search only - no type data to filter by) ---------- */
.controls { display: flex; justify-content: flex-end; margin-bottom: 30px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; min-width: 260px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--line-2); }
.search .material-icons { font-size: 20px; color: var(--orange); }
.search input { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 0.98rem; width: 100%; font-family: inherit; }

/* ---------- Partner grid (logo + name + link only - no country/type data) ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .25s ease;
}
[data-theme="dark"] .card { background: var(--bg-soft); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange-2); }
.card .logo-box { background: #fff; height: 150px; display: grid; place-items: center; padding: 24px; }
[data-theme="dark"] .card .logo-box { background: #f7f8fa; }
.card .logo-box img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.card .meta { padding: 16px 18px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .meta .name { font-weight: 700; font-size: 0.95rem; letter-spacing: -.01em; line-height: 1.3; color: var(--ink); }
.card .visit { font-size: 0.82rem; font-weight: 700; color: var(--orange); display: inline-flex; align-items: center; gap: 4px; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; flex-shrink: 0; }
.card:hover .visit { opacity: 1; transform: translateY(0); }
.card .visit .material-icons { font-size: 16px; }
.no-results { text-align: center; color: var(--muted); padding: 50px 0; display: none; }

/* ---------- Become a partner CTA ---------- */
.cta-band { padding: 96px 0; }
.cta-inner {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(180deg, var(--bg-tint), var(--bg));
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 64px 28px; box-shadow: var(--shadow);
}
.cta-inner::before { content: ''; position: absolute; left: 50%; top: -40px; transform: translateX(-50%); width: 700px; height: 300px; background: radial-gradient(ellipse at center, rgba(255,102,0,0.20), transparent 70%); pointer-events: none; }
[data-theme="dark"] .cta-inner { background: linear-gradient(180deg, #17120c, var(--bg)); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { color: var(--muted); max-width: 540px; margin: 0 auto 26px; font-size: 1.08rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .spotlight { grid-template-columns: 1fr; }
    .spotlight .media { min-height: 220px; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-cta .theme-toggle, .nav-cta .nav-login { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 760px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .controls { justify-content: stretch; }
    .search { min-width: 0; }
    .footer-links { gap: 36px; }
}
@media (max-width: 460px) {
    .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .card .logo-box { height: 120px; padding: 16px; }
    .hero { padding-top: 120px; }
}
