/* DEN RECORDS — notificações + chat v1 */

/* Sino */
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: white;
    background: rgba(255,255,255,.035);
    transition: border-color .16s ease, background .16s ease;
}

.notification-bell:hover {
    border-color: rgba(176,0,255,.45);
    background: rgba(138,0,255,.09);
}

.notification-bell__icon {
    font-size: 1.25rem;
    transform: rotate(45deg);
}

.notification-bell__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid #08070a;
    border-radius: 999px;
    color: white;
    background: #a600ff;
    font-size: .64rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 0 18px rgba(166,0,255,.42);
}

/* Notificações */
.notification-list {
    display: grid;
    gap: 10px;
}

.notification-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    transition: transform .15s ease, border-color .15s ease;
}

.notification-card:hover {
    transform: translateY(-2px);
    border-color: rgba(176,0,255,.4);
}

.notification-card--unread {
    border-color: rgba(176,0,255,.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(176,0,255,.10), transparent 18rem),
        rgba(255,255,255,.045);
}

.notification-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #e2baff;
    background: rgba(138,0,255,.14);
    font-size: 1.15rem;
    font-weight: 900;
}

.notification-card__heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.notification-card__content strong {
    font-size: .98rem;
}

.notification-card__content p {
    margin: 5px 0 7px;
    color: #d5cdd9;
    line-height: 1.5;
}

.notification-card__content small {
    color: var(--muted);
}

.notification-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #ad19ff;
    box-shadow: 0 0 12px rgba(173,25,255,.6);
}

.notification-card__arrow {
    color: #cf98ff;
    font-weight: 900;
}

/* Chat */
.chat-page {
    min-height: calc(100vh - 180px);
}

.chat-shell {
    width: min(100%, 980px);
    height: min(76vh, 760px);
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at 85% 0%, rgba(138,0,255,.12), transparent 24rem),
        rgba(8,7,10,.98);
}

.chat-header {
    display: grid;
    grid-template-columns: 40px 50px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.022);
}

.chat-header__back {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(255,255,255,.045);
    font-size: 1.15rem;
}

.chat-header__avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    font-size: 1rem;
}

.chat-header__person {
    min-width: 0;
}

.chat-header__person strong,
.chat-header__person a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-header__person a {
    margin-top: 3px;
    color: var(--muted);
    font-size: .82rem;
}

.chat-header__status {
    padding: 7px 10px;
    border: 1px solid rgba(91,224,145,.18);
    border-radius: 999px;
    color: #c0fbd7;
    background: rgba(60,197,117,.08);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.chat-messages {
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 22px;
    scrollbar-width: thin;
}

.chat-message {
    display: flex;
    justify-content: flex-start;
}

.chat-message--own {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(72%, 650px);
    padding: 11px 13px 8px;
    border: 1px solid var(--border);
    border-radius: 16px 16px 16px 5px;
    background: rgba(255,255,255,.055);
}

.chat-message--own .chat-bubble {
    border-color: rgba(176,0,255,.28);
    border-radius: 16px 16px 5px 16px;
    background:
        linear-gradient(135deg, rgba(111,0,180,.55), rgba(139,0,224,.38));
}

.chat-bubble p {
    margin: 0;
    color: #f1ebf4;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-bubble small {
    display: block;
    margin-top: 5px;
    color: rgba(234,222,240,.58);
    font-size: .66rem;
    text-align: right;
}

.chat-empty {
    margin: auto;
    max-width: 420px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.chat-empty > span {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #dba5ff;
    background: rgba(138,0,255,.14);
    font-size: 1.5rem;
}

.chat-empty strong {
    display: block;
    color: white;
    font-size: 1.05rem;
}

.chat-empty p {
    margin: 7px 0 0;
}

.chat-compose {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: rgba(5,5,5,.84);
}

.chat-compose textarea {
    width: 100%;
    min-height: 46px;
    max-height: 140px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: white;
    background: rgba(255,255,255,.05);
    outline: none;
    resize: none;
    line-height: 1.4;
}

.chat-compose textarea:focus {
    border-color: rgba(176,0,255,.45);
    box-shadow: 0 0 0 3px rgba(138,0,255,.08);
}

.chat-send {
    min-height: 46px;
}

@media (max-width: 900px) {
    .nav__account {
        gap: 10px;
    }
}

@media (max-width: 620px) {
    .notification-bell {
        width: 42px;
        height: 42px;
    }

    .notification-card {
        grid-template-columns: 42px minmax(0,1fr);
        gap: 11px;
        padding: 13px;
    }

    .notification-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .notification-card__arrow {
        display: none;
    }

    .chat-page {
        padding-left: 8px;
        padding-right: 8px;
        padding-bottom: 118px;
    }

    .chat-shell {
        height: calc(100dvh - 112px);
        min-height: 500px;
        border-radius: 18px;
    }

    .chat-header {
        grid-template-columns: 36px 44px minmax(0,1fr);
        gap: 9px;
        padding: 10px;
    }

    .chat-header__avatar {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .chat-header__status {
        display: none;
    }

    .chat-messages {
        padding: 14px 10px;
    }

    .chat-bubble {
        max-width: 86%;
    }

    .chat-compose {
        grid-template-columns: minmax(0,1fr) auto;
        padding: 9px;
    }

    .chat-send {
        padding-left: 14px;
        padding-right: 14px;
    }
}
