/* ===================================
   Random Post Notification Pro - Lite CSS
   Version: 1.0.1 (No Tailwind)
   =================================== */

/* Base container */
#rpn-notification-root {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 360px;
}

/* Position classes */
#rpn-notification-root.rpn-pos-bottom-right { bottom: 20px; right: 20px; }
#rpn-notification-root.rpn-pos-bottom-left { bottom: 20px; left: 20px; }
#rpn-notification-root.rpn-pos-top-right { top: 20px; right: 20px; }
#rpn-notification-root.rpn-pos-top-left { top: 20px; left: 20px; }

/* Notification card */
.rpn-notify {
    pointer-events: auto;
    transition: opacity 0.31s ease, transform 0.31s ease;
    box-sizing: border-box;
}

/* ============ STYLE 1: Modern Toast ============ */
#rpn-notification-root.style1 .rpn-notify {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

#rpn-notification-root.style1 .rpn-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

#rpn-notification-root.style1 .rpn-body {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

#rpn-notification-root.style1 .rpn-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

#rpn-notification-root.style1 .rpn-excerpt {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

#rpn-notification-root.style1 .rpn-cta {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

#rpn-notification-root.style1 .rpn-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

#rpn-notification-root.style1 .rpn-link:hover .rpn-title {
    color: #0066cc;
}

/* ============ STYLE 2: Card với ảnh lớn ============ */
#rpn-notification-root.style2 .rpn-notify {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    padding: 14px;
    display: flex;
    gap: 12px;
    position: relative;
}

#rpn-notification-root.style2 .rpn-card-thumb {
    flex-shrink: 0;
}

#rpn-notification-root.style2 .rpn-card-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

#rpn-notification-root.style2 .rpn-card-body {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

#rpn-notification-root.style2 .rpn-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

#rpn-notification-root.style2 .rpn-excerpt {
    font-size: 13px;
    color: #555;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

#rpn-notification-root.style2 .rpn-cta {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

#rpn-notification-root.style2 .rpn-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

#rpn-notification-root.style2 .rpn-link:hover .rpn-title {
    color: #0066cc;
}



/* ============ STYLE 3: Minimal ============ */
#rpn-notification-root.style3 .rpn-notify {
    background: rgba(255,255,255,0.95);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

#rpn-notification-root.style3 .rpn-link {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

#rpn-notification-root.style3 .rpn-link:hover {
    color: #0066cc;
}

#rpn-notification-root.style3 .rpn-cta {
    font-size: 12px;
    color: #888;
    margin: 0;
    white-space: nowrap;
}

.rpn-close {
        position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    background: #ff1900;
    border: none;
    font-size: 11px;
    line-height: 12px;
    color: #ffffff;
    padding: 0;
    width: 26px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    font-weight: bold;
}


.rpn-close:hover {
    color: #333;
    background-color: #f0f0f0;
}
/* Responsive */
@media (max-width: 700px) {
    #rpn-notification-root {
        left: 6% !important;
        right: 6% !important;
        bottom: 18px !important;
        top: auto !important;
        max-width: 88%;
    }
    
    #rpn-notification-root.style1 .rpn-thumb img,
    #rpn-notification-root.style2 .rpn-card-thumb img {
        width: 56px;
        height: 56px;
    }
}
