/* ============================================
   MODERN TASARIM SİSTEMİ - Vato.tr
   ============================================ */

/* Modern Renk Paleti */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #0f1419;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gece Modu Renkleri */
body.night-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    --border-hover: #475569;
}

/* Genel Container Stilleri */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1400px;
}

.login-register-container {
    width: 90%;
    margin: 0 auto;
    max-width: 300px;
}

.content-with-sidebar {
    display: flex;
    gap: 24px;
    max-width: 100%;
}

/* Modern Sidebar Stilleri */
.sidebar {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.sidebar:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.left-sidebar {
    width: 25%;
    min-width: 200px;
    max-width: 25%;
    order: 1;
}

.right-sidebar {
    width: 25%;
    min-width: 200px;
    max-width: 25%;
    order: 3;
}

.sidebar h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    letter-spacing: -0.5px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 12px;
    max-width: 100%;
    overflow-wrap: break-word;
    transition: var(--transition);
}

.sidebar a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.sidebar a:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

.sidebar .topic-title {
    font-weight: 600;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    display: block;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-primary);
    transition: var(--transition);
}

.sidebar .topic-title:hover {
    color: var(--primary-color);
    font-weight: 700;
}

.sidebar .topic-meta {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 6px;
    display: block;
}

/* Modern Yorum Listesi */
.comment-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.comment-item:hover::before {
    opacity: 1;
}

.comment-message {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.6;
}

.comment-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.comment-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.9em;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    transition: var(--transition);
}

.comment-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.message-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.message-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Modern Sayfalama */
.pagination {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin: 0;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination a.active {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 12px;
    }
    
    .left-sidebar, .right-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .content-with-sidebar {
        flex-direction: column;
        gap: 16px;
    }
    
    .sidebar {
        padding: 16px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination a {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 0.9em;
    }
}