/* ---------- Notification ---------- */

/* ============================================================
   Notification — STYLES
   Keep page/component styles in logical sections below.
   ============================================================ */

/* =========================================================
   APEMART.LK — NOTIFICATIONS PAGE POLISH
   Matches the rounded account-page surface used by
   My Ads, My Promotions, Messages and Profile.
   Functionality remains in js/notification.js.
========================================================= */

.notifications-page{
    width:100%;
    min-height:calc(100vh - 150px);
    box-sizing:border-box;
}

.notifications-shell{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:18px 24px 58px;
    box-sizing:border-box;
}

.notifications-breadcrumb{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:28px;
    margin:0 4px 14px;
    color:#7a818b;
    font-size:13px;
    font-weight:600;
}

.notifications-breadcrumb a{
    color:#6f7782;
    text-decoration:none;
    transition:color .2s ease;
}

.notifications-breadcrumb a:hover{color:#ff6b00}
.notifications-breadcrumb .current{color:#ff6b00}

.notifications-hero{
    background:rgba(255,255,255,.94);
    border:1px solid rgba(15,23,42,.06);
    border-radius:22px;
    box-shadow:0 10px 30px rgba(15,23,42,.07);
    padding:30px 34px;
    margin-bottom:20px;
}

.notifications-heading{
    display:flex;
    align-items:center;
    gap:18px;
}

.notifications-icon{
    width:58px;
    height:58px;
    flex:0 0 58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:17px;
    background:#fff4e9;
    border:1px solid #ffe0c7;
    font-size:28px;
}

.notifications-eyebrow{
    margin-bottom:5px;
    color:#ef6c22;
    font-size:11px;
    font-weight:800;
    letter-spacing:.16em;
}

.notifications-hero h1{
    margin:0;
    color:#171a1f;
    font-size:32px;
    line-height:1.2;
    font-weight:800;
}

.notifications-hero p{
    margin:7px 0 0;
    color:#68717d;
    font-size:14px;
    line-height:1.5;
}

.notifications-panel{
    background:rgba(255,255,255,.96);
    border:1px solid rgba(15,23,42,.06);
    border-radius:22px;
    box-shadow:0 10px 30px rgba(15,23,42,.07);
    padding:26px;
}

.notifications-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}

.notifications-panel-head h2{
    margin:0;
    color:#20242a;
    font-size:21px;
    line-height:1.3;
    font-weight:800;
}

.notifications-panel-head p{
    margin:5px 0 0;
    color:#7a818b;
    font-size:13px;
}

#notificationList{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.notification-card{
    width:100%;
    box-sizing:border-box;
    padding:20px 22px;
    display:flex;
    flex-direction:column;
    gap:9px;
    background:#fff;
    border:1px solid #edf0f3;
    border-left:4px solid #ff6b00;
    border-radius:16px;
    box-shadow:0 5px 16px rgba(15,23,42,.055);
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.notification-card:hover{
    transform:translateY(-2px);
    border-color:#ffd9bf;
    box-shadow:0 9px 22px rgba(15,23,42,.09);
}

.notification-title{
    color:#20242a;
    font-size:17px;
    line-height:1.4;
    font-weight:800;
    margin:0;
}

.notification-message{
    margin:0;
    color:#59616d;
    font-size:14px;
    line-height:1.7;
    word-break:break-word;
}

.notification-message strong{color:#30353b}

.notification-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-top:4px;
}

.notification-time{
    display:block;
    margin:0;
    color:#8a929d;
    font-size:12px;
    font-weight:600;
}

.notification-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    box-sizing:border-box;
    padding:9px 16px;
    background:#ff6b00;
    color:#fff;
    border:0;
    border-radius:10px;
    text-decoration:none;
    font-size:12px;
    font-weight:800;
    box-shadow:0 4px 10px rgba(255,107,0,.18);
    transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}

.notification-btn:hover{
    background:#e85d00;
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(255,107,0,.22);
}

.empty-notification{
    background:#fbfcfd;
    border:1px dashed #dfe4ea;
    padding:48px 20px;
    text-align:center;
    border-radius:16px;
}

.empty-notification h3{
    margin:0 0 8px;
    color:#252a31;
    font-size:20px;
}

.empty-notification p{
    margin:0;
    color:#727b87;
    font-size:14px;
}

.loading{
    min-height:150px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#7b838e;
    text-align:center;
}

.loading p{margin:0;font-size:13px}

.loading-spinner{
    width:26px;
    height:26px;
    border:3px solid #f0f1f3;
    border-top-color:#ff6b00;
    border-radius:50%;
    animation:notification-spin .75s linear infinite;
}

@keyframes notification-spin{to{transform:rotate(360deg)}}

/* Dark mode */
body.dark-mode .notifications-hero,
body.dark-mode .notifications-panel,
body.dark-mode .notification-card,
html[data-theme="dark"] .notifications-hero,
html[data-theme="dark"] .notifications-panel,
html[data-theme="dark"] .notification-card{
    background:#18202d;
    border-color:#2d3748;
    color:#f3f4f6;
}

body.dark-mode .notifications-hero h1,
body.dark-mode .notifications-panel-head h2,
body.dark-mode .notification-title,
body.dark-mode .notification-message strong,
html[data-theme="dark"] .notifications-hero h1,
html[data-theme="dark"] .notifications-panel-head h2,
html[data-theme="dark"] .notification-title,
html[data-theme="dark"] .notification-message strong{color:#f3f4f6}

body.dark-mode .notifications-hero p,
body.dark-mode .notifications-panel-head p,
body.dark-mode .notification-message,
body.dark-mode .notification-time,
html[data-theme="dark"] .notifications-hero p,
html[data-theme="dark"] .notifications-panel-head p,
html[data-theme="dark"] .notification-message,
html[data-theme="dark"] .notification-time{color:#aeb6c2}

body.dark-mode .notifications-breadcrumb a,
html[data-theme="dark"] .notifications-breadcrumb a{color:#aeb6c2}
body.dark-mode .notifications-breadcrumb .current,
html[data-theme="dark"] .notifications-breadcrumb .current{color:#ff8a3d}

body.dark-mode .notifications-icon,
html[data-theme="dark"] .notifications-icon{background:#2b211a;border-color:#5a3824}

body.dark-mode .empty-notification,
html[data-theme="dark"] .empty-notification{background:#141b26;border-color:#354052}
body.dark-mode .empty-notification h3,
html[data-theme="dark"] .empty-notification h3{color:#f3f4f6}
body.dark-mode .empty-notification p,
html[data-theme="dark"] .empty-notification p{color:#aeb6c2}

@media(max-width:768px){
    .notifications-shell{padding:14px 14px 38px}
    .notifications-breadcrumb{margin:0 2px 12px;font-size:12px}
    .notifications-hero{padding:22px 18px;border-radius:18px;margin-bottom:14px}
    .notifications-heading{align-items:flex-start;gap:13px}
    .notifications-icon{width:48px;height:48px;flex-basis:48px;border-radius:14px;font-size:23px}
    .notifications-eyebrow{font-size:10px}
    .notifications-hero h1{font-size:25px}
    .notifications-hero p{font-size:13px}
    .notifications-panel{padding:17px 14px;border-radius:18px}
    .notifications-panel-head{margin-bottom:14px}
    .notifications-panel-head h2{font-size:18px}
    .notifications-panel-head p{font-size:12px;line-height:1.5}
    .notification-card{padding:17px 15px;border-radius:14px}
    .notification-title{font-size:16px}
    .notification-message{font-size:13px;line-height:1.65}
    .notification-footer{align-items:flex-start;flex-direction:column;gap:10px}
    .notification-btn{width:100%;min-height:40px}
}
