/* ============================================================
   9MoreReps - Shared Site Styles
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: lightgrey;
    color: #1d252b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}


.site-logo {
    display: flex;
    align-items: center;
    width: 130px;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}


/* ============================================================
   LINKS
   ============================================================ */
   
a {
    color: steelblue;
    text-decoration: none;
    letter-spacing: 1.1px;
    font-size: 12pt;
    font-weight: bold;
    padding: 0px;
    margin-top: 10px;
}

a:hover {
    color: #0088FF;
    text-decoration: underline;
}


/* ============================================================
   HEADER / NAV
   ============================================================ */

header {
    background: black;
    border-bottom: 1px solid #34383d;
    padding: 16px 24px;

    display: flex;
    align-items: center;
}

header strong {
    color: #ffffff;
    font-size: 1.25rem;
}

header a {
    margin: 0 5px;
    color: #00A2E8;
}

header a:hover {
    color: #5CB3FF;
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */

main {
    width: min(1100px, calc(100% - 32px));
    margin: 30px auto 60px;
}

section {
    background: #ffffff;
    border: 1px solid #303439;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 20px;
}

main > hr {
    display: none;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3 {
    color: #1d252b;
    margin-top: 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

h2 {
    color: #c4cbd3;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;

    border-bottom: 3px solid steelblue;
    padding-left: 12px;
    margin-bottom: 25px;
}

h3 {
    font-size: 1rem;
}

p {
    margin-top: 8px;
    margin-bottom: 12px;
}

small {
    color: dimgrey;
}


/* ============================================================
   IMAGES
   ============================================================ */

img {
    max-width: 100%;
    border-radius: 6px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

button {
    border: 1px solid darkblue;
    border-radius: 5px;
    background: #e8f0f4;
    color: #1d252b;
    padding: 9px 15px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #6fa0b9;
}


/* ============================================================
   FORMS
   ============================================================ */

input,
textarea,
select {
    background: #eef1f3;
    color: dimgrey;
    border: 1px solid #3a3f44;
    border-radius: 5px;
    padding: 9px 10px;
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: blue;
}

textarea {
    width: 100%;
    max-width: 650px;
    resize: vertical;
}


/* ============================================================
   FEED
   ============================================================ */

.feed-delete-form {
    display: inline-block;
    margin: 0 10px 10px 0;
}

.feed-delete-btn {
    background: transparent;
    color: #c44;
    border: 1px solid #c44;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

.feed-delete-btn:hover {
    background: #c44;
    color: white;
}

.feed-post {
    background: #E7E7E7;
    border: 1px solid #303439;
    border-radius: 7px;
    padding: 16px;
    margin-bottom: 16px;
}

.feed-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-post-author img {
    border-radius: 50%;
}

.feed-post-author small {
    margin-left: auto;
}

.feed-post-body {
    font-size: 1rem;
    margin: 15px 0;
}

.feed-post-counts {
    color: black;
    font-size: 0.9rem;
}


/* ============================================================
   COMMENTS
   ============================================================ */

.feed-comments {
    margin: 14px 0;
    padding-left: 15px;
    border-left: 2px solid #34383d;
    color: black;
}

.feed-comment {
    background: white;
    border-radius: 5px;
    padding: 9px 12px;
    margin: 7px 0;
    color: black;
}

.feed-comment-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.feed-comment-form input[type="text"] {
    flex: 1;
}


/* ============================================================
   GENERAL ARTICLES
   ============================================================ */

article {
    margin-bottom: 16px;
}

article hr {
    border: 0;
    border-top: 1px solid #303439;
}


.feed-post-images {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.feed-post-images.one-image {
    grid-template-columns: 1fr;
}

.feed-post-images.two-images {
    grid-template-columns: repeat(2, 1fr);
}

.feed-post-images img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 7px;
}

.feed-post-images.two-images img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}


.notifications-nav {
    position: relative;
    display: inline-block;
}
.notifications-button {
    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 5px;

    color: #00A2E8;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    letter-spacing: 0.75px;
    line-height: inherit;

    cursor: pointer;
}

.notifications-button:hover {
    background: transparent;
    color: #5CB3FF;
    text-decoration: underline;
}

.notification-count {
    display: inline-block;
    min-width: 18px;
    padding: 2px 5px;
    margin-left: 3px;

    font-size: 11px;
    font-weight: bold;
    text-align: center;

    background: #0070D1;
    color: #fff;

    border-radius: 10px;
}

.notifications-dropdown {
    display: none;

    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 340px;
    max-height: 420px;
    overflow-y: auto;

    background: #fff;

    border: 1px solid #E7E7E7;
    border-radius: 6px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);

    z-index: 1000;
}

.notifications-dropdown.open {
    display: block;
}

.notification-item {
    display: block;

    padding: 12px 14px;

    color: #1d252b;
    text-decoration: none;

    border-bottom: 1px solid #E7E7E7;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #f5f7f8;
}

.notification-item.unread {
    background: #B9C0C4;
}

.notification-item.unread:hover {
    background: #e4f1fa;
}

.notification-item small {
    display: block;

    margin-top: 4px;

    color: #777;
    font-size: 12px;
}

.notification-empty {
    padding: 18px;

    color: #777;
    text-align: center;
}



/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    header {
        padding: 14px 16px;
        line-height: 2;
    }

    header strong {
        display: block;
        margin-bottom: 5px;
    }

    main {
        width: calc(100% - 20px);
        margin-top: 15px;
    }

    section {
        padding: 16px;
    }

    .feed-post-author {
        flex-wrap: wrap;
    }

    .feed-post-author small {
        width: 100%;
        margin-left: 60px;
    }

    .feed-comment-form {
        display: block;
    }

    .feed-comment-form input[type="text"] {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .feed-post-images.two-images {
        grid-template-columns: 1fr;
    }

    .feed-post-images.two-images img {
        aspect-ratio: auto;
    }
}