:root {
    --rediculaws-pink: #ff6b6b;
    --rediculaws-yellow: #ffd166;
    --rediculaws-mint: #4ecdc4;
    --rediculaws-blue: #2ec4ff;
    --rediculaws-purple: #7b2cbf;
    --rediculaws-dark: #171629;
    --rediculaws-cream: #fff7e8;
    --card-radius: 1.4rem;
}

* { scroll-margin-top: 92px; }
body {
    min-height: 100vh;
    color: #22223b;
    background:
        radial-gradient(circle at top left, rgba(255, 209, 102, .45), transparent 34rem),
        radial-gradient(circle at 88% 10%, rgba(78, 205, 196, .38), transparent 30rem),
        linear-gradient(180deg, #fff7e8 0%, #f6f2ff 48%, #eefcff 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header .navbar {
    background: linear-gradient(110deg, #171629 0%, #4b168b 45%, #ff4f80 100%);
    box-shadow: 0 1rem 2.5rem rgba(24, 22, 41, .18);
}
.navbar-brand strong { font-size: 1.3rem; letter-spacing: .02em; }
.navbar-brand small { font-size: .72rem; color: rgba(255,255,255,.72); margin-top: -.2rem; }
.nav-link { font-weight: 700; border-radius: 999px; padding-inline: 1rem !important; }
.nav-link:hover, .nav-link:focus { background: rgba(255,255,255,.14); }

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .3), transparent 13rem),
        radial-gradient(circle at 92% 20%, rgba(255, 209, 102, .38), transparent 18rem),
        linear-gradient(135deg, #6919ca, #ff5c8a 52%, #ffb703);
    border-radius: 0 0 3rem 3rem;
}
.hero::after {
    content: "§ ⚖︎ ? !";
    position: absolute;
    right: -1rem;
    bottom: -2.7rem;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 11rem);
    color: rgba(255,255,255,.13);
    letter-spacing: .06em;
    pointer-events: none;
}
.hero-card {
    background: rgba(255,255,255,.92);
    color: #22223b;
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 1.3rem 3.5rem rgba(23,22,41,.22);
    backdrop-filter: blur(10px);
}

.badge-soft {
    color: #171629;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 .6rem 1.3rem rgba(23,22,41,.12);
}

.stat-card, .law-card, .filter-card, .feature-card, .detail-card {
    border: 0;
    border-radius: var(--card-radius);
    background: rgba(255,255,255,.9);
    box-shadow: 0 1rem 2.5rem rgba(35, 24, 74, .1);
}
.stat-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 1.35rem 2.9rem rgba(35,24,74,.16); }
.stat-icon {
    width: 3rem;
    height: 3rem;
    display: inline-grid;
    place-items: center;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--rediculaws-pink), var(--rediculaws-purple));
}

.section-kicker {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    padding: .4rem .75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .8rem;
    color: #5a189a;
    background: rgba(123,44,191,.1);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.law-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.law-card::before {
    content: "";
    display: block;
    height: .44rem;
    background: linear-gradient(90deg, var(--rediculaws-pink), var(--rediculaws-yellow), var(--rediculaws-mint), var(--rediculaws-purple));
}
.law-card:hover { transform: translateY(-5px); box-shadow: 0 1.5rem 3rem rgba(35,24,74,.16); }
.law-title a { color: #171629; text-decoration: none; }
.law-title a:hover { color: #7b2cbf; }
.law-summary { color: #56516a; }
.law-meta { color: #706a83; font-size: .92rem; }

.category-chip, .tag-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}
.category-chip { padding: .45rem .75rem; font-size: .78rem; color: #fff; }
.tag-chip { padding: .38rem .63rem; font-size: .74rem; color: #5a189a; background: rgba(123,44,191,.09); border: 1px solid rgba(123,44,191,.12); text-decoration: none; }
.tag-chip:hover { background: rgba(123,44,191,.16); color: #3c096c; }

.cat-animal { background: linear-gradient(135deg, #00b894, #00cec9); }
.cat-food { background: linear-gradient(135deg, #f76707, #ffd43b); }
.cat-public { background: linear-gradient(135deg, #e64980, #be4bdb); }
.cat-transport { background: linear-gradient(135deg, #228be6, #15aabf); }
.cat-fashion { background: linear-gradient(135deg, #cc5de8, #ff8787); }
.cat-household { background: linear-gradient(135deg, #7950f2, #4dabf7); }
.cat-history { background: linear-gradient(135deg, #8d6e63, #ffb74d); }
.cat-bureaucracy { background: linear-gradient(135deg, #495057, #868e96); }
.cat-nature { background: linear-gradient(135deg, #2b8a3e, #94d82d); }
.cat-noise { background: linear-gradient(135deg, #364fc7, #f06595); }

.like-btn {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #ff477e, #7b2cbf);
    box-shadow: 0 .7rem 1.35rem rgba(255,71,126,.24);
    border-radius: 999px;
    font-weight: 900;
}
.like-btn:hover { color: #fff; filter: brightness(1.07); }
.like-btn.is-liked, .like-btn[disabled] { opacity: .7; cursor: not-allowed; }

.weird-meter {
    height: .72rem;
    border-radius: 999px;
    background: rgba(23,22,41,.08);
    overflow: hidden;
}
.weird-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #ffd166, #ff6b6b);
    border-radius: inherit;
}

.ad-slot {
    border: 2px dashed rgba(23,22,41,.2);
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.82), rgba(255,255,255,.82) 10px, rgba(255,209,102,.18) 10px, rgba(255,209,102,.18) 20px);
    border-radius: 1.25rem;
    min-height: 92px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #514b65;
    padding: 1rem;
}
.ad-label {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    color: #7b2cbf;
}
.ad-copy { font-size: .86rem; }
.ad-slot-top { min-height: 90px; }
.ad-slot-sidebar { min-height: 280px; position: sticky; top: 110px; }
.ad-slot-footer { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.25); }
.ad-slot-footer code { color: #fff; }

.search-pill {
    border: 0;
    border-radius: 999px;
    padding: .8rem 1rem;
    box-shadow: inset 0 0 0 1px rgba(23,22,41,.09);
}
.btn-rediculaws {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #ff477e, #5a189a);
    border-radius: 999px;
    font-weight: 900;
    padding: .75rem 1.1rem;
    box-shadow: 0 1rem 1.8rem rgba(90,24,154,.22);
}
.btn-rediculaws:hover { color: #fff; transform: translateY(-1px); }

.detail-hero {
    color: #fff;
    background:
        radial-gradient(circle at 82% 16%, rgba(255,255,255,.2), transparent 15rem),
        linear-gradient(135deg, #1d3557, #7b2cbf 52%, #ff6b6b);
    border-radius: 0 0 2.5rem 2.5rem;
}
.law-body {
    font-size: 1.08rem;
    line-height: 1.8;
}
.source-note {
    border-left: .4rem solid #ffd166;
    background: rgba(255,209,102,.18);
    border-radius: .8rem;
}

.bootstrap-select > .dropdown-toggle {
    border-radius: 999px;
    border: 0;
    padding: .78rem 1rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(23,22,41,.1);
}
.bootstrap-select .dropdown-menu { border-radius: 1rem; border: 0; box-shadow: 0 1rem 2rem rgba(23,22,41,.15); }

.pagination .page-link { border: 0; border-radius: 999px !important; margin: 0 .15rem; color: #5a189a; font-weight: 800; }
.pagination .active .page-link { background: linear-gradient(135deg, #ff477e, #7b2cbf); }

.footer-wave {
    color: #fff;
    background: linear-gradient(135deg, #171629, #3c096c 50%, #ff477e);
    border-radius: 3rem 3rem 0 0;
}
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.skip-link {
    position: fixed;
    z-index: 2000;
    top: .5rem;
    left: .5rem;
    background: #fff;
    color: #171629;
    padding: .5rem .75rem;
    border-radius: .5rem;
}

@media (max-width: 767.98px) {
    .hero, .detail-hero { border-radius: 0 0 1.5rem 1.5rem; }
    .display-4 { font-size: 2.25rem; }
    .ad-slot-sidebar { position: static; min-height: 160px; }
    .navbar-brand strong { font-size: 1.1rem; }
}

.setup-step {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffbe0b, #ff477e, #7b2cbf);
    box-shadow: 0 .8rem 1.5rem rgba(123,44,191,.22);
    flex: 0 0 3rem;
}
.admin-nav-card { top: 112px; }
.admin-nav-card .nav-link {
    color: #312244;
    font-weight: 800;
}
.admin-nav-card .nav-link.active,
.admin-nav-card .nav-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff477e, #7b2cbf);
}
.stat-tile {
    min-height: 110px;
    padding: 1rem;
    border-radius: 1.25rem;
    color: #171629;
    background: linear-gradient(135deg, rgba(255,209,102,.85), rgba(167,243,208,.75));
    border: 1px solid rgba(23,22,41,.06);
}
.stat-tile strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}
.stat-tile span {
    display: block;
    margin-top: .5rem;
    font-weight: 800;
    color: rgba(23,22,41,.68);
}
.admin-page textarea.font-monospace,
.setup-page pre {
    font-size: .86rem;
}

.blog-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--card-radius);
    background: rgba(255,255,255,.92);
    box-shadow: 0 1rem 2.5rem rgba(35,24,74,.1);
    transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card::before {
    content: "";
    display: block;
    height: .44rem;
    background: linear-gradient(90deg, #2ec4ff, #4ecdc4, #ffd166, #ff6b6b);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1.5rem 3rem rgba(35,24,74,.16);
}
.blog-article {
    font-size: 1.08rem;
    line-height: 1.84;
}
.blog-article p {
    margin-bottom: 1.25rem;
}
.flag-icon-emoji {
    font-size: 1.15em;
    line-height: 1;
}
.website-logo{
    max-width:300px;
}
@media (max-width: 767px) {
    .website-logo{
        max-width:190px;
    }
}
@media (max-width: 380px) {
    .website-logo {
        width: min(145px, calc(100vw - 5.75rem));
        max-width: calc(100vw - 5.75rem);
    }

    .navbar-toggler {
        padding-left: .35rem;
        padding-right: .35rem;
    }
}
