/* ==========================================================================
   2000'LER RETRO-MODERN KİŞİSEL BLOG TEMASI
   Saf CSS, sıfır animasyon, anında yükleme, yüksek okunabilirlik.
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #edebe4;
    color: #222222;
    font-family: Verdana, Tahoma, "Trebuchet MS", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    padding: 20px 10px;
}

/* Ana Taşıyıcı */
#container {
    max-width: 820px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 2px solid #666666;
    box-shadow: 3px 3px 0px #aaaaaa;
}

/* Üst Başlık (Header) */
#header {
    background-color: #f0eee8;
    border-bottom: 2px solid #666666;
    padding: 16px 20px;
}

.site-ascii {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: #555555;
    line-height: 1.1;
    margin-bottom: 8px;
    white-space: pre;
    display: block;
}

.site-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: bold;
    color: #111111;
    margin-bottom: 4px;
}

.site-title a {
    color: #111111;
    text-decoration: none;
}

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

.site-subtitle {
    font-size: 12px;
    color: #666666;
    font-style: italic;
    margin-bottom: 12px;
}

/* Canlı Durum / Winamp Çubuğu */
.status-bar {
    background-color: #e2dfd5;
    border: 1px dotted #888888;
    padding: 6px 10px;
    font-size: 11px;
    font-family: "Courier New", Courier, monospace;
    color: #333333;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.status-item strong {
    color: #004488;
}

/* Gezinme Menüsü */
#nav {
    background-color: #dfdbcf;
    border-bottom: 1px solid #999999;
    padding: 8px 15px;
    font-size: 12px;
}

#nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#nav li::before {
    content: "[";
    color: #777777;
    margin-right: 2px;
}

#nav li::after {
    content: "]";
    color: #777777;
    margin-left: 2px;
}

#nav a {
    color: #0000cc;
    text-decoration: none;
    font-weight: bold;
}

#nav a:hover,
#nav a.active {
    color: #cc0000;
    text-decoration: underline;
}

/* Ana İçerik ve Yan Panel Düzeni */
#main-layout {
    display: flex;
    min-height: 480px;
}

#content {
    flex: 1;
    padding: 20px;
    border-right: 1px dashed #999999;
}

#sidebar {
    width: 250px;
    background-color: #faf9f6;
    padding: 18px 15px;
    font-size: 12px;
}

/* Yan Panel Bileşenleri */
.sidebar-box {
    margin-bottom: 22px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    padding: 10px 12px;
}

.sidebar-title {
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: bold;
    color: #333333;
    border-bottom: 1px solid #bbbbbb;
    padding-bottom: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-box ul {
    list-style-type: square;
    padding-left: 18px;
}

.sidebar-box li {
    margin-bottom: 6px;
}

/* Bağlantılar */
a {
    color: #0000cc;
    text-decoration: underline;
}

a:hover {
    color: #cc0000;
}

/* Blog Yazıları */
.post-entry {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px dotted #999999;
}

.post-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

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

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

.post-meta {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: #666666;
    margin-bottom: 12px;
    background-color: #f7f6f2;
    padding: 3px 6px;
    border-left: 3px solid #888888;
}

.post-meta .badge {
    background-color: #e0ded6;
    border: 1px solid #bbbbbb;
    padding: 1px 5px;
    font-size: 10px;
    color: #333333;
}

.post-body {
    font-size: 13px;
    line-height: 1.7;
    color: #222222;
}

.post-body p {
    margin-bottom: 12px;
}

.post-body pre {
    background-color: #f2f0ea;
    border: 1px solid #cccccc;
    padding: 10px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 12px 0;
}

.post-body code {
    font-family: "Courier New", Courier, monospace;
    background-color: #f0eee8;
    padding: 1px 4px;
    border: 1px solid #dedcd4;
    font-size: 11px;
}

.read-more {
    font-weight: bold;
    display: inline-block;
    margin-top: 6px;
}

/* Yorumlar & Ziyaretçi Defteri */
.comment-box,
.guestbook-entry {
    background-color: #f9f8f4;
    border: 1px solid #d5d3cb;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.comment-header,
.gb-header {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    border-bottom: 1px dotted #bbbbbb;
    padding-bottom: 4px;
    margin-bottom: 8px;
    color: #555555;
}

.comment-author,
.gb-author {
    font-weight: bold;
    color: #003366;
}

.comment-city {
    color: #666666;
    font-style: italic;
}

/* Formlar (Klasik 2000'ler Giriş Elemanları) */
form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #333333;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    font-family: Verdana, Tahoma, sans-serif;
    font-size: 12px;
    border: 2px inset #ffffff;
    background-color: #ffffff;
    border: 1px solid #7f9db9;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #0055aa;
    background-color: #fffffa;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background: #e0ded6;
    border: 2px outset #ffffff;
    border-right-color: #666666;
    border-bottom-color: #666666;
    padding: 4px 14px;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #111111;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: #d6d3c8;
}

.btn:active {
    border: 2px inset #666666;
    padding: 5px 13px 3px 15px;
}

.btn-sm {
    padding: 2px 8px;
    font-size: 11px;
}

.btn-danger {
    color: #990000;
}

/* Sayaç Stili (Retro Odometer) */
.hit-counter {
    display: inline-flex;
    background-color: #111111;
    border: 2px solid #555555;
    padding: 2px 3px;
    vertical-align: middle;
}

.hit-counter .digit {
    background-color: #000000;
    color: #33ff33;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    padding: 0 3px;
    border-right: 1px solid #333333;
}

.hit-counter .digit:last-child {
    border-right: none;
}

/* Altbilgi (Footer) */
#footer {
    background-color: #eae7dd;
    border-top: 2px solid #666666;
    padding: 16px 20px;
    font-size: 11px;
    color: #555555;
    text-align: center;
}

.footer-badges {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.retro-badge {
    display: inline-block;
    background-color: #2b2b2b;
    color: #ffffff;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid #888888;
    text-decoration: none;
}

.retro-badge .badge-left {
    color: #f0f088;
}

.retro-badge .badge-right {
    color: #88ff88;
}

.footer-info {
    margin-top: 6px;
    font-family: "Courier New", Courier, monospace;
}

/* Bildirim Kutuları */
.alert {
    padding: 8px 12px;
    margin-bottom: 14px;
    border: 1px solid;
    font-size: 12px;
}

.alert-success {
    background-color: #e6f4ea;
    border-color: #34a853;
    color: #137333;
}

.alert-error {
    background-color: #fce8e6;
    border-color: #ea4335;
    color: #c5221f;
}

/* Sayfalama */
.pagination {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dotted #999999;
    display: flex;
    justify-content: space-between;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

/* Arama Kutusu */
.search-form {
    display: flex;
    gap: 4px;
}

.search-form input[type="text"] {
    flex: 1;
}

/* Tablolar (Admin için) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 12px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #cccccc;
    padding: 6px 8px;
    text-align: left;
}

.admin-table th {
    background-color: #eceae3;
    font-weight: bold;
}

.admin-table tr:nth-child(even) {
    background-color: #f9f8f4;
}

/* Duyarlı Düzen (Responsive & Modern Dokunuş) */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

body {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    body {
        padding: 10px 8px;
    }

    #container {
        border-width: 1.5px;
        box-shadow: 2px 2px 0px #aaaaaa;
    }

    #main-layout {
        flex-direction: column;
    }

    #content {
        border-right: none;
        border-bottom: 1px dashed #999999;
        padding: 16px 14px;
    }

    #sidebar {
        width: 100%;
        padding: 16px 14px;
    }

    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 520px) {
    body {
        padding: 4px 4px;
        font-size: 13px;
    }

    #container {
        border-width: 1px;
        box-shadow: none;
    }

    #header {
        padding: 12px 12px;
    }

    .site-title {
        font-size: 20px;
    }

    .site-subtitle {
        font-size: 11px;
    }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 8px;
        font-size: 10px;
    }

    #nav {
        padding: 6px 10px;
    }

    #nav ul {
        gap: 6px 8px;
    }

    #nav a {
        display: inline-block;
        padding: 2px 2px;
    }

    #content {
        padding: 14px 10px;
    }

    #sidebar {
        padding: 14px 10px;
    }

    .post-title {
        font-size: 17px;
    }

    .post-meta {
        font-size: 10px;
        line-height: 1.5;
        padding: 4px 6px;
    }

    .comment-header,
    .gb-header {
        font-size: 10px;
        line-height: 1.4;
    }

    .pagination {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-badges {
        gap: 4px;
    }

    .retro-badge {
        font-size: 9px;
        padding: 2px 4px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="url"],
    select,
    textarea {
        font-size: 14px;
    }
}

/* ==========================================================================
   Yazdırma / PDF Formatı (Print Stylesheet)
   ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        font-size: 10.5pt;
    }

    #container {
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    #header,
    #nav,
    #sidebar,
    #footer,
    .no-print,
    .alert {
        display: none !important;
    }

    #content {
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .cv-section-title {
        border-bottom: 1.5pt solid #000 !important;
        color: #000 !important;
    }

    a {
        color: #000000 !important;
        text-decoration: none !important;
    }

    .admin-table th,
    .admin-table td {
        border-color: #999 !important;
    }
}
