/* ============================================
   NOTIFICATION SYSTEM - FRONTEND STYLES
   ============================================ */

/* ----- Wrapper ----- */
.notification-system-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ----- Header ----- */
.notification-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.notification-header-left h1 {
    margin: 0;
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.notification-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-top: 4px;
}

.unread-badge {
    background: #0073aa;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
}

/* ----- Empty State ----- */
.notification-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 16px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.notification-empty-state h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.notification-empty-state p {
    color: #666;
    max-width: 400px;
    margin: 0 auto 20px;
}

.notification-empty-state .button-primary {
    background: #0073aa;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

/* ----- Groups ----- */
.notification-group {
    margin-bottom: 30px;
}

.notification-group-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #555;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

/* ----- Cards ----- */
.notification-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.15s;
    overflow: hidden;
    cursor: pointer;
}

.notification-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.notification-card.unread {
    background: #fafcff;
    border-left: 4px solid #0073aa;
}

.notification-card.read {
    opacity: 0.8;
}

.notification-card.read .card-title {
    font-weight: 1000;
}

/* Card Indicator (unread dot) */
.card-indicator {
    flex: 0 0 4px;
    background: transparent;
}

.notification-card.unread .card-indicator {
    background: #0073aa;
}

/* Card Body */
.card-body {
    flex: 1;
    padding: 16px 18px;
    background: #65a603;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

/* Card Title - BIGGER & BLOCKIER */
.card-title-link {
    text-decoration: none;
    color: inherit;
}

.card-title-link:hover .card-title {
    color: #e6f0d3;
    text-decoration: underline;
}

.card-title {
    margin: 0;
    font-size: 1.4rem;        /* Bigger */
    font-weight: 1000;        /* Extra bold / blocky */
    color: #ffffff;
    transition: color 0.2s, text-decoration 0.2s;
    letter-spacing: -0.5px;   /* Tighter, blocky feel */
    line-height: 1.2;
}

/* Card Date */
.card-date {
    font-size: 0.8rem;
    color: #ffffff;
    white-space: nowrap;
}

/* Card Content */
.card-content {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.5;
    margin: 4px 0 8px;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* Card Actions */
.card-actions {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
    background: #65a603;
    gap: 4px;
}

/* Mark Read Button */
.mark-read-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #888;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-read-btn:hover {
    background: #e5f0fa;
    color: #0073aa;
}

.mark-read-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Delete Notification Button */
.delete-notification-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #888;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-notification-btn:hover {
    background: #fce4e4;
    color: #dc3232;
}

.delete-notification-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Spinner animation */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ===== USER ICONS (Header) ===== */
.user-icons-wrapper {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    vertical-align: middle;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.user-icon-item {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1;
}

.user-bell .notification-bell-wrapper {
    display: inline-block !important;
}

.user-bell .notification-badge {
    top: -6px;
    right: -6px;
    font-size: 10px;
    padding: 1px 5px;
    background: red;
}

.user-discord:hover {
    color: #5865F2;
}

.user-patreon:hover {
    color: #FF424D;
}

/* Force .c-user_item to be a row flex container */
.c-user_item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .notification-header-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-actions {
        flex: 0 0 44px;
    }

    .notification-card {
        flex-wrap: wrap;
    }

    .card-body {
        padding: 14px;
    }

    .card-title {
        font-size: 1.2rem; /* Slightly smaller on mobile but still bold */
    }
}