:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #848d97;
    --accent: #58a6ff;
    --accent-hover: #3182ce;
    --glass-bg: rgba(22, 27, 34, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blob-1: #3b82f6;
    --blob-2: #8b5cf6;
    --blob-3: #10b981;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Arka Plan Efektleri */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--blob-3);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Ana Konteyner */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Glassmorphism Ortak Sınıf */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Header */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo .subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-glass-small {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-glass-small:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Layout */
.main-content {
    display: flex;
    gap: 1.5rem;
    height: calc(100vh - 150px);
}

/* Sidebar */
.glass-sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    width: 350px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--accent);
}

.post-list {
    list-style: none;
    overflow-y: auto;
    padding: 1rem;
    flex-grow: 1;
}
 
.sidebar-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
}
 
.contact-mail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}
 
.contact-mail:hover {
    color: var(--accent);
}
 
.contact-mail .icon {
    font-size: 1.1rem;
}

/* Scrollbar styling */
.post-list::-webkit-scrollbar, .glass-reader::-webkit-scrollbar {
    width: 6px;
}
.post-list::-webkit-scrollbar-track, .glass-reader::-webkit-scrollbar-track {
    background: transparent;
}
.post-list::-webkit-scrollbar-thumb, .glass-reader::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.post-list li {
    margin-bottom: 0.5rem;
}

.post-item {
    display: block;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.post-item.active {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3);
}

.post-item h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.post-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.skeleton-item {
    height: 70px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reader Area */
.glass-reader {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

.reader-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.reader-content {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

.article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c9d1d9;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2, .article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        height: auto;
    }
    
    .glass-sidebar {
        width: 100%;
        height: 300px;
    }
    
    .glass-reader {
        height: 600px;
    }

    .glass-header {
        flex-direction: column;
        gap: 1rem;
    }
}
