:root {
    --blog-bg-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --text-color: #343a40;
    --heading-color: #212529;
    --primary-color: #0056b3;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--blog-bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
}

.blog-header {
    background-color: var(--card-bg-color);
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin: 0;
}

.blog-header p {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    color: #6c757d;
}

#posts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem; /* Increased gap between full posts */
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-entry { /* Renamed from post-card for clarity */
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    width: 100%;
    position: relative; /* Needed for positioning watermark */
}

/* Watermark styles */
.watermark-overlay {
    position: relative; /* Needed to make overlay relative to this */
    width: 100%;
    height: 250px; /* Same height as thumbnail */
    overflow: hidden; /* Hide any overflow from rotated text/lines */
}

.watermark-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove extra space below image */
}

.watermark-overlay::before,
.watermark-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%; /* Make sure lines cover the whole image when rotated */
    height: 2px; /* Thickness of the lines */
    background-color: rgba(255, 255, 255, 0.2); /* White, semi-transparent lines */
    transform-origin: center;
    z-index: 10;
}

.watermark-overlay::before {
    transform: translate(-50%, -50%) rotate(45deg); /* First diagonal */
}

.watermark-overlay::after {
    transform: translate(-50%, -50%) rotate(-45deg); /* Second diagonal */
}

.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg); /* Slightly rotated text */
    font-size: 2.5rem; /* Larger text */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35); /* White, semi-transparent text */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Slight shadow for readability */
    user-select: none; /* Prevent text selection */
    pointer-events: none; /* Allow clicks to pass through to the image */
    z-index: 11; /* Above the lines */
    white-space: nowrap; /* Keep text on one line */
}


.post-content {
    padding: 1.5rem 2rem 2rem; /* Added more bottom padding */
}

.post-content h2 {
    font-size: 1.6rem; /* Slightly larger title */
    color: var(--heading-color);
    margin: 0 0 0.5rem;
}

.post-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.post-description {
    font-size: 1rem;
    color: #495057;
}

/* Styles for the full post content area */
.full-post-body {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.full-post-body h2, .full-post-body h3 {
    color: var(--heading-color);
}

.full-post-body p, .full-post-body li {
    font-size: 1.1rem;
}

.full-post-body ul {
    padding-left: 20px;
}

/* Share Button */
.share-button-container {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color); /* Dotted line separator */
}

.share-link-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.share-link-button:hover {
    background-color: #004085;
}

.share-link-button:active {
    background-color: #002752;
}


/* Utility class (no longer used by JS, but good to have) */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    #posts-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    .post-content {
        padding: 1.5rem;
    }
    .watermark-text {
        font-size: 2rem; /* Smaller text on mobile */
    }
}
/* === CSS TO CENTER ALL FOOTER CONTENT === */

/* This sets up the footer container for centering */
footer {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;   /* Center items horizontally */
    gap: 1rem;             /* Add space between the text and the button */
    padding: 2rem 1rem;
    text-align: center;
}

/* This new rule targets the button directly to override its
  inline style 'margin-left: auto' and ensure it gets centered.
*/
footer #open-feedback-modal {
    margin-left: 0 !important;
}
