/* Local component styles — hero info banner (no external frameworks) */

.hero-info-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: min(42rem, calc(100vw - 2.5rem));
    margin: 0 auto 1.25rem;
}

.hero-info-trigger,
.hero-info-arrow {
    display: none;
}

.hero-info-tooltip {
    position: relative;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Stylized card panel */
.hero-info-card {
    position: relative;
    overflow: visible;
    border-radius: 14px;
    background: linear-gradient(160deg, #ffffff 0%, #f5f7ff 55%, #eef2ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.28);
    box-shadow:
        0 18px 40px -14px rgba(49, 46, 129, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    text-align: left;
}

.hero-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
}

.hero-info-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -25%;
    width: 55%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.hero-info-card-header {
    position: relative;
    padding: 0.85rem 1.15rem 0.55rem 1.35rem;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.22);
}

.hero-info-badge {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-info-badge::before {
    content: 'ⓘ ';
    font-weight: 700;
}

.hero-info-card-content {
    position: relative;
    padding: 0.9rem 1.15rem 1.1rem 1.35rem;
    color: #1e293b;
    font-size: 0.92rem;
    line-height: 1.6;
    overflow: hidden;
}

.hero-info-card-content::after {
    content: '';
    display: table;
    clear: both;
}

.hero-info-image {
    display: block;
    object-fit: cover;
}

.hero-info-card-content p + p {
    margin-top: 0.7rem;
}

.hero-info-lead {
    font-weight: 600;
    color: #0f172a;
}

.hero-info-patreon {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.hero-info-patreon a {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
    box-shadow: 0 6px 16px -8px rgba(79, 70, 229, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-info-patreon a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.9);
}

@media (max-width: 767px) {
    .hero-info-wrap {
        max-width: 100%;
        margin: 0 0 1rem 0;
    }

    .hero-info-card-content {
        font-size: 0.86rem;
    }

    .hero-info-image {
        float: none !important;
        display: block;
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto 1rem !important;
    }
}

/* Dark mode */
body.dark .hero-info-card {
    background: linear-gradient(160deg, #1a2234 0%, #141c2c 55%, #101828 100%);
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow:
        0 20px 44px -16px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

body.dark .hero-info-badge {
    background: rgba(129, 140, 248, 0.18);
    color: #c7d2fe;
}

body.dark .hero-info-card-content {
    color: #e2e8f0;
}

body.dark .hero-info-lead {
    color: #f8fafc;
}

body.dark .hero-info-card-header {
    border-bottom-color: rgba(129, 140, 248, 0.22);
}

body.dark .hero-info-patreon {
    border-top-color: rgba(129, 140, 248, 0.2);
}

body.dark .hero-info-patreon a {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: #0f172a !important;
}
