/* 1. Global Reset & Page Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    padding: 20px;
}

/* 2. Header Section Styling */
header {
    max-width: 700px;
    margin: 40px auto 20px auto;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* 3. Main Content Container */
main {
    max-width: 700px;
    margin: 0 auto;
}

#contentDisplay {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* 4. Individual Post Card Design */
.post-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.post-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card p {
    color: #475569;
    font-size: 1rem;
    white-space: pre-wrap;
}

.post-card hr {
    display: none;
}

/* 5. Loading and Empty Message Text states */
#contentDisplay p {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    margin-top: 20px;
}
/* Custom image sizing for user uploaded media cards */
.post-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover; /* Crops image cleanly to preserve aspects */
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}
