/* Kullanıcı adı renkleri ve rozetler */
.username-admin { color: #e74c3c; font-weight: bold; }
.username-moderator { color: #2980b9; font-weight: bold; }
.username-kurumsal { color: #27ae60; font-weight: bold; }
.username-silver { color: #aaa; font-weight: bold; }
.username-gold { color: gold; font-weight: bold; }
.username-banned { color: #888; text-decoration: line-through; }
.username-warned { color: #f39c12; }

.badge { font-size: 0.85em; vertical-align: middle; }

/* Sticky, locked, announce ikonları */
.topic-sticky i { color: #f39c12; }
.topic-locked i { color: #e74c3c; }
.topic-announce i { color: #2980b9; }

/* Tema/gece modu */
body.dark-mode {
    background: #181a1b !important;
    color: #e0e0e0 !important;
}
.dark-mode .card, .dark-mode .navbar, .dark-mode .list-group-item {
    background: #23272a !important;
    color: #e0e0e0 !important;
}
.dark-mode .form-control, .dark-mode .btn {
    background: #23272a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.2em; }
    .card-header, .list-group-item { font-size: 0.98em; }
    .btn, .badge { font-size: 0.95em; }
}

/* Avatar boyutları */
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; }
.avatar-md { width: 48px; height: 48px; border-radius: 50%; }
.avatar-lg { width: 80px; height: 80px; border-radius: 50%; }

/* Forum başlıkları ve ikonlar */
.topic-title { font-weight: bold; }
.topic-meta { font-size: 0.95em; color: #888; }

/* Bildirim sayacı */
.navbar .notif-badge {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8em;
    padding: 2px 7px;
    margin-left: 4px;
    vertical-align: top;
}

/* Forum Custom CSS - ApsunucuForum */

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* User Menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.user-menu-dropdown a:hover {
    background-color: #f8f9fa;
}

.user-menu-dropdown a:last-child {
    border-bottom: none;
}

/* Notifications */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.notifications-dropdown.show {
    display: block;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
}

.notification-item.unread:hover {
    background-color: #bbdefb;
}

.notification-content {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.8rem;
    color: #666;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a6fd8;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
}

/* Forum Categories */
.forum-category {
    background: white;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 5px 5px 0 0;
}

.category-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.forum-list {
    padding: 0;
}

.forum-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.forum-item:hover {
    background-color: #f8f9fa;
}

.forum-item:last-child {
    border-bottom: none;
}

.forum-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.forum-info {
    flex: 1;
}

.forum-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.forum-description {
    color: #666;
    font-size: 0.9rem;
}

.forum-stats {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

/* Topics */
.topic-item {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.topic-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #667eea;
}

.topic-info {
    flex: 1;
}

.topic-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.topic-title a {
    color: #333;
    text-decoration: none;
}

.topic-title a:hover {
    color: #667eea;
}

.topic-meta {
    color: #666;
    font-size: 0.9rem;
}

.topic-stats {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

/* Posts */
.post {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.post-author {
    flex: 1;
}

.post-author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-content {
    line-height: 1.8;
}

.post-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* User Profiles */
.profile-header {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 2rem;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.profile-stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Username Colors */
.username-admin {
    color: #dc3545;
    font-weight: bold;
}

.username-moderator {
    color: #fd7e14;
    font-weight: bold;
}

.username-corporate {
    color: #6f42c1;
    font-weight: bold;
}

.username-silver {
    color: #6c757d;
    font-weight: bold;
}

.username-gold {
    color: #ffc107;
    font-weight: bold;
}

.username-banned {
    color: #dc3545;
    text-decoration: line-through;
}

.username-warned {
    color: #fd7e14;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.badge-admin {
    background-color: #dc3545;
    color: white;
}

.badge-moderator {
    background-color: #fd7e14;
    color: white;
}

.badge-corporate {
    background-color: #6f42c1;
    color: white;
}

.badge-silver {
    background-color: #6c757d;
    color: white;
}

.badge-gold {
    background-color: #ffc107;
    color: #212529;
}

/* Roles */
.role {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.role-admin {
    background-color: #dc3545;
    color: white;
}

.role-moderator {
    background-color: #fd7e14;
    color: white;
}

.role-user {
    background-color: #6c757d;
    color: white;
}

/* Memberships */
.membership {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.membership-corporate {
    background-color: #6f42c1;
    color: white;
}

.membership-silver {
    background-color: #6c757d;
    color: white;
}

.membership-gold {
    background-color: #ffc107;
    color: #212529;
}

.membership-free {
    background-color: #28a745;
    color: white;
}

/* Status */
.status-banned {
    color: #dc3545;
    font-weight: bold;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

/* Topic Status Icons */
.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Legal Pages */
.legal-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legal-nav a {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.legal-nav a:hover,
.legal-nav a.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.legal-content {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.legal-content h1 {
    color: #667eea;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.legal-content h2 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 30px;
    color: #667eea;
    margin-right: 1rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
}

/* Moderasyon Araçları */
.moderation-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-link {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.tab-link:hover,
.tab-link.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.banned-user {
    background-color: #f8d7da !important;
}

.post-preview {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 5px;
    min-width: 400px;
    max-width: 600px;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .container,
body.dark-mode .breadcrumb,
body.dark-mode .forum-category,
body.dark-mode .topic-item,
body.dark-mode .post,
body.dark-mode .profile-header,
body.dark-mode .legal-content,
body.dark-mode .table,
body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .table th {
    background-color: #3d3d3d;
}

body.dark-mode .table tr:hover {
    background-color: #3d3d3d;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .legal-nav a,
body.dark-mode .tab-link {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .legal-nav a:hover,
body.dark-mode .legal-nav a.active,
body.dark-mode .tab-link:hover,
body.dark-mode .tab-link.active {
    background-color: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .forum-item {
        flex-direction: column;
        text-align: center;
    }
    
    .forum-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .forum-stats {
        text-align: center;
        margin-top: 1rem;
    }
    
    .topic-item {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .topic-stats {
        text-align: center;
        margin-top: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .moderation-tabs {
        flex-direction: column;
    }
    
    .modal-content {
        min-width: 90%;
        margin: 1rem;
    }
}

/* Avatar Sizes */
.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.avatar-medium {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #ccc;
    font-size: 0.9rem;
} 