/*
 * Playful accent layer on top of vanilla Bootstrap 5 — colorful icon badges,
 * rounded pill buttons/cards, and a friendly hero background for the public
 * landing page. Kept purely additive (new classes + a couple of CSS-variable
 * overrides) so nothing else in the app has to change to pick it up.
 */

:root {
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338ca;
    --bs-link-hover-color-rgb: 67, 56, 202;

    --accent-yellow-bg: #fef3c7;
    --accent-yellow-fg: #b45309;
    --accent-pink-bg: #fce7f3;
    --accent-pink-fg: #be185d;
    --accent-blue-bg: #dbeafe;
    --accent-blue-fg: #1d4ed8;
    --accent-orange-bg: #ffe4d5;
    --accent-orange-fg: #c2410c;
    --accent-green-bg: #d1fae5;
    --accent-green-fg: #047857;
    --accent-purple-bg: #ede9fe;
    --accent-purple-fg: #6d28d9;
}

.btn-primary {
    --bs-btn-bg: #4f46e5;
    --bs-btn-border-color: #4f46e5;
    --bs-btn-hover-bg: #4338ca;
    --bs-btn-hover-border-color: #4338ca;
    --bs-btn-active-bg: #3730a3;
    --bs-btn-active-border-color: #3730a3;
}

/* Rounded pill buttons — opt-in via .btn-pill, used on primary CTAs. */
.btn-pill {
    border-radius: 50rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Rounded, border-less cards for the friendlier areas of the app
   (landing page, dashboards, login cards). Existing plain .card usage
   elsewhere is untouched. */
.card-playful {
    border: none;
    border-radius: 1rem;
}

.card-playful.card-hover {
    transition: transform .15s ease, box-shadow .15s ease;
}
.card-playful.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06), 0 12px 28px rgba(0, 0, 0, .10);
}

/* Colored circular icon badges, e.g. <span class="icon-badge icon-badge-yellow">…</span> */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.icon-badge-sm { width: 2rem; height: 2rem; font-size: .95rem; }
.icon-badge-lg { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }

.icon-badge-yellow { background: var(--accent-yellow-bg); color: var(--accent-yellow-fg); }
.icon-badge-pink   { background: var(--accent-pink-bg);   color: var(--accent-pink-fg); }
.icon-badge-blue   { background: var(--accent-blue-bg);   color: var(--accent-blue-fg); }
.icon-badge-orange { background: var(--accent-orange-bg); color: var(--accent-orange-fg); }
.icon-badge-green  { background: var(--accent-green-bg);  color: var(--accent-green-fg); }
.icon-badge-purple { background: var(--accent-purple-bg); color: var(--accent-purple-fg); }

/* Landing page hero — soft color blobs behind the content, pure CSS so no
   image assets are needed. */
.hero-playful {
    position: relative;
    overflow: hidden;
    background: #fff;
}
.hero-playful .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: .9;
    z-index: 0;
}
.hero-playful .blob-1 { width: 340px; height: 340px; background: #ff8a5c; top: -120px; left: -90px; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.hero-playful .blob-2 { width: 420px; height: 420px; background: #ffc531; top: -160px; right: -140px; border-radius: 58% 42% 35% 65% / 55% 46% 54% 45%; }
.hero-playful .blob-3 { width: 300px; height: 300px; background: #5f9c76; bottom: -140px; left: -80px; border-radius: 45% 55% 40% 60% / 50% 55% 45% 50%; }
.hero-playful .blob-4 { width: 260px; height: 260px; background: #4f46e5; bottom: -90px; right: -70px; border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
.hero-playful .hero-card {
    position: relative;
    z-index: 1;
}

/* Navbar: soft rounded pill nav-links with a light active state, instead of
   Bootstrap's default dark underline style. */
.navbar-playful {
    --bs-navbar-active-color: var(--bs-primary);
}
.navbar-playful .navbar-brand {
    color: var(--bs-primary);
    font-weight: 700;
}
.navbar-playful .nav-link {
    border-radius: 50rem;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: background-color .12s ease, color .12s ease;
}
.navbar-playful .nav-link:hover {
    background-color: rgba(79, 70, 229, .08);
}
.navbar-playful .nav-link.active {
    background-color: rgba(79, 70, 229, .12);
    color: var(--bs-primary) !important;
    font-weight: 600;
}

/* Slim progress bars used on dashboard "jump back in"-style cards. */
.progress-playful {
    height: .5rem;
    border-radius: 50rem;
    background-color: #eef0f4;
}
