/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
    background-color: whitesmoke;
}

main {
    margin: 0 3rem;
}

.alert,
.error {
    color: red;
}

.notice {
    color: green;
}

/* Links */
a[aria-current],
.navbar a[aria-current] {
    text-decoration: underline;
}

/* Header */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.logo {
    align-items: center;
    padding: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: currentColor;
}

nav.navbar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

nav.navbar a {
    text-decoration: none;
    color: currentColor;
}

/* Footer */
footer {
    padding: 9rem 0 6rem;
}
footer::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background: black;
    margin-bottom: 1.5rem;
}
footer a {
    text-decoration: none;
    color: black;
}
footer li {
    list-style: none;
    margin-bottom: 0.5rem;
}
footer ul {
    padding: 0;
}

/* Body */
body {
    padding: 3rem;
    max-width: 70rem;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
}

/* Posts */
#blog-grid {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-grid-item {
    grid-column: span 1;
}

.post-card {
    max-width: 400px;
    outline: 2px black solid;

}

.post-card h2 {
    margin-top: 10px;
    margin-bottom: 0;
}

.post-card, .post-card .text {
    display: flex;
    flex-direction: column;
}

.post-card .text {
    flex-grow: 1;
    padding: 0 10px 0 10px;
}
.post-card a {
    text-decoration: none;
    color: initial;
}
.post-card p {
    margin-top: auto;
}

.post-card .image {
    object-fit: cover;
    width: 100%;
    margin-bottom: 5px;
}

.post-card:hover {
    box-shadow: 0 0 7px 3px black;
}
.post-card a:focus {
    text-decoration: underline;
}
.post-card:focus-within {
    box-shadow: 0 0 0 0.25rem;
}
.post-card:focus-within a:focus {
    text-decoration: none;
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

section.post {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

section.post img {
    /*border-radius: 8px;*/
    flex-basis: 50%;
    max-width: 100%;
}

section.settings {
    display: flex;
    gap: 1rem;
}

section.settings nav {
    width: 200px;
}

section.settings nav a {
    display: block;
}

.admin-post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 20px;
    background:grey;
}

.admin-post-body {
    display: flex;
    flex-direction: row;
    flex: 4;
}

.admin-post-settings {
    display: flex;
    flex-direction: column;
    flex: 1;
}


