/* ================= Premium BeyondDictionary Theme ================= */
/* Inspired by the high-fidelity Relationship Hub design */

:root {
    /* Sophisticated Color Palette */
    --p-bg: #fffcfc;
    --p-card-bg: #ffffff;
    --p-accent: #ff6b9d;
    /* Rose Pink */
    --p-accent-deep: #ae2a5d;
    --p-accent-muted: #fff0f5;
    --p-text: #2d1b22;
    --p-text-muted: #8a707a;
    --p-radius: 24px;
    --p-shadow: 0 10px 30px rgba(255, 107, 157, 0.08);
}

body.premium-ui {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--p-bg);
    color: var(--p-text);
    margin: 0;
    line-height: 1.6;
}

/* --- Compact Mobile Navigation Hub --- */
.nav-hub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    margin: 8px 12px;
    border: 1px solid rgba(255, 107, 157, 0.15);
    position: sticky;
    top: 8px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.hub-back {
    color: var(--p-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-current {
    background: var(--p-accent-muted);
    color: var(--p-accent);
    padding: 6px 16px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Premium Hero Section --- */
.premium-hero {
    text-align: center;
    padding: 40px 24px 20px;
}

.hero-emoji-trio {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.premium-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--p-accent-deep);
    line-height: 1.2;
    margin-bottom: 8px;
}

.premium-hero h1 span {
    font-weight: 400;
    color: var(--p-text-muted);
}

.hero-subtitle {
    font-size: 1rem;
    font-style: italic;
    color: var(--p-text-muted);
    margin-bottom: 24px;
}

/* --- Instructional Box (Quote/Insight) --- */
.insight-box {
    background: var(--p-accent-muted);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 16px;
    border-left: 5px solid var(--p-accent);
    text-align: left;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.05);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--p-accent-deep);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.insight-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a3a40;
}

/* --- Horizontal Carousel (The Amazing Part) --- */
.premium-carousel-container {
    padding: 24px 0;
    overflow: hidden;
}

.section-title-premium {
    padding: 0 24px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--p-accent-deep);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-premium .badge {
    font-size: 0.7rem;
    background: var(--p-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
}

.horizontal-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 24px 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-carousel::-webkit-scrollbar {
    display: none;
}

.premium-card {
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--p-shadow);
    border: 1px solid rgba(255, 107, 157, 0.05);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:active {
    transform: scale(0.96);
}

.premium-card .card-emoji {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.premium-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--p-accent-deep);
    margin: 8px 0;
}

.premium-card .card-tagline {
    font-size: 0.85rem;
    color: var(--p-text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.premium-card .card-meta {
    font-weight: 700;
    color: var(--p-accent);
    font-size: 0.9rem;
}

/* --- Refined Premium Navigation Controls --- */
.carousel-nav-simple {
    display: flex;
    justify-content: space-between;
    /* Sandwich layout: Left - Label - Right */
    align-items: center;
    padding: 0 24px;
    margin-top: -10px;
}

.nav-btn-premium {
    background: #fff;
    border: 1px solid var(--p-accent-muted);
    color: var(--p-accent);
    padding: 8px 14px;
    /* More compact */
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 44px;
}

/* Response: Hide text on tiny screens, show just arrows */
@media (max-width: 400px) {
    .nav-btn-premium .btn-text {
        display: none;
    }

    .nav-btn-premium {
        padding: 8px;
        min-width: 38px;
    }
}

.nav-counter-premium {
    font-size: 0.75rem;
    color: var(--p-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Minimal Footer --- */
.premium-footer {
    margin-top: 40px;
    padding: 30px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 157, 0.1);
    background: #fff;
}

.footer-brand {
    font-weight: 800;
    color: var(--p-accent-deep);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.footer-sub {
    font-size: 0.75rem;
    color: var(--p-text-muted);
}

/* --- Generic Page Content (About/Contact/etc) --- */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.premium-content {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--p-shadow);
    border: 1px solid rgba(255, 107, 157, 0.05);
}

.premium-content h2 {
    color: var(--p-accent-deep);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.premium-content p {
    margin-bottom: 20px;
    color: #4a3a40;
}