:root {
    --primary: #0f5d8f;
    --primary-dark: #0b466d;
    --accent: #ff8a57;
    --ink: #1b2d45;
    --muted: #657991;
    --line: #dbe5f1;
}

body {
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background: #f6f9fd;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-pill,
.site-footer__title {
    font-family: 'Space Grotesk', 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.badge-category {
    background-color: #e4f0fb;
    color: var(--primary);
    font-size: .75rem;
}

.prompt-card-link:hover {
    text-decoration: none;
}

.prompt-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.prompt-card__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 125%;
    background: #1a1a2e;
}

.prompt-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.prompt-card:hover .prompt-card__img {
    transform: scale(1.04);
}

.prompt-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #555;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

.prompt-card__img-wrap::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent);
    z-index: 1;
    pointer-events: none;
}

.prompt-card__img-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.prompt-card__top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.prompt-card__badge {
    font-size: .68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1.3;
    letter-spacing: .01em;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.prompt-card__badge--category {
    background: rgba(15, 93, 143, .82);
    color: #fff;
}

.prompt-card__badge--ai {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.prompt-card__badge--premium {
    background: rgba(255, 168, 77, .9);
    color: #1a1a1a;
}

.prompt-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 12px 14px;
    z-index: 2;
}

.prompt-card__title {
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-card__stats {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, .75);
    font-size: .72rem;
}

.prompt-card__stats i {
    font-size: .7rem;
}

.prompt-text-preview {
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    background: #f2f8ff;
    border-left: 3px solid var(--primary);
    padding: .6rem .9rem;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-section {
    background: linear-gradient(135deg, #0f5d8f 0%, #1b7bb7 50%, #0ea5a4 100%);
}

.category-card {
    transition: transform .2s;
}

.category-card:hover {
    transform: translateY(-2px);
}

.filter-sidebar {
    position: sticky;
    top: 20px;
}

.main-nav {
    position: relative;
    z-index: 1200;
    background: linear-gradient(102deg, #ffffff 0%, #f4f8ff 52%, #ecf7ff 100%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(5px);
}

.main-nav .navbar-brand {
    letter-spacing: .01em;
}

.nav-pill {
    border: 1px solid rgba(15, 93, 143, .16);
    background: rgba(255, 255, 255, .72);
    border-radius: 999px;
    font-weight: 600;
    color: #214466;
    transition: all .2s ease;
    padding: .45rem .85rem !important;
}

.nav-pill:hover,
.nav-pill:focus {
    color: #0e3457;
    border-color: rgba(15, 93, 143, .4);
    background: rgba(255, 255, 255, .98);
}

.nav-dropdown {
    z-index: 1300;
    border: 1px solid #d9e6f6;
    box-shadow: 0 14px 36px rgba(18, 61, 106, .14);
    border-radius: 14px;
    padding: .4rem;
    min-width: 290px;
}

.nav-dropdown .dropdown-item {
    border-radius: 10px;
    font-size: .93rem;
    padding: .5rem .65rem;
}

.nav-dropdown .dropdown-item:hover {
    background: #eef6ff;
    color: #163e68;
}

.nav-search .form-control {
    border-radius: 999px 0 0 999px;
    border-color: #cddff2;
    min-width: 220px;
}

.nav-search .btn {
    border-radius: 0 999px 999px 0;
    padding-left: .95rem;
    padding-right: .95rem;
}

.site-footer {
    background: linear-gradient(155deg, #0c203f 0%, #102d56 58%, #104676 100%);
    border-top: 1px solid #204a76;
    color: #d2e3f8;
    padding: 42px 0 22px;
}

.site-footer__brand {
    max-width: 520px;
}

.site-footer__brand p {
    margin: 0;
    color: #a9c4e2;
    line-height: 1.6;
}

.site-footer__title {
    font-size: .98rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    color: #f0f6ff;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .52rem;
}

.site-footer__list a {
    text-decoration: none;
    color: #b8d0ea;
    font-size: .92rem;
}

.site-footer__list a:hover {
    color: #ffffff;
}

.site-footer__list .text-muted {
    color: #94abc6 !important;
    font-size: .9rem;
}

.site-footer__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer__chips span {
    border-radius: 999px;
    padding: 5px 11px;
    border: 1px solid rgba(157, 193, 227, .4);
    color: #e9f3ff;
    font-size: .78rem;
    background: rgba(255, 255, 255, .08);
}

.site-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.site-footer__cta:hover {
    color: #ffd2be;
}

.site-footer__bottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(157, 193, 227, .25);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: #a8c1dd;
    font-size: .84rem;
}

.discover-filters {
    border: 1px solid #e7eaf2;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.discover-group + .discover-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eceff5;
}

.discover-label {
    font-size: .76rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.discover-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.discover-row--categories {
    flex-wrap: wrap;
    max-height: 84px;
    overflow: hidden;
}

.discover-row--neural {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
}

.discover-pill {
    border-radius: 999px;
    font-size: .85rem;
    line-height: 1.4;
    padding: 7px 14px;
    white-space: nowrap;
}

.prompt-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0;
}

.prompt-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
}

.prompt-breadcrumb a:hover {
    color: #374151;
    text-decoration: underline;
}

.prompt-breadcrumb .crumb-sep {
    color: #c4c7d0;
    font-size: .62rem;
}

.article-card a {
    color: #10385d;
}

.article-card a:hover {
    color: var(--primary);
}

.article-view {
    max-width: 920px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #1f3349;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 1em;
}

@media (max-width: 991.98px) {
    .nav-dropdown {
        min-width: 100%;
        max-height: 300px;
    }

    .nav-search {
        margin-top: .8rem;
        width: 100%;
    }

    .nav-search .input-group {
        width: 100%;
    }

    .discover-filters {
        padding: 10px;
    }

    .discover-row--categories {
        max-height: 126px;
    }

    .prompt-breadcrumb a {
        font-size: .8rem;
    }
}
