/* =================================================================
   1. Animated Background & Typography
   ================================================================= */
body {
    margin: 0;
    padding: 40px 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #ffffff;
    background: linear-gradient(-45deg, #436458, #405d83, #278992, #4e4e4e);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    min-height: 100vh;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
pre, code {
    font-family: "Andale Mono", "Courier New", Courier, monospace;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    padding: 2px 5px;
}
pre { padding: 1em; overflow-x: auto; text-align: left; }

/* =================================================================
   2. Layout & Containers
   ================================================================= */
.site-header {
    text-align: center;
    margin-bottom: 40px;
}
.site-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.main-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(58, 58, 58, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(183, 181, 181, 0.18);
    padding: 2em 3em;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    text-align: left;
}
.main-content-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1em;
}

.post-list-container {
    /* CHANGED: Reduced max-width to make the list narrower */
    width: 70%;
    min-width: 300px;
    max-width: 700px;
    margin: 0 auto;
}
.post-entry-link {
    text-decoration: none;
    display: block;
    color: inherit;
}
.post-entry-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.post-entry-link:hover .post-entry-box {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: #ffffff;
}
.post-details { flex-grow: 1; }
.post-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
}
.post-meta {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}
.post-meta span:not(:last-child)::after { content: ", "; }
.post-type {
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    font-size: 0.9em;
}

/* =================================================================
   4. Footer and Search Styling (REVISED AND CORRECTED)
   ================================================================= */
.site-footer {
    text-align: center;
    padding: 40px 20px;
}

.site-info {
    margin-bottom: 40px; /* Space between info and search bar */
}
.site-description {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 15px auto; /* Center the description block */
    line-height: 1.6;
}
.site-contact a {
    color: #89faff;
    text-decoration: none;
}
.site-contact a:hover {
    text-decoration: underline;
}

.search-container {
    position: relative;
    width: 70%;
    min-width: 300px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
#search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: rgba(77, 77, 77, 0.3);
    color: #ffffff;
    font-size: 1em;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    transition: background-color 0.3s;
    
    /* FIXED: Forcefully removing all potential lines */
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none; /* For Safari */
}
#search-input:focus {
    background-color: rgba(54, 54, 54, 0.5);
    /* Add a subtle border ON FOCUS for a clean look */
    border: 1px solid rgba(75, 87, 96, 0.5);
    padding: 11px 19px; /* Adjust padding to account for new border */
    
    /* Ensure no outline appears on focus either */
    outline: none;
    box-shadow: none;
}
#search-input::placeholder { color: rgba(255, 255, 255, 0.6); }

#results-container {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 110%;
    left: 0;
    right: 0;
    background-color: rgba(80, 80, 88, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}
#results-container li {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}
#results-container li a {
    display: block;
    color: #c1eeff;
    text-decoration: none;
}

/* =================================================================
   5. Single Post Page Styling
   ================================================================= */

.post-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


/* We can reuse the .post-meta style we already have */
.post .post-meta {
    font-size: 1em; /* Make it a little bigger than on the card */
    color: rgba(255, 255, 255, 0.7);
}

.post-content {
    line-height: 1.5;
}

.post-content h2,
.post-content h3 {
    margin-top: 2em;
}