/* Sous-onglets du Hub (Kalendar, Kafidées, Membres) : un même langage visuel, une couleur par écran. */

#hubCalendarView { --suite: #9b87ff; --suite-2: #5ec8ff; }
#hubIdeasView { --suite: #ffcf5a; --suite-2: #ff8a3d; }
#appMembersView { --suite: #53e6a5; --suite-2: #4fc3ff; }

/* En-tête : une bannière en dégradé avec un grand titre. */
:is(#hubCalendarView, #appMembersView) > .app-view-heading { position: relative; margin: 12px 12px 12px; padding: 18px 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--suite) 35%, transparent); border-radius: 18px; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--suite-2) 30%, transparent), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--suite) 24%, #111018), #111018 70%); }
:is(#hubCalendarView, #appMembersView) > .app-view-heading .app-kicker { color: var(--suite); }
:is(#hubCalendarView, #appMembersView) > .app-view-heading h1 { font-size: 1.6rem; }
#hubCalendarView > .app-view-heading::after { position: absolute; right: 70px; bottom: -18px; content: "📅"; font-size: 4.2rem; opacity: .18; transform: rotate(-12deg); pointer-events: none; }
#appMembersView > .app-view-heading::after { position: absolute; right: 14px; bottom: -14px; content: "👥"; font-size: 4.2rem; opacity: .18; transform: rotate(-8deg); pointer-events: none; }
#hubCalendarView .hub-calendar-heading-actions button { border-color: color-mix(in srgb, var(--suite) 45%, transparent); background: color-mix(in srgb, var(--suite) 16%, transparent); color: #fff; }

/* ---------- Kalendar ---------- */
#hubCalendarView .hub-calendar-card,
#hubCalendarView .hub-calendar-agenda { border-color: rgba(255, 255, 255, .08); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), #121118; }
#hubCalendarView .hub-calendar-card > header { border-bottom: 0; }
#hubCalendarView .hub-calendar-card > header h2 { background: linear-gradient(90deg, #fff, var(--suite)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.25rem; font-weight: 900; }
#hubCalendarView .hub-calendar-card > header button { border-color: color-mix(in srgb, var(--suite) 40%, transparent); background: color-mix(in srgb, var(--suite) 12%, transparent); color: #fff; }
#hubCalendarView .hub-calendar-weekdays span { color: color-mix(in srgb, var(--suite) 70%, #fff); font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
#hubCalendarView .hub-calendar-grid { gap: 5px; }
#hubCalendarView .hub-calendar-grid button { min-height: 52px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px; background: rgba(255, 255, 255, .025); transition: transform .15s ease, background .2s ease; }
#hubCalendarView .hub-calendar-grid button:active { transform: scale(.94); }
#hubCalendarView .hub-calendar-grid button.is-outside { opacity: .22; }
#hubCalendarView .hub-calendar-grid button.is-today span { width: 26px; height: 26px; background: transparent; box-shadow: 0 0 0 2px var(--suite); color: #fff; }
#hubCalendarView .hub-calendar-grid button.is-selected { border-color: transparent; background: linear-gradient(135deg, var(--suite), var(--suite-2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--suite) 45%, transparent); }
#hubCalendarView .hub-calendar-grid button.is-selected span { color: #120d22; }
#hubCalendarView .hub-calendar-grid button.is-selected b { box-shadow: 0 0 0 1.5px #fff; }
#hubCalendarView .hub-calendar-grid button b { width: 6px; height: 6px; box-shadow: 0 0 6px currentColor; }
#hubCalendarView .hub-calendar-agenda h2 { font-size: 1.1rem; text-transform: capitalize; }
#hubCalendarView .hub-calendar-agenda .app-kicker { color: var(--suite); }
/* Agenda en frise : une ligne verticale, une pastille par événement. */
#hubCalendarView #hubCalendarEvents { position: relative; }
#hubCalendarView .hub-calendar-event { margin-left: 4px; padding: 12px 12px 12px 0; border: 0; }
#hubCalendarView .hub-calendar-event::before { position: absolute; top: 0; bottom: 0; left: 17px; width: 2px; content: ""; background: linear-gradient(var(--suite), transparent); opacity: .4; }
#hubCalendarView .hub-calendar-event-icon { position: relative; z-index: 1; border-radius: 50%; background: color-mix(in srgb, var(--event-color, var(--suite)) 22%, #15131d); box-shadow: 0 0 0 2px var(--event-color, var(--suite)); }
#hubCalendarView .hub-calendar-event[data-category="birthday"] { --event-color: #ef4f9a; }
#hubCalendarView .hub-calendar-event[data-category="stream"] { --event-color: #39c5bb; }
#hubCalendarView .hub-calendar-event[data-category="release"] { --event-color: #ffb347; }
#hubCalendarView .hub-calendar-event > div { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--event-color, var(--suite)) 9%, rgba(255, 255, 255, .02)); }
#hubCalendarView .hub-calendar-event small { color: var(--event-color, var(--suite)); }
#hubCalendarView .hub-calendar-event strong { font-size: .9rem; }
#hubCalendarView .hub-calendar-empty span { color: var(--suite); }
#hubCalendarView .hub-community-form { border-color: color-mix(in srgb, var(--suite) 35%, transparent); border-radius: 18px; }

/* ---------- Kafidées ---------- */
#hubIdeasView .hub-ideas-hero { margin: 12px 12px 10px; border-radius: 18px; background: radial-gradient(circle at 100% 0%, rgba(255, 138, 61, .3), transparent 55%), linear-gradient(135deg, rgba(255, 207, 90, .22), #121018 70%); border: 1px solid rgba(255, 207, 90, .3); }
#hubIdeasView .hub-ideas-hero .app-kicker { color: var(--suite); }
#hubIdeasView .hub-ideas-tabs { border-color: rgba(255, 207, 90, .25); border-radius: 999px; background: rgba(255, 255, 255, .03); }
#hubIdeasView .hub-ideas-tabs button { border-radius: 999px; }
#hubIdeasView .hub-ideas-tabs button.is-active { background: linear-gradient(90deg, var(--suite), var(--suite-2)); color: #1d1200; }
#hubIdeasView .hub-ideas-toolbar button { border-radius: 999px; }
#hubIdeasView .hub-ideas-toolbar button.is-active { background: rgba(255, 207, 90, .16); color: var(--suite); box-shadow: inset 0 0 0 1px rgba(255, 207, 90, .45); }
#hubIdeasView .hub-suite-add { border-color: rgba(255, 207, 90, .5); background: linear-gradient(90deg, var(--suite), var(--suite-2)); color: #1d1200; font-weight: 900; }
#hubIdeasView .hub-suite-add span { color: #1d1200; }
#hubIdeasView .hub-idea-card { border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), #121118; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
#hubIdeasView .hub-idea-card:first-child { border-color: rgba(255, 207, 90, .45); box-shadow: 0 0 0 1px rgba(255, 207, 90, .15), 0 14px 34px -16px rgba(255, 180, 60, .45); }
#hubIdeasView .hub-idea-votes { border-radius: 14px; background: rgba(255, 207, 90, .07); }
#hubIdeasView .hub-idea-vote-button { border-radius: 10px; transition: transform .15s ease, background .2s ease; }
#hubIdeasView .hub-idea-vote-button:active { transform: scale(.88); }
#hubIdeasView .hub-idea-vote-button.is-up { background: linear-gradient(135deg, #53e6a5, #2bb57a); color: #062014; }
#hubIdeasView .hub-idea-vote-button.is-down { background: linear-gradient(135deg, #ff6b7a, #d93a4b); color: #fff; }
#hubIdeasView .hub-idea-score { color: var(--suite); font-size: 1.15rem; text-shadow: 0 0 12px rgba(255, 207, 90, .5); }
#hubIdeasView .hub-idea-meta b { padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, var(--suite), var(--suite-2)); color: #1d1200; font-size: .52rem; letter-spacing: .08em; }
#hubIdeasView .hub-idea-card.is-validated { border-color: rgba(83, 230, 165, .45); }
#hubIdeasView .hub-idea-approved { background: rgba(83, 230, 165, .1); color: #53e6a5; }
#hubIdeasView .hub-idea-card h2 { font-size: 1rem; line-height: 1.3; }
#hubIdeasView .hub-idea-actions button { border-radius: 999px; }
#hubIdeasView .hub-idea-comment-form { border-radius: 999px; }

/* ---------- Membres ---------- */
#appMembersView .app-member-list { display: grid; gap: 8px; padding: 0 12px 16px; }
#appMembersView .app-member-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), #121118; transition: transform .15s ease, border-color .2s ease; }
#appMembersView .app-member-row:active { transform: scale(.98); }
#appMembersView .app-member-avatar { width: 50px; height: 50px; }
#appMembersView .app-member-avatar .app-avatar { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); }
#appMembersView .app-member-row:has(.is-online) .app-member-avatar .app-avatar { box-shadow: 0 0 0 2px var(--suite), 0 0 14px color-mix(in srgb, var(--suite) 60%, transparent); }
#appMembersView .app-member-copy strong { font-size: .92rem; }
#appMembersView .app-member-copy small { color: rgba(255, 255, 255, .5); }
#appMembersView .app-member-seen { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .6); font-size: .6rem; font-weight: 800; white-space: nowrap; }
#appMembersView .app-member-seen.is-online { background: color-mix(in srgb, var(--suite) 18%, transparent); color: var(--suite); }
#appMembersView .app-member-seen.is-online::before { display: inline-block; width: 6px; height: 6px; margin-right: 5px; content: ""; border-radius: 50%; background: var(--suite); box-shadow: 0 0 6px var(--suite); vertical-align: middle; animation: suite-online 1.6s ease-in-out infinite; }

@keyframes suite-online { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { #appMembersView .app-member-seen.is-online::before { animation: none; } }
