/* ═══════════════════════════════════════════
   REFERENCE PAGE STYLES
═══════════════════════════════════════════ */

.ref-hero {
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
}

.ref-icon {
    font-size: 4.5rem;
    margin-bottom: 1.25rem;
    display: block;
    animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.ref-badges {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.75rem;
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
    padding: 0 2rem 5.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.snippet-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.75rem;
    backdrop-filter: blur(18px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.snippet-card:hover {
    transform: translateY(-10px);
    border-color: rgba(196,181,253,0.45);
    box-shadow: 0 18px 50px rgba(124,58,237,0.18);
}

.snippet-card h3 {
    margin-bottom: 1.25rem;
    color: var(--sky);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.snippet-card h3::before {
    content: '//';
    opacity: 0.45;
}

.code-block {
    background: rgba(0,0,0,0.45);
    padding: 1.35rem;
    border-radius: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #eeeeee;
    line-height: 1.65;
    white-space: pre-wrap;
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

/* SEO & FAQ Section */
.seo-footer {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid var(--border);
    padding: 5.5rem 2rem;
    margin-top: 2.5rem;
}

.seo-content {
    max-width: 850px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.85;
}

.seo-content h2 {
    color: #fff;
    margin-bottom: 1.75rem;
    font-size: 1.85rem;
}

.seo-content p {
    margin-bottom: 1.35rem;
}

.breadcrumb {
    display: flex;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.breadcrumb a {
    color: var(--violet);
}

.doc-link {
    color: var(--violet);
    text-decoration: underline;
    font-weight: 600;
}

.doc-link:hover {
    color: #fff;
}

/* Responsive Overrides */
@media (max-width: 600px) {
    .ref-grid {
        grid-template-columns: 1fr;
        padding: 0 1.25rem 4.5rem;
    }
    .ref-hero h1 {
        font-size: 2.85rem !important;
    }
}
