/* ==========================================================================
   Gandurian Theme - Dracula Palette
   Based on ghost-aside theme
   ========================================================================== */

/* Dracula Color Variables */
:root {
  --background: #282a36;
  --current-line: #44475a;
  --foreground: #f8f8f2;
  --comment: #6272a4;
  --cyan: #8be9fd;
  --green: #50fa7b;
  --orange: #ffb86c;
  --pink: #ff79c6;
  --purple: #bd93f9;
  --red: #ff5555;
  --yellow: #f1fa8c;
}

@import url(normalize.css);

/* MonoLisa Font */
@font-face {
    font-family: 'MonoLisa';
    src: url('../fonts/MonoLisa-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MonoLisa';
    src: url('../fonts/MonoLisa-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   1. Icons
   ========================================================================== */

@font-face {
    font-family: 'icons';
    src:url('../fonts/icons.eot');
    src:url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
        url('../fonts/icons.woff') format('woff'),
        url('../fonts/icons.ttf') format('truetype'),
        url('../fonts/icons.svg#icons') format('svg');
    font-weight: normal;
    font-style: normal;
}

.icon-ghost, .icon-feed, .icon-twitter, .icon-google-plus, .icon-facebook {
    font-family: 'icons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
}

.icon-ghost:before { content: "\e000"; }
.icon-feed:before { content: "\e001"; }
.icon-twitter:before { content: "\e002"; font-size: 1.1em; }
.icon-google-plus:before { content: "\e003"; }
.icon-facebook:before { content: "\e004"; }

/* ==========================================================================
   2. General
   ========================================================================== */

html {
    height: 100%;
    max-height: 100%;
    font-size: 62.5%;
}

body {
    height: 100%;
    max-height: 100%;
    font-family: 'MonoLisa', ui-monospace, monospace;
    font-size: 1.6rem;
    line-height: 1.8em;
    color: var(--foreground);
    background-color: var(--background);
}

::-moz-selection {
    color: var(--background);
    background: var(--cyan);
    text-shadow: none;
}

::selection {
    color: var(--background);
    background: var(--cyan);
    text-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    line-height: 1.2;
    margin-top: 0;
    font-family: 'MonoLisa', ui-monospace, monospace;
    font-weight: 700;
    color: var(--foreground);
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.5rem;
}

h5 {
    font-size: 2rem;
}

h6 {
    font-size: 1.8rem;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--purple);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: var(--foreground);
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: var(--cyan);
}

p, ul, ol {
    margin: 1.5em 0;
}

ol ol, ul ul, ul ol, ol ul {
    margin: 0.4em 0;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--current-line);
    margin: 3em 0;
    padding: 0;
}

blockquote {
    box-sizing: border-box;
    margin: 1.5em 0 1.5em 0;
    padding: 0 0 0 1.5em;
    border-left: 4px solid var(--purple);
}

blockquote p {
    margin: 0.8em 0;
    font-style: italic;
    color: var(--comment);
}

blockquote small {
    display: inline-block;
    margin: 0.8em 0 0.8em 1.5em;
    font-size: 0.9em;
    color: var(--comment);
}

blockquote small:before { content: '\2014 \00A0'; }

blockquote cite { font-weight: bold; }
blockquote cite a { font-weight: normal; }
blockquote code { font-style: normal; }

code, tt {
    padding: 2px 6px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.85em;
    background: var(--current-line);
    border-radius: 4px;
    color: var(--green);
}

pre {
    box-sizing: border-box;
    margin: 1.5em 0;
    width: 100%;
    padding: 15px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
    overflow-x: auto;
    background: var(--current-line);
    border-radius: 6px;
    color: var(--foreground);
}

pre code, pre tt {
    font-size: inherit;
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

kbd {
    display: inline-block;
    margin-bottom: 0.4em;
    padding: 2px 8px;
    border: 1px solid var(--comment);
    color: var(--foreground);
    font-size: 0.9em;
    font-weight: bold;
    background: var(--current-line);
    border-radius: 4px;
}

table {
    box-sizing: border-box;
    margin: 1.5em 0;
    width: 100%;
    max-width: 100%;
    background-color: transparent;
}

table th, table td {
    padding: 10px;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--current-line);
}

table th {
    color: var(--cyan);
    font-weight: 600;
}

table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background-color: rgba(68, 71, 90, 0.3);
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */

.hidden {
    text-indent: -9999px;
    visibility: hidden;
    display: none;
}

.inner {
    position: relative;
    width: 85%;
    max-width: 750px;
    margin: 0 auto;
}

.vertical {
    display: table-cell;
    vertical-align: middle;
}

/* ==========================================================================
   4. Sidebar
   ========================================================================== */

#site-head {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 100%;
    padding: 60px 30px 30px;
    box-sizing: border-box;
    text-align: center;
    color: var(--foreground);
    background: var(--background);
    border-right: 1px solid var(--current-line);
    top: 0;
    left: 0;
    z-index: 100;
}

/* Navigation list style */
.blog-nav {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.blog-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-nav li {
    list-style: none;
}

main.content {
    padding-left: 280px;
    min-height: 100vh;
}

/* Logo */
#blog-logo img {
    display: block;
    max-height: 120px;
    width: auto;
    margin: 0 auto 20px;
    border-radius: 50%;
}

#back {
    color: var(--comment);
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 6px;
    font-size: 16px;
}

/* Blog Title & Description */
.blog-title {
    margin: 15px 0;
    font-size: 2.4rem;
    letter-spacing: -0.5px;
    color: var(--cyan);
}

.blog-description {
    margin: 0 0 20px;
    font-size: 1.4rem;
    line-height: 1.5em;
    font-weight: 300;
    color: var(--comment);
}

/* Navigation */
.blog-nav-item {
    margin: 8px 0;
}

.header-link {
    color: var(--foreground);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 8px 16px;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-link:hover {
    color: var(--cyan);
    background: var(--current-line);
}

/* Secondary Navigation - Sidebar */
.blog-nav-secondary {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--current-line);
}

.blog-nav-secondary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-nav-secondary li {
    margin: 5px 0;
}

.blog-nav-secondary a {
    color: var(--comment);
    font-size: 1.3rem;
    transition: color 0.2s ease;
}

.blog-nav-secondary a:hover {
    color: var(--cyan);
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav li {
    display: inline;
}

.footer-nav a {
    color: var(--comment);
    font-size: 1.3rem;
}

.footer-nav a:hover {
    color: var(--cyan);
}

/* Recent Posts on Home */
.recent-posts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--current-line);
}

.recent-posts h3 {
    color: var(--cyan);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.recent-posts p {
    margin: 8px 0;
}

.recent-posts a {
    color: var(--purple);
}

.recent-posts a:hover {
    color: var(--cyan);
}

/* Announcement Bar */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    padding: 12px 20px;
    text-align: center;
    font-size: 1.4rem;
    z-index: 999;
}

.announcement-bar a {
    color: inherit;
    text-decoration: none;
}

.announcement-bar a:hover {
    text-decoration: underline;
}

.announcement-bar-accent {
    background: var(--purple);
    color: var(--background);
}

.announcement-bar-dark {
    background: var(--current-line);
    color: var(--foreground);
}

.announcement-bar-light {
    background: var(--foreground);
    color: var(--background);
}

@media only screen and (max-width: 900px) {
    .announcement-bar {
        position: relative;
        left: 0;
    }
}

/* ==========================================================================
   5. Posts
   ========================================================================== */

.post {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 4rem auto;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--current-line);
    word-break: break-word;
}

.post:after {
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    border: 1px solid var(--current-line);
    position: absolute;
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
    background: var(--background);
    border-radius: 50%;
}

.post-thumbnail {
    float: left;
    height: 120px;
    margin-top: 1.25rem;
    width: 25%;
    text-align: center;
}

.post-thumbnail:before {
    content: ' ';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

.post-thumbnail img {
    display: inline-block;
    vertical-align: middle;
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

.post-title {
    margin: 0;
    color: var(--foreground);
}

.post-title a {
    text-decoration: none;
    color: var(--foreground);
}

.post-title a:hover {
    color: var(--cyan);
}

.post-excerpt p {
    margin: 1rem 0 0 0;
    font-size: 0.95em;
    line-height: 1.7em;
    color: var(--foreground);
}

.post-meta {
    display: inline-block;
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: var(--comment);
}

.post-meta a {
    color: var(--comment);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--cyan);
}

/* Tags */
.post-card-tags, .gh-article-tag {
    color: var(--purple);
    font-size: 1.3rem;
}

/* ==========================================================================
   6. Single Post
   ========================================================================== */

.post-template .post {
    border-bottom: none;
    padding-bottom: 0;
}

.post-template .post:after {
    display: none;
}

.post-template .post-header {
    padding: 50px 0;
}

.post-content img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 6px;
}

.post-footer {
    position: relative;
    margin: 4rem 0 0 0;
    padding: 4rem 0 0 0;
    border-top: 1px solid var(--current-line);
}

.post-footer h4 {
    font-size: 1.8rem;
    margin: 0;
}

.post-footer p {
    margin: 1rem 0;
    font-size: 1.4rem;
    line-height: 1.6em;
    color: var(--comment);
}

.post-footer .author {
    margin-right: 180px;
}

.post-footer .author img {
    border: 2px solid var(--current-line);
    border-radius: 50%;
    float: left;
    height: 70px;
    margin-right: 15px;
    width: 70px;
}

.post-footer .share {
    position: absolute;
    top: 4rem;
    right: 0;
    width: 155px;
}

.post-footer .share a {
    font-size: 1.8rem;
    display: inline-block;
    margin: 1.4rem 1.6rem 1.6rem 0;
    color: var(--comment);
}

.post-footer .share a:hover {
    color: var(--cyan);
}

.footnotes {
    background-color: var(--current-line);
    font-size: 1.6rem;
    padding: 15px;
    border-radius: 6px;
    margin-top: 2rem;
}

.footnotes::before {
    content: "Dipnotlar";
    font-weight: bold;
    color: var(--purple);
    display: block;
    margin-bottom: 10px;
}

/* ==========================================================================
   7. Pagination
   ========================================================================== */

.pagination {
    position: relative;
    width: 85%;
    max-width: 750px;
    margin: 4rem auto;
    font-size: 1.4rem;
    color: var(--comment);
    text-align: center;
}

.pagination a {
    color: var(--comment);
}

.pagination a:hover {
    color: var(--cyan);
}

.older-posts, .newer-posts {
    position: absolute;
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--current-line);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.2s ease;
}

.older-posts:hover, .newer-posts:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.older-posts {
    right: 0;
}

.newer-posts {
    left: 0;
}

.page-number {
    display: inline-block;
    padding: 2px 0;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
    position: relative;
    margin: 6rem 0 0 0;
    padding: 3rem 0;
    border-top: 1px solid var(--current-line);
    font-size: 1.3rem;
    line-height: 1.7em;
    color: var(--comment);
    text-align: center;
    background: var(--background);
}

.site-footer a {
    color: var(--comment);
}

.site-footer a:hover {
    color: var(--cyan);
}

.poweredby .icon-ghost {
    font-weight: 700;
    text-decoration: none;
}

/* Hide subscribe elements */
.subscribe, .gh-subscribe, [data-portal] {
    display: none !important;
}

/* ==========================================================================
   9. Media Queries - Tablet (< 900px)
   ========================================================================== */

@media only screen and (max-width: 900px) {

    blockquote {
        margin-left: 0;
    }

    #site-head {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid var(--current-line);
    }

    main.content {
        padding-left: 0;
    }

    .blog-title {
        font-size: 2.8rem;
    }

    .blog-description {
        font-size: 1.5rem;
    }

    .post {
        font-size: 0.95em;
    }

    .post-template .post-header {
        padding: 30px 0;
    }

    h1 { font-size: 3.5rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2.5rem; }
    h4 { font-size: 2rem; }
}

/* ==========================================================================
   10. Media Queries - Mobile (< 500px)
   ========================================================================== */

@media only screen and (max-width: 500px) {

    #blog-logo img {
        max-height: 80px;
    }

    .inner, .pagination {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
    }

    .post {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
        font-size: 0.9em;
    }

    #site-head {
        padding: 30px 15px;
    }

    .blog-title {
        font-size: 2.2rem;
    }

    .blog-description {
        font-size: 1.4rem;
    }

    h1, h2 {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }

    h3 { font-size: 2.2rem; }
    h4 { font-size: 1.8rem; }

    .post-template .post-header {
        padding: 20px 0;
    }

    .post-meta {
        font-size: 1.2rem;
    }

    .post-footer {
        padding: 3rem 0;
        text-align: center;
    }

    .post-footer .author {
        margin: 0 0 2rem 0;
        padding: 0 0 1.5rem 0;
        border-bottom: 1px dashed var(--current-line);
    }

    .post-footer .share {
        position: static;
        width: auto;
    }

    .post-footer .share a {
        margin: 1rem 0.8rem 0 0.8rem;
    }

    .older-posts, .newer-posts {
        position: static;
        margin: 10px 0;
    }

    .page-number {
        display: block;
    }

    .site-footer {
        margin-top: 4rem;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Ghost v5 Specific Styles
   ========================================================================== */

/* Cards */
.kg-card {
    margin: 1.5em 0;
}

.kg-image-card img {
    border-radius: 6px;
}

.kg-bookmark-card {
    background: var(--current-line);
    border-radius: 6px;
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: var(--foreground);
}

.kg-bookmark-content {
    padding: 20px;
    flex-grow: 1;
}

.kg-bookmark-title {
    font-weight: 600;
    color: var(--foreground);
}

.kg-bookmark-description {
    color: var(--comment);
    font-size: 0.9em;
    margin-top: 8px;
}

.kg-bookmark-metadata {
    margin-top: 12px;
    color: var(--comment);
    font-size: 0.85em;
}

.kg-bookmark-thumbnail {
    width: 200px;
    min-height: 160px;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery */
.kg-gallery-card {
    margin: 1.5em 0;
}

.kg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kg-gallery-image img {
    border-radius: 6px;
}

/* Callout */
.kg-callout-card {
    background: var(--current-line);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.kg-callout-emoji {
    font-size: 1.5em;
}

.kg-callout-text {
    color: var(--foreground);
}

/* Button */
.kg-button-card {
    text-align: center;
    margin: 2em 0;
}

.kg-button-card a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--purple);
    color: var(--background);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kg-button-card a:hover {
    background: var(--cyan);
    color: var(--background);
}

/* Toggle (Accordion) */
.kg-toggle-card {
    background: var(--current-line);
    border-radius: 6px;
    margin: 1.5em 0;
}

.kg-toggle-heading {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kg-toggle-heading-text {
    font-weight: 600;
}

.kg-toggle-content {
    padding: 0 20px 15px;
    color: var(--comment);
}

/* File */
.kg-file-card {
    background: var(--current-line);
    border-radius: 6px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.kg-file-card-title {
    font-weight: 600;
}

.kg-file-card-caption {
    color: var(--comment);
    font-size: 0.9em;
}

/* Audio */
.kg-audio-card {
    background: var(--current-line);
    border-radius: 6px;
    padding: 20px;
}

/* Video */
.kg-video-card video {
    border-radius: 6px;
    width: 100%;
}

/* Width Classes (Ghost v5 required) */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: calc(50% - 42.5vw);
    margin-right: calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
}

@media only screen and (max-width: 900px) {
    .kg-width-wide,
    .kg-width-full {
        width: 100%;
        min-width: 100%;
        margin-left: 0;
        margin-right: 0;
        left: auto;
        right: auto;
    }
}

/* AI Disclaimer */
.ai-disclaimer {
    color: var(--comment);
    font-size: 1.1rem;
    margin-top: 10px;
}
