/* ============================================================
   Dark Room Public View — Posts List Styles
   ============================================================ */

#view-posts {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 550px;
    padding: 1rem;
    z-index: 1;
}

#view-posts::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image: url('../../../assets/images/list_watercolor_letter.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: blur(4px);
    opacity: 0.35;
    pointer-events: none;
}

.posts-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
    width: 100%;
    position: relative;
}

.posts-header::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(74, 140, 120, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(8px);
}

.posts-header h2 {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.posts-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin-top: 6px;
    border-radius: 50%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.post-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid rgba(45, 90, 76, 0.2);
    padding: 1.75rem 1.5rem;
    border-radius: 20px 16px 18px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.post-card-watermark {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 5.5rem;
    color: var(--primary);
    opacity: 0.04;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.4s ease;
}

.post-card:hover .post-card-watermark {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.07;
}

.post-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    border-color: rgba(45, 90, 76, 0.15);
    border-left: 4px solid var(--primary);
    box-shadow: 0 12px 30px rgba(45, 90, 76, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.post-title {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: normal;
}

@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
}
