/* style.css for Econ News - common formatting */

/* Overall page styling */
body {
    margin: 0 20px;
    padding: 0;
    font-family: "Times New Roman", Times, serif;
    background-color: #fff;
    color: #000;
    line-height: 1.2;
    font-size: 14px;
}

/* Header styling */
header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    border-bottom: 1px solid #000;
}

.header-icon {
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 5px;
}

.header-text {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    align-items: flex-start;
    text-align: left;
    padding-left: 0;
}

h1 {
    font-size: 2.7em;
    margin: 0;
    line-height: 1;
}

.subtitle {
    margin: 0;
    font-size: 1.4em;
    color: #666;
    font-style: italic;
    margin-top: 4px;
    margin-left: 10px;
    text-align: left;
    padding-left: 0;
    width: 100%;
    display: block;
}

/* Navigation - push nav to the right */
nav {
    margin-left: auto;
    margin-top: 10px;
}

nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1.2em;
}

nav a:hover {
    text-decoration: underline;
}

/* Main content container */
main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Article (blog post) styling */
article.post {
    margin-bottom: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
}

.post-title {
    font-size: 1em;
    margin: 0;
    padding: 0;
}

.post-title a {
    text-decoration: none;
    color: #000;
}

.post-title a:hover {
    text-decoration: underline;
}

/* Meta information (author and date) */
.post-meta {
    font-size: 1em;
    margin-top: 2px;
    margin-bottom: 0;
    color: #555;
}

/* Pagination styling */
#pagination {
    text-align: left;
    margin-top: 10px;
}

header {
    display: flex;
    align-items: baseline;
}

#pagination a, 
#pagination button {
    padding: 5px 10px;
    font-size: 1em;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #000;
    font-family: "Times New Roman", Times, serif;
    cursor: pointer;
    text-decoration: none;
    margin-right: 5px;
}

#pagination a:hover, 
#pagination button:hover {
    background-color: #f2f2f2;
}

#pagination button:disabled {
    opacity: 0.5;
    cursor: default;
}

#pagination span {
    font-size: 1em;
    font-family: "Times New Roman", Times, serif;
    color: #555;
}
.post {
    display: flex;
    gap: 15px;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
}
.post-content {
    flex: 1;
    padding: 0;
}
.post-image {
    flex: 0 0 150px;
    height: 100px;
    margin-top: 3px;
}
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}
h2 a {
    color: #000;
    text-decoration: none;
}
h2 a:hover {
    text-decoration: underline;
}
.post-meta {
    margin: 2px 0 0 0;
    color: #666;
    font-size: 17px;
}
.post-number {
    color: #666;
    margin-right: 5px;
    font-size: 20px;
}
.nav-link.submit {
    font-size: 18px;
    padding: 8px 16px;
}

/* Button styling for navigation links */
nav a.nav-link {
    display: inline-block;
    background-color: #f2f2f2;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
    transition: background-color 0.3s;
    border: 1px solid #ccc;
}

nav a.nav-link:hover {
    background-color: #e0e0e0;
    text-decoration: none;
    color: #000;
}

/* Make the submit button stand out but still match theme */
nav a.nav-link[href*="submit"] {
    background-color: #f8f8f8;
    border: 1px solid #999;
    font-size: 16px;
}

nav a.nav-link[href*="submit"]:hover {
    background-color: #e8e8e8;
}

/* Pagination buttons */
#pagination a {
    display: inline-block;
    background-color: #f2f2f2;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin: 0 5px;
    transition: background-color 0.3s;
    border: 1px solid #ccc;
}

#pagination a:hover {
    background-color: #e0e0e0;
    text-decoration: none;
    color: #000;
}

/* Add this to the end of your style.css file */
.user-id-display {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    color: #999;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 3px;
    z-index: 1000;
}

/* Update the post summary styling with italic text */
.post-summary {
    margin-top: 5px;
    margin-bottom: 0;
    padding-bottom: 0;
    color: #333;
    font-size: 1.2em;
    line-height: 1.4;
    font-style: italic;
    max-width: 95%;
}
