/* ============================================================
   czym-otworzyc.pl — Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --navy-900: #0a1628;
    --navy-800: #111d35;
    --navy-700: #1a2744;
    --navy-600: #243554;
    --teal-500: #0891b2;
    --teal-400: #22d3ee;
    --teal-300: #67e8f9;
    --cyan-200: #a5f3fc;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --amber-500: #f59e0b;
    --red-500: #ef4444;
    --purple-500: #a855f7;
    --pink-500: #ec4899;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
    --shadow-glow: 0 0 40px rgba(8, 145, 178, .15);
    --transition: .2s ease;
    --max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--slate-50);
    color: var(--slate-700);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--teal-500);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal-400);
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    color: var(--navy-900);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Navigation --- */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .92);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 2rem;
}

.nav__logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-900);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav__logo:hover {
    color: var(--teal-500);
}

.nav__logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    color: var(--slate-600);
    font-size: .9rem;
    font-weight: 500;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--teal-500);
}

.nav__link--active {
    color: var(--teal-500);
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--teal-500) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, .12) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--slate-300);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* --- Search --- */
.search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search__input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    color: var(--white);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search__input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.search__input:focus {
    border-color: var(--teal-400);
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 0 30px rgba(34, 211, 238, .15);
}

.search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .5);
    font-size: 1.1rem;
    pointer-events: none;
}

.search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: .65rem 1.5rem;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
}

.search__btn:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 4px 15px rgba(8, 145, 178, .4);
}

/* Search on light background */
.search--light .search__input {
    background: var(--white);
    border: 2px solid var(--slate-200);
    color: var(--navy-900);
}

.search--light .search__input::placeholder {
    color: var(--slate-400);
}

.search--light .search__input:focus {
    border-color: var(--teal-500);
    background: var(--white);
    box-shadow: var(--shadow-glow);
}

.search--light .search__icon {
    color: var(--slate-400);
}

.hero__popular {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    color: var(--slate-400);
    font-size: .9rem;
}

.hero__popular a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .75rem;
    background: rgba(255, 255, 255, .08);
    border-radius: var(--radius-sm);
    color: var(--teal-300);
    font-weight: 500;
    font-size: .85rem;
    transition: var(--transition);
}

.hero__popular a:hover {
    background: rgba(255, 255, 255, .15);
    color: var(--white);
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 1.25rem 0;
}

.stats-bar__inner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.stat__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat__icon--teal {
    background: rgba(8, 145, 178, .1);
    color: var(--teal-500);
}

.stat__icon--green {
    background: rgba(34, 197, 94, .1);
    color: var(--green-500);
}

.stat__icon--purple {
    background: rgba(168, 85, 247, .1);
    color: var(--purple-500);
}

.stat__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
}

.stat__label {
    font-size: .8rem;
    color: var(--slate-500);
}

/* --- Section --- */
.section {
    padding: 3.5rem 0;
}

.section--gray {
    background: var(--slate-100);
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section__title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.section__link {
    font-size: .9rem;
    font-weight: 600;
    color: var(--teal-500);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.section__link:hover {
    gap: .5rem;
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.cards-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* --- Extension Card --- */
.ext-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ext-card:hover {
    border-color: var(--teal-400);
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(34, 211, 238, .08);
    transform: translateY(-2px);
    color: inherit;
}

.ext-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ext-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--white);
    flex-shrink: 0;
    text-transform: uppercase;
}

.ext-card__icon--archive {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.ext-card__icon--document {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.ext-card__icon--image {
    background: linear-gradient(135deg, #ec4899, #a855f7);
}

.ext-card__icon--audio {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.ext-card__icon--video {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.ext-card__icon--code {
    background: linear-gradient(135deg, #64748b, #475569);
}

.ext-card__icon--default {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
}

.ext-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
}

.ext-card__type {
    font-size: .8rem;
    color: var(--slate-500);
}

.ext-card__desc {
    font-size: .9rem;
    color: var(--slate-600);
    line-height: 1.5;
}

.ext-card__apps {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--slate-400);
    margin-top: auto;
}

/* --- App Card --- */
.app-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    border-color: var(--teal-400);
    box-shadow: var(--shadow-sm);
    color: inherit;
}

.app-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--teal-500);
}

.app-card__name {
    font-weight: 600;
    color: var(--navy-900);
    font-size: .95rem;
}

.app-card__meta {
    font-size: .8rem;
    color: var(--slate-500);
}

.app-card__arrow {
    margin-left: auto;
    color: var(--slate-300);
    transition: var(--transition);
}

.app-card:hover .app-card__arrow {
    color: var(--teal-500);
    transform: translateX(3px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--slate-400);
    padding: 1rem 0;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--slate-500);
}

.breadcrumbs a:hover {
    color: var(--teal-500);
}

.breadcrumbs__sep {
    color: var(--slate-300);
}

/* --- Detail Page --- */
.detail-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    padding: 2.5rem 0 3rem;
}

.detail-hero__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-hero__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
    text-transform: uppercase;
}

.detail-hero__title {
    font-size: 2rem;
    color: var(--white);
    font-weight: 800;
}

.detail-hero__subtitle {
    color: var(--slate-300);
    font-size: 1rem;
}

.detail-content {
    padding: 2rem 0 3rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Info Box --- */
.info-box {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.info-box__header {
    padding: 1rem 1.5rem;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    font-weight: 600;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.info-box__body {
    padding: 1.5rem;
}

.info-box__body p {
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-box__body p:last-child {
    margin-bottom: 0;
}

.info-box__body ul {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.info-box__body ul li {
    padding: .5rem .75rem;
    padding-left: 2rem;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    color: var(--slate-600);
    font-size: .9rem;
    position: relative;
}

.info-box__body ul li::before {
    content: '→';
    position: absolute;
    left: .75rem;
    color: var(--teal-500);
}

/* --- Sidebar --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Tag Cloud --- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: .35rem .85rem;
    background: var(--slate-100);
    border-radius: var(--radius-xl);
    color: var(--slate-600);
    font-size: .85rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--teal-500);
    color: var(--white);
}

/* --- Alphabet nav --- */
.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.alpha-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    background: var(--white);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    transition: var(--transition);
}

.alpha-nav__item:hover {
    border-color: var(--teal-500);
    color: var(--teal-500);
}

.alpha-nav__item--active {
    background: var(--teal-500);
    color: var(--white);
    border-color: var(--teal-500);
}

.alpha-nav__item--active:hover {
    color: var(--white);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .9rem;
    transition: var(--transition);
}

.pagination a {
    background: var(--white);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
}

.pagination a:hover {
    border-color: var(--teal-500);
    color: var(--teal-500);
}

.pagination .active {
    background: var(--teal-500);
    color: var(--white);
    border: 1px solid var(--teal-500);
}

.pagination .disabled {
    color: var(--slate-300);
    pointer-events: none;
}

/* --- Article Card --- */
.article-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.article-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--slate-100);
}

.article-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.article-card__date {
    font-size: .8rem;
    color: var(--slate-400);
}

.article-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.4;
}

.article-card__excerpt {
    font-size: .9rem;
    color: var(--slate-500);
    line-height: 1.5;
}

/* --- FAQ --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.faq-item__q {
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: .5rem;
    font-size: 1rem;
}

.faq-item__a {
    color: var(--slate-600);
    font-size: .9rem;
    line-height: 1.6;
}

/* --- Accordion (FAQ on detail page) --- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.accordion__item {
    border-bottom: 1px solid var(--slate-200);
}

.accordion__item:last-child {
    border-bottom: none;
}

.accordion__toggle {
    display: none;
}

.accordion__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy-900);
    font-size: .95rem;
    transition: var(--transition);
    user-select: none;
    gap: 1rem;
}

.accordion__label:hover {
    background: var(--slate-50);
    color: var(--teal-500);
}

.accordion__chevron {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    transition: transform .3s ease;
}

.accordion__chevron::before,
.accordion__chevron::after {
    content: '';
    position: absolute;
    background: var(--slate-400);
    border-radius: 2px;
    transition: background var(--transition);
}

.accordion__chevron::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
}

.accordion__chevron::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 1.5rem;
}

.accordion__content-inner {
    color: var(--slate-600);
    font-size: .9rem;
    line-height: 1.7;
    padding-bottom: 1.25rem;
}

.accordion__toggle:checked+.accordion__label {
    color: var(--teal-500);
}

.accordion__toggle:checked+.accordion__label .accordion__chevron {
    transform: rotate(45deg);
}

.accordion__toggle:checked+.accordion__label .accordion__chevron::before,
.accordion__toggle:checked+.accordion__label .accordion__chevron::after {
    background: var(--teal-500);
}

.accordion__toggle:checked~.accordion__content {
    max-height: 500px;
    padding: 0 1.5rem;
}

/* --- Footer --- */
.footer {
    background: var(--navy-900);
    color: var(--slate-400);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer__brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.footer__desc {
    font-size: .9rem;
    color: var(--slate-400);
    line-height: 1.6;
    max-width: 360px;
}

.footer__heading {
    font-size: .85rem;
    font-weight: 600;
    color: var(--slate-300);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .75rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer__link {
    color: var(--slate-400);
    font-size: .9rem;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--teal-400);
}

.footer__bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--navy-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: var(--slate-500);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__bottom a {
    color: var(--slate-400);
}

.footer__bottom a:hover {
    color: var(--teal-400);
}

/* --- Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    color: var(--white);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(8, 145, 178, .35);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--slate-200);
    color: var(--slate-600);
}

.btn--outline:hover {
    border-color: var(--teal-500);
    color: var(--teal-500);
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 600;
}

.badge--teal {
    background: rgba(8, 145, 178, .1);
    color: var(--teal-500);
}

.badge--green {
    background: rgba(34, 197, 94, .1);
    color: var(--green-500);
}

/* --- Autocomplete dropdown --- */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    background: var(--white) !important;
    padding: .25rem !important;
    font-family: 'Inter', sans-serif !important;
    z-index: 1000 !important;
}

.ui-menu-item-wrapper {
    padding: .6rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    font-size: .9rem !important;
    color: var(--navy-900) !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background: var(--slate-100) !important;
    border: none !important;
    color: var(--teal-500) !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--slate-200);
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-lg);
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .stats-bar__inner {
        gap: 1.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

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

    .cards-grid--3 {
        grid-template-columns: 1fr;
    }

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

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

    .detail-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .detail-hero__title {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.6rem;
    }

    .search__btn {
        padding: .5rem 1rem;
        font-size: .85rem;
    }

    .alpha-nav__item {
        width: 34px;
        height: 34px;
        font-size: .85rem;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp .5s ease forwards;
    opacity: 0;
}

.animate-in:nth-child(2) {
    animation-delay: .05s;
}

.animate-in:nth-child(3) {
    animation-delay: .1s;
}

.animate-in:nth-child(4) {
    animation-delay: .15s;
}

.animate-in:nth-child(5) {
    animation-delay: .2s;
}

.animate-in:nth-child(6) {
    animation-delay: .25s;
}

.animate-in:nth-child(7) {
    animation-delay: .3s;
}

.animate-in:nth-child(8) {
    animation-delay: .35s;
}