/*
Theme Name: Aham
Author: aham.ro
Author URI: http://notes.aham.ro
Description: WordPress theme of notes.aham.ro
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
    --main-color: #1F79B8;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --main-color: #11232f;
        font-family: 'Inter', sans-serif;
        font-size: 19px;
    }
}

* {
    box-sizing: border-box;
}

.flex {
    flex: 1;
}

a {
    cursor: pointer;
    color: #6c177b;
    font-size: inherit;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: underline;
    text-decoration-thickness: max(1px, .0625rem);
    text-underline-offset: .1578em;
}

a:visited {
    color: #9540a4;
}

a:hover {
    color: #4e0c5a;
    text-decoration-thickness: max(3px, .1875rem, .12em);
    -webkit-text-decoration-skip-ink: none;
    text-decoration-skip-ink: none;
    -webkit-text-decoration-skip: none;
    text-decoration-skip: none;
}

@media (prefers-color-scheme: dark) {
    a {
        color: #FFF;
    }

    a:visited {
        color: #ececec;
    }

    a:hover {
        color: #d2d2d2;
    }
}

body {
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

body header {
    border-top: 10px solid var(--main-color);
    background: #F0F0F0;
    height: 90px;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #173b55;
        color: #FFF;
    }
    body header {
        border-top: 10px solid var(--main-color);
        background: #234d6b;
        height: 90px;
    }
}

.wrapper {
    margin: 0 20px;
}

.footer .wrapper {
    margin: 0px;
}

header > .wrapper {
    display: flex;
    align-items: center;
    height: 80px;
}

.reading-container {
    margin-top: 30px;
    font-size: 22px;
}

@media only screen and (min-width : 1200px) { 

    .wrapper {
        width: 1024px;
        margin: 0 auto;
    }

    .reading-container {
        width: 800px;
        margin: 0 auto;
        margin-top: 100px;
        margin-bottom: 100px;
    }

    .footer .wrapper {
        margin: 0px auto;
    }
}

.posts article {
    margin-bottom: 70px;
}

.posts article h3 {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 500;
}

header nav {
    list-style-type: none;
    display: flex;
    gap: 10px;
}

@media (prefers-color-scheme: dark) {
    header nav a {
        color: #FFF!important;
    }
}

.footer {
    background-color: #F0F0F0;
    border-top: 7px solid var(--main-color);
}

@media (prefers-color-scheme: dark) {
    .footer {
        background-color: #234d6b;
        a {
            color: #FFF
        }
    }
}

.footer > div {
    flex-direction: column;
}

.menus {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.menus section main {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    text-align: center;
}

.menu {
    display: flex;
    flex-direction: column;
    padding: 20px;
    line-height: 28px;
}

.menus section:first-child {
    flex: 1;
}

.menus section:first-child main {
    flex: 1;
    display: flex;
}

.menus section:last-child main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.menus section h4 {
    border-bottom: 1px solid #BBBBBB;
    font-weight: 700;
    padding: 20px;
}

@media (prefers-color-scheme: dark) {
    .menus section h4 {
        border-bottom: 1px solid var(--main-color);
    }
}

.socials {
    border-top: 1px solid #BBBBBB;
    border-bottom: 1px solid #BBBBBB;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
}

@media (prefers-color-scheme: dark) {
    .socials {
        border-bottom: 1px solid var(--main-color);
        border-top: 1px solid var(--main-color);
    }
    .socials svg path {
        fill:#FFF;
    }
}

.socials a {
    margin-right: 10px;
}

.bottom {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.bottomMenu {
    display: flex;
}

.bottomMenu em {
    font-style: normal;
}

.bottomMenu i {
    display: none;
    font-style: normal;
    margin: 0 20px;
}

.bottomMenu nav {
    display: none;
    gap: 15px;
}

.right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.version {
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
    margin-top:-3px;
}

.version a {
    color: #888888;
    font-size: 14px;
}

@media only screen and (min-width : 1200px) {
    
    .menus {
        flex-direction: row;
    }


    .menus {
        flex-direction: row;
    }

    .menus section main {
        flex-direction: row;
        text-align: left;
    }


    .menus section:first-child {
        margin-right: 50px;
    }

    .menus section:first-child main {
        margin-right: 50px;
    }

    .menus section:last-child {
        width: 330px;
    }

    .menus section:last-child main {
        margin-bottom: 30px;
    }

    .hideOnDesktop {
        display: none;
    }

    .bottomMenu nav {
        display: flex;
    }

    .bottomMenu i {
        display: block;
    }

    .socials {
        justify-content: flex-start;
    }
}

.post-title {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 30px;
}

.post-image {
    position: relative;
    width: 100%;               /* Set width to 100% or a fixed width */
    padding-top: 56.25%;    
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #ddd;
}

@media (prefers-color-scheme: dark) {
    .post-navigation {
        border-top: 1px solid var(--main-color);
    }
}

.post-navigation div:first-child {
    flex: 1;
    margin-right: 10px;
}

.post-navigation div:last-child {
    flex: 1;
    text-align: right;
    margin-left: 10px;
}

.recent-posts-container {
    margin-top: 30px;
    margin-bottom: 70px;
}

.recent-posts-title {
    text-transform: uppercase;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    padding: 20px 0;
    display: flex;
    border-top: 1px solid #ddd;
}

@media (prefers-color-scheme: dark) {
    .recent-posts li {
        border-top: 1px solid var(--main-color);
    }
}

.recent-posts li:last-child {
    border-bottom: 1px solid #ddd;
}

@media (prefers-color-scheme: dark) {
    .recent-posts li:last-child {
        border-bottom: 1px solid var(--main-color);
    }
}

.recent-posts li a {
    flex: 1;
}

@media (prefers-color-scheme: dark) {
    .recent-posts li a {
        color: #FFF;
    }
}

.pagination {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
    position: relative;
}

.pagination .current {
    font-weight: bold;
}

.pagination .prev {
    position: absolute;
    left: 0;
}

.pagination .next {
    position: absolute;
    right: 0;
}

pre {
    background-color: #f5f5f5; /* Light grey background */
    border: 1px solid #ccc; /* Light grey border */
    padding: 10px; /* Some padding around the text */
    overflow-x: auto; /* Adds a horizontal scrollbar if needed */
    border-radius: 6px;
    font-size: 19px;
}

pre code {
    font-family: 'Courier New', Courier, monospace; /* Monospace font for code */
    color: #d63384; /* Stylish magenta text color */
}

/* === Comments Section === */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
}

.comment .comment-meta {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #666;
}

.comment .comment-author {
  font-weight: 600;
  color: #222;
  margin-right: 0.5rem;
}

.comment .comment-metadata a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
}

.comment .comment-metadata a:hover {
  text-decoration: underline;
}

/* Comment text */
.comment-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Reply link */
.comment-reply-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Nested comments */
.comment .children {
  list-style: none;
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid #e0e0e0;
}

/* Comment form */
.comment-respond {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.comment-reply-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
}

@media (prefers-color-scheme: dark) {
    .comment-form label {
        color: #FFF;
    }
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
  outline: none;
}

.comment-form .form-submit input[type="submit"] {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
  background: #005f8a;
}
