@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

/* Kök Değişkenler */
:root {
    --bg-color: #000000;
    --text-color: #33ff33;
    --highlight-color: #ff00ff;
    --secondary-color: #3377ff;
    --accent-color: #33ff33;
    --border-color: #33ff33;
    --logo-color: #33aaff;
}

/* Temel Stiller */
html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 22px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    cursor: default;
}

.container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
}

/* Terminal Ana Yapısı */
.terminal {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 10, 0, 0.9);
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.3);
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}

/* Header */
.site-header {
    padding: 20px 30px 5px 30px;
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    padding-right: 20px;
}

.ascii-logo {
    color: var(--logo-color);
    font-size: 24px;
    line-height: 1;
    text-shadow: 0 0 5px var(--logo-color);
    font-weight: bold;
    display: block;
    padding: 5px 0;
    margin: 0;
}

.menu-container {
    display: flex;
    justify-content: flex-end;
}

/* Menü */
.bbs-menu-horizontal {
    margin: 5px 0;
    text-align: right;
}

.horizontal-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px 0;
}

.menu-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 15px;
    transition: color 0.3s;
    font-size: 24px;
}

.menu-item:hover {
    color: var(--highlight-color);
}

.menu-item.active {
    color: var(--highlight-color);
    font-weight: bold;
}

.menu-separator {
    color: var(--accent-color);
    margin: 0 5px;
    opacity: 0.6;
}

.header-divider {
    height: 1px;
    background-color: var(--border-color);
    box-shadow: 0 0 5px var(--border-color);
    width: 100%;
    margin: 10px 0 15px 0;
    flex-basis: 100%;
}

/* Terminal Gövdesi */
.terminal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    position: relative;
    z-index: 5;
    /* Scrollbar'ı gizleme */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
    display: none;
}

/* İçerik Alanları */
.content {
    display: none;
    padding-top: 10px;
}

.content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 50px;
}

.content p {
    margin-bottom: 10px;
}

/* Terminal Efektleri */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(51, 255, 51, 0.15);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    animation: scanline-appear 4s linear infinite;
}

@keyframes scanline-appear {
    0% {
        opacity: 0;
        top: 0;
    }
    5% {
        opacity: 0.3;
    }
    20% {
        opacity: 0.3;
    }
    25% {
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    45% {
        opacity: 0.3;
        top: 50%;
    }
    65% {
        opacity: 0.3;
    }
    70% {
        opacity: 0;
    }
    90% {
        opacity: 0;
    }
    95% {
        opacity: 0.3;
        top: 100%;
    }
    100% {
        opacity: 0;
        top: 100%;
    }
}

/* CRT Efekti */
.terminal:before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom, 
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.2;
}

/* Komut Satırı */

.terminal-prompt {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt-sign {
    color: var(--text-color);
    margin-right: 5px;
}

/* Yanıp sönen imleç */
.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 22px;
    background-color: var(--text-color);
    margin-left: 0;
    margin-right: 2px;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.prompt-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 22px;
    outline: none;
    flex-grow: 1;
    caret-color: transparent;
    margin-left: 0;
}

/* Blog Yazıları */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

.blog-post {
    border: 1px solid var(--border-color);
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-posts-grid .blog-post:last-child {
    border-bottom: 1px solid var(--border-color);
}

.blog-post::before {
    content: attr(data-category);
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: var(--bg-color);
    padding: 0 10px;
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
}

.post-title {
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--highlight-color);
}

.post-date {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.post-excerpt {
    margin-bottom: 15px;
}

.post-tags {
    margin-top: 5px;
    font-size: 16px;
    text-align: right;
}

.post-tags span {
    color: var(--highlight-color);
}

.read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 15px;
    color: var(--logo-color);
    text-decoration: none;
    transition: color 0.3s;
    align-self: flex-end;
}

.read-more:hover {
    color: var(--highlight-color);
}

.read-more::before {
    content: "> ";
    color: var(--accent-color);
}

/* Ana Sayfa Stilleri */
.welcome-title {
    font-size: 36px;
    color: var(--highlight-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--highlight-color);
    white-space: nowrap;
}

.welcome-section {
    display: flex;
    align-items: stretch;
    margin-bottom: 30px;
    gap: 30px;
}

.welcome-text {
    flex: 1.3;
    display: flex;
    flex-direction: column;
}

.welcome-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.terminal-image {
    max-width: 100%;
    height: auto;
  /* border: 1px solid var(--border-color); */
  /*  box-shadow: 0 0 15px rgba(51, 255, 51, 0.3); */
}

/* Terminal Mesaj ve Butonlar */
.terminal-message {
  /*  border: 1px solid var(--border-color); */
    margin-bottom: 20px;
    background-color: rgba(0, 10, 0, 0.7);
    line-height: 1.2;
    text-shadow: 0 0 3px var(--text-color);
  /*  box-shadow: 0 0 10px rgba(51, 255, 51, 0.2); */
}

.terminal-message p {
    font-size: 30px;
    margin-bottom: 20px;
}

.home-posts-section {
    margin-top: 30px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    position: relative;
}

.home-posts-header {
    font-size: 24px;
    color: var(--logo-color);
    margin-bottom: 20px;
}

/* Sosyal Medya Butonları */
.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
    justify-content: space-between;
}

.social-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 12px 15px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

.social-button i {
    margin-right: 10px;
    font-size: 20px;
}

.social-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(51, 255, 51, 0.5);
}

/* Buton içindeki '>' işareti için stil */
.social-button span {
    margin-right: 8px;
    color: var(--highlight-color);
    font-weight: bold;
}

/* Alttaki Butonlar için Stil */
.home-posts-section a.read-more {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
    border-radius: 5px;
}

.home-posts-section a.read-more:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(51, 255, 51, 0.5);
}

/* İletişim Formu */
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
    margin-top: 20px;
}

.contact-form input, 
.contact-form textarea {
    background-color: rgba(17, 17, 17, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 22px;
    padding: 8px;
    width: 100%;
}

.contact-form button {
    background-color: rgba(17, 17, 17, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 22px;
    padding: 8px;
    cursor: pointer;
    max-width: 150px;
}

.contact-form button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}


/* Medya Sorgulamaları */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        padding: 5px;
        height: 98vh;
    }
    
    .site-header {
        padding: 10px;
    }
    
    .site-branding {
        flex: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .menu-container {
        flex: 100%;
        justify-content: center;
    }
    
    .horizontal-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-item {
        margin-bottom: 5px;
    }
    
    .welcome-section {
        flex-direction: column;
    }

    .welcome-text, .welcome-image {
        width: 100%;
    }

    .welcome-image {
        justify-content: center;
        margin-top: 20px;
    }
    
    .social-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .social-button {
        width: 100%;
        justify-content: center;
    }

    .terminal-image {
        max-width: 80%;
        margin: 15px auto;
    }
    
    /* Mobil cihazlarda sosyal butonlar için ek stiller */
    .social-button {
        font-size: 18px;
        padding: 10px;
    }
    
    .social-button i {
        font-size: 18px;
    }
}