/* LoveForm Notifications Page - Manage Account Tab */

:root {
    --primary-color: #289a96;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --border-gray: #e9ecef;
    --light-border: #e5e5e5;
    --dark-gray: #9d9d9d;
    --spacing-unit: 1rem;
    --section-spacing: 2rem;
}

/* Page header with gradient title */
.notifications-page-header {
    margin-bottom: var(--section-spacing);
    position: relative;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(40, 154, 150, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.notifications-page-header h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #222;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0;
    background: linear-gradient(to right, #222222, #289a96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Accent underline */
.notifications-page-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #289a96, #34b4a7);
    border-radius: 2px;
}

/* Action buttons in header */
.notifications-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.notifications-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--light-border);
    background: white;
    color: #222;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.notifications-actions .btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(40, 154, 150, 0.15);
}

.notifications-actions .btn i {
    font-size: 0.875rem;
}

/* Notification list container */
.notifications-list-wrapper {
    height: auto;
    /* Removed max-height and overflow to prevent double scrollbars */
}

/* Individual notification card - LoveForm style */
.notification-card {
    background: #ffffff;
    border: 1px solid var(--light-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-card:hover {
    box-shadow: 0 4px 12px rgba(40, 154, 150, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.notification-card.unread {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(to right, rgba(40, 154, 150, 0.02), white);
}

/* Notification header row */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.notification-subject {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Notification body */
.notification-body-text {
    font-size: 0.875rem;
    color: var(--medium-gray);
    line-height: 1.5;
    margin: 0;
}

/* Status badge */
.notification-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.notification-status.unread {
    background: rgba(40, 154, 150, 0.1);
    color: var(--primary-color);
}

.notification-status.read {
    background: var(--light-gray);
    color: var(--dark-gray);
}

/* Empty state */
.notifications-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--medium-gray);
}

.notifications-empty-state i {
    font-size: 4rem;
    color: var(--light-border);
    margin-bottom: 1.5rem;
    display: block;
}

.notifications-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.notifications-empty-state p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notifications-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .notifications-page-header h2 {
        font-size: 1.5rem;
    }

    .notifications-actions {
        width: 100%;
    }

    .notifications-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .notification-card {
        padding: 1rem;
    }

    .notification-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .notification-time {
        align-self: flex-start;
    }
}

/* Animation */
@keyframes notif-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-card {
    animation: notif-fadeIn 0.3s ease-out;
}

/* ═══════════════════════════════════════════════════════════ */
/* ACTIONABLE NOTIFICATION STYLING (iOS/Android Pattern)       */
/* ═══════════════════════════════════════════════════════════ */

/* Visual distinction for actionable notifications (with action_url) */
.notification-card.actionable {
    cursor: pointer;
}

.notification-card.actionable:hover {
    background-color: #f8f9fa;
    border-left-width: 4px;
    border-left-color: #007bff;
    transform: translateX(2px) translateY(-2px);
}

/* Informational notifications (no action_url) have subtle cursor */
.notification-card:not(.actionable) {
    cursor: default;
}

.notification-card:not(.actionable):hover {
    background-color: #ffffff;
    transform: translateY(-2px); /* Still lift on hover */
}

/* Arrow icon for actionable notifications */
.notification-arrow {
    font-size: 0.875rem;
    color: #007bff;
    margin-left: auto;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-card.actionable:hover .notification-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Update notification-time to not take full width when arrow present */
.notification-header {
    position: relative;
}

.notification-time {
    margin-right: 0.5rem;
}

/* Responsive adjustments for arrow */
@media (max-width: 768px) {
    .notification-arrow {
        font-size: 0.75rem;
    }
}
