@font-face {
    font-family: 'Perfect DOS VGA 437';
    src: url('/public/fonts/PerfectDOSVGA437.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Perfect DOS VGA 437', 'Courier New', monospace;
    font-size: 16px;
    color: #000000;
}

body.desktop-bg {
    background-color: #008080;
    background-image: repeating-linear-gradient(45deg, #007373 0, #007373 1px, transparent 1px, transparent 40px);
    min-height: 100vh;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }

/* --- Windows 93 pencere --- */
.win93-window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 1px 1px 0 #000000;
    margin: 16px auto;
    max-width: 960px;
    min-width: 280px;
}

.win93-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    padding: 4px 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.win93-body {
    padding: 12px 16px;
    background: #c0c0c0;
    overflow-x: auto;
}

.win93-titlebar-buttons button {
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    padding: 1px 6px;
    background: #c0c0c0;
    color: #000000;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    cursor: pointer;
}

.login-window, .admin-window { max-width: 480px; }
.content-window { max-width: 1000px; }

/* --- Navigasyon --- */
.site-nav, .admin-nav {
    max-width: 1000px;
    margin: 8px auto 0;
    background: #000080;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 14px;
}
.site-nav a, .admin-nav a { color: #ffff00; text-decoration: none; }
.site-nav a:hover, .admin-nav a:hover { text-decoration: underline; }

/* --- Form elemanları --- */
input[type="text"], input[type="password"], textarea, select {
    font-family: inherit;
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 3px 4px;
}

button, input[type="submit"] {
    font-family: inherit;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 12px;
    cursor: pointer;
}
button:active, input[type="submit"]:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.error-box {
    background: #ffdddd;
    border: 2px solid #aa0000;
    color: #aa0000;
    padding: 6px 10px;
}
.success-box {
    background: #ddffdd;
    border: 2px solid #007700;
    color: #007700;
    padding: 6px 10px;
}
.result-box {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 8px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* --- Tablolar (admin) --- */
.admin-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
}
.admin-table th, .admin-table td {
    border: 1px solid #808080;
    padding: 4px 8px;
    text-align: left;
    font-size: 14px;
}
.admin-table th { background: #000080; color: #ffffff; }

/* --- Video grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.video-grid-item {
    display: block;
    background: #ffffff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 6px;
    text-decoration: none;
    color: #000000;
}
.video-grid-thumb { width: 100%; max-height: 140px; background: #000; }
.video-grid-title { font-weight: bold; margin-top: 4px; }
.video-grid-meta { font-size: 12px; color: #444; }

/* --- Video oynatıcı sayfası --- */
.video-player { width: 100%; max-height: 70vh; background: #000; }
.video-desc { white-space: pre-wrap; }
.video-meta { font-size: 13px; color: #444; }

/* --- Yorum ağacı --- */
.comment-thread { margin-top: 12px; }
.comment {
    background: #ffffff;
    border: 1px solid #808080;
    padding: 6px 10px;
    margin-bottom: 8px;
}
.comment-meta { font-size: 11px; color: #666; }
.comment-replies { margin-left: 24px; margin-top: 6px; border-left: 3px solid #c0c0c0; padding-left: 10px; }
.comment--reply { background: #f4f4f4; }

/* --- Site içi yorumlar (video/gönderi altında yazılabilen) --- */
.site-comments { margin-top: 16px; border-top: 2px solid #808080; padding-top: 10px; }
.site-comments h4 { display: flex; align-items: center; gap: 10px; }
.site-comments-toggle { font-size: 12px; padding: 2px 8px; }
.site-comment { background: #ffffe0; border: 1px solid #808080; padding: 6px 10px; margin-bottom: 6px; }
.site-comment-meta { font-size: 11px; color: #444; }
.site-comment-form { margin-top: 8px; }

/* --- Tweet-card (harici video yorumları) --- */
.tweet-item {
    background: #ffffff;
    border: 1px solid #808080;
    padding: 8px;
    margin-bottom: 10px;
}
.tweet-card {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    background: #eeeeee;
    border: 1px solid #999999;
    padding: 6px;
    margin-bottom: 6px;
}
.tweet-card-thumb { width: 72px; height: 54px; object-fit: cover; flex-shrink: 0; }
.tweet-card-thumb--missing {
    width: 72px; height: 54px; display: flex; align-items: center; justify-content: center;
    background: #333; color: #fff; font-size: 24px;
}
.tweet-card-title { font-weight: bold; font-size: 13px; }
.tweet-comment-meta { font-size: 11px; color: #666; }
.tweet-comment-text { margin-top: 4px; }

/* --- Gönderiler --- */
.post-card {
    background: #ffffff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 10px;
    margin-bottom: 14px;
}
.post-meta { font-size: 11px; color: #666; margin-bottom: 6px; }
.post-images { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.post-image { max-width: 220px; max-height: 220px; object-fit: cover; }
.post-text { white-space: pre-wrap; }

/* --- Playlist sayfası --- */
.playlists-layout { display: flex; gap: 12px; align-items: flex-start; }
.playlists-sidebar {
    flex: 0 0 220px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #808080;
    padding: 6px;
}
.playlist-link { display: block; padding: 4px 6px; text-decoration: none; color: #000; font-size: 13px; }
.playlist-link--active { background: #000080; color: #ffff00; }
.playlist-count { color: #666; font-size: 11px; }
.playlists-content { flex: 1; }

/* --- Kanal profili --- */
.channel-banner { width: 100%; max-height: 200px; object-fit: cover; }
.channel-header { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.channel-avatar { width: 80px; height: 80px; border-radius: 50%; }
.subscription-list { columns: 2; }

/* --- Masaüstü ikonları (index.php) --- */
.desktop-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.desktop-icon {
    width: 90px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    text-shadow: 1px 1px 1px #000000;
}
.desktop-icon-glyph {
    font-size: 40px;
    background: rgba(255,255,255,0.15);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 8px;
    margin-bottom: 4px;
}
.desktop-icon:hover .desktop-icon-glyph { background: rgba(255,255,255,0.3); }
.desktop-icon-label { font-size: 13px; }

.marquee-bar {
    background: #000000;
    color: #00ff00;
    overflow: hidden;
    white-space: nowrap;
    padding: 4px 0;
    max-width: 1000px;
    margin: 8px auto 0;
    border: 2px solid #808080;
}
.marquee-bar span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 20s linear infinite;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
