/* General Styles */
.wcnp-container {
    padding: 30px 15px; /* Added horizontal padding for responsiveness */
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.wcnp-empty, .wcnp-login-msg {
    text-align: center;
    padding: 50px 20px;
    color: #777;
    font-size: 1.1rem;
    grid-column: 1 / -1; /* Span across all columns */
}

/* Grid Layout */
.wcnp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Glass Card */
.wcnp-card {
    background: var(--wcnp-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content to start, footer to end */
}

.wcnp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

/* Unread Badge */
.wcnp-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--wcnp-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--wcnp-primary);
    transition: opacity 0.3s ease;
}

.wcnp-card.read .wcnp-badge { opacity: 0; }

/* Card Header Info */
.wcnp-card-header {
    margin-bottom: 12px;
    padding-right: 25px; /* Space for badge */
}

.wcnp-order-info {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.wcnp-author {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    display: block; /* Ensure it's on its own line if needed */
}

.wcnp-date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    display: block;
}

.wcnp-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin: 10px 0 0 0; /* Add some top margin */
}

/* Modal Overlay */
.wcnp-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content */
.wcnp-modal-content {
    background: #fff; /* Base white for content */
    width: 100%;
    max-width: 550px;
    padding: 50px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    animation: wcnp-slideUp 0.4s ease forwards;
    overflow-y: auto; /* Scroll if content is too long */
    max-height: 85vh; /* Limit height */
}

@keyframes wcnp-slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.wcnp-close {
    position: absolute;
    top: 25px; right: 25px;
    width: 36px; height: 36px;
    background: #f5f5f7;
    border: none; border-radius: 50%;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    color: #555;
}

.wcnp-close:hover { background: #eaeaec; }

/* Modal Body Text */
#wcnp-modal-meta, #wcnp-modal-order-details {
    color: var(--wcnp-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
}

#wcnp-modal-author {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

#wcnp-modal-order-details span {
    font-size: 0.85rem;
    color: #666;
    margin-right: 15px;
    display: inline-block; /* For spacing */
    margin-bottom: 5px;
}
#wcnp-modal-order-details span strong {
    color: #222;
}


#wcnp-modal-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wcnp-grid { grid-template-columns: 1fr; }
    .wcnp-modal-content { padding: 30px; max-height: 80vh; }
    .wcnp-card { padding: 20px; }
    .wcnp-card-header { padding-right: 15px; }
    .wcnp-badge { top: 15px; right: 15px; }
}