/* Page styles extracted from templates/user_profile.html (loaded after styles.css, same cascade order). */
/* Granularity Toggle Group Styles */
.granularity-toggle-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}
.granularity-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    user-select: none;
}
.granularity-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.granularity-btn.active {
    background: #38bdf8;
    color: #0b1120;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

/* Tab Navigation Styles */
.graphs-tabs-wrapper {
    margin: 25px 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}
.graphs-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    -webkit-overflow-scrolling: touch;
}
.graphs-tabs::-webkit-scrollbar {
    height: 5px;
}
.graphs-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.graphs-tab-btn {
    background: #15202e;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}
.graphs-tab-btn:hover {
    background: #1c2a3a;
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}
.graphs-tab-btn.active {
    background: rgba(57, 146, 190, 0.2);
    color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}
.graphs-tab-btn .tab-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}
.graphs-tab-btn.active .tab-badge {
    background: rgba(56, 189, 248, 0.3);
    color: #e0f2fe;
}
.graphs-tab-pane {
    display: none;
}
.graphs-tab-pane.active {
    display: block;
    animation: tabFadeIn 0.25s ease-out;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cadre Vert (Discord speaking) autour de l'avatar quand le membre est en vocal */
.pp-in-voice {
    border: 3.5px solid #23a55a !important;
    box-shadow: 0 0 16px rgba(35, 165, 90, 0.55), inset 0 0 8px rgba(35, 165, 90, 0.25) !important;
    animation: voicePulse 2s infinite ease-in-out;
}
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 14px rgba(35, 165, 90, 0.45); }
    50% { box-shadow: 0 0 24px rgba(35, 165, 90, 0.85); }
}

/* Pastille de statut Discord sur l'avatar */
.status-indicator-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3.5px solid #141f2e;
    box-sizing: border-box;
    z-index: 3;
}
.status-indicator-badge.status-online {
    background-color: #10b981;
}
.status-indicator-badge.status-idle {
    background-color: #f59e0b;
}
.status-indicator-badge.status-dnd {
    background-color: #ef4444;
}
.status-indicator-badge.status-offline {
    background-color: #64748b;
}

/* Heatmap Styles (GitHub Style) */
.heatmap-calendar-wrap {
    overflow-x: auto;
    padding: 12px 0 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.heatmap-grid-annual {
    display: grid;
    grid-template-rows: repeat(7, 13px);
    grid-auto-flow: column;
    grid-auto-columns: 13px;
    gap: 3.5px;
    width: max-content;
}
.heatmap-cell {
    width: 13px;
    height: 13px;
    border-radius: 2.5px;
    transition: transform 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}
.heatmap-cell:hover {
    transform: scale(1.4);
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}
.heatmap-annual-layout {
    display: flex;
    gap: 8px;
    width: max-content;
}
.heatmap-weekday-labels {
    display: grid;
    grid-template-rows: repeat(7, 13px);
    gap: 3.5px;
    margin-top: 20px;
    font-size: 0.68rem;
    line-height: 13px;
    color: #8b9bb0;
}
.heatmap-month-labels {
    display: grid;
    gap: 3.5px;
    height: 16px;
    margin-bottom: 4px;
    font-size: 0.7rem;
    color: #8b9bb0;
}
.heatmap-month-labels span {
    white-space: nowrap;
}
.heatmap-cell-blank,
.heatmap-cell-blank:hover {
    background: transparent;
    cursor: default;
    transform: none;
    filter: none;
}
.heatmap-level-0 { background: rgba(255, 255, 255, 0.05); }
.heatmap-level-1 { background: #0e4429; }
.heatmap-level-2 { background: #006d32; }
.heatmap-level-3 { background: #26a641; }
.heatmap-level-4 { background: #39d353; box-shadow: 0 0 6px rgba(57, 211, 83, 0.5); }

/* Monthly Heatmap Grid */
.heatmap-grid-monthly {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.heatmap-month-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}
.heatmap-month-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

/* Companion Cards */
.companion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.companion-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
