/* Forum Layout - Tailwind Uyumlu */

main.forum-main {
    padding: 0 !important;
    padding-top: 0 !important;
    min-height: auto !important;
}

/* ── Eski CSS grid layout (fallback) ── */
.forum-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.forum-main-col { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.forum-sidebar-col { display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 992px) {
    .forum-grid { grid-template-columns: 1fr; }
    .forum-sidebar-col { order: 2; }
}

/* ── Nav Search ── */
.nav-search-form { margin-left: 1rem; }
.search-input-wrapper { position: relative; }
.search-input-wrapper input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.2s;
}
.search-input-wrapper input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-blue);
    width: 250px;
    outline: none;
}
.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}

/* ── Notification ── */
.notification-dropdown { position: relative; margin-right: 0.5rem; }
.notification-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}
.notification-toggle:hover { color: var(--text-primary); }
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    line-height: 1;
    border: 2px solid var(--bg-secondary);
}
.notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.notification-menu.active { display: flex; }
.notification-header {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}
.notification-header h3 { margin: 0; font-size: 0.95rem; }
.mark-read-btn { background: transparent; border: none; color: var(--accent-blue); cursor: pointer; }
.notification-list { max-height: 300px; overflow-y: auto; }
.empty-notifications { padding: 20px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}
.notification-item:hover { background-color: var(--bg-secondary); text-decoration: none; color: var(--text-primary); }
.notification-item.read { opacity: 0.7; }
.notif-icon { width: 32px; height: 32px; background: var(--bg-secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-blue); flex-shrink: 0; }
.notif-content { flex: 1; font-size: 0.9rem; line-height: 1.4; min-width: 0; }
.notif-content p { margin: 0; margin-bottom: 2px; color: var(--text-primary); }
.notif-content strong { color: var(--accent-blue); font-weight: 600; }
.notif-time { display: block; font-size: 0.75rem; color: var(--text-muted); }

/* ── User Dropdown ── */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.user-dropdown { position: relative; }
.user-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 999;
}
.user-dropdown-menu.active { display: flex; flex-direction: column; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); text-decoration: none; }

/* ── Rank Badges ── */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
    line-height: 1;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}
.rank-badge i { font-size: 0.9em; }
.rank-badge img { width: 16px; height: 16px; object-fit: contain; }

/* ── Holographic Effects ── */
.holo-rainbow {
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    animation: holo-anim 10s linear infinite;
    color: white; font-weight: 800;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 2px black;
    border: none !important;
}
.holo-aurora {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5, #00d2ff);
    background-size: 200%;
    animation: holo-anim 5s ease infinite;
    color: white; font-weight: 800;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 2px black;
    border: none !important;
}
.holo-silver {
    background: linear-gradient(45deg, #999, #fff, #999);
    background-size: 200%;
    animation: holo-shine 3s linear infinite;
    color: #333; font-weight: 800;
    border: 1px solid #ccc !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.holo-gold {
    background: linear-gradient(45deg, #ffd700, #fff, #ffd700);
    background-size: 200%;
    animation: holo-shine 3s linear infinite;
    color: #8a6d3b; font-weight: 800;
    border: 1px solid #e6c300 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.holo-glitch {
    background: #000; color: #fff; font-weight: 800;
    position: relative;
    border: 1px solid #0f0 !important;
    animation: glitch-anim 2s infinite;
}
.holo-fire {
    background: linear-gradient(0deg, #801100, #b72200, #fc6400, #ffcc00);
    background-size: 200% 200%;
    animation: fire-anim 3s ease infinite;
    color: white; font-weight: 800;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 2px black;
    border: none !important;
}
.holo-ice {
    background: linear-gradient(to bottom, #e3f7ff, #d6f3ff, #bce6ff, #9ad2ff, #74baff);
    color: #004d80; font-weight: 800;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid #74baff !important;
    box-shadow: 0 0 5px rgba(116, 186, 255, 0.5);
}

@keyframes holo-anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes holo-shine {
    0% { background-position: -100%; }
    100% { background-position: 200%; }
}
@keyframes glitch-anim {
    0% { text-shadow: 2px 0 #0f0, -2px 0 #f00; }
    25% { text-shadow: -2px 0 #0f0, 2px 0 #f00; }
    50% { text-shadow: 2px 0 #f0f, -2px 0 #0ff; }
    75% { text-shadow: -2px 0 #f0f, 2px 0 #0ff; }
    100% { text-shadow: 2px 0 #0f0, -2px 0 #f00; }
}
@keyframes fire-anim {
    0% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
    100% { background-position: 50% 0%; }
}

/* ── Like Animation ── */
.like-btn { position: relative; overflow: hidden; }
.like-btn.liked i, .like-btn.active i {
    color: var(--danger);
    animation: likeBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes likeBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ── Quill Editor ── */
.ql-toolbar {
    background-color: #161b27 !important;
    border-color: #2a3555 !important;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.ql-toolbar .ql-stroke { stroke: #94a3b8 !important; }
.ql-toolbar .ql-fill { fill: #94a3b8 !important; }
.ql-toolbar .ql-picker { color: #94a3b8 !important; }
.ql-container {
    background-color: #1a2035 !important;
    color: #e2e8f0 !important;
    border-color: #2a3555 !important;
    font-size: 16px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    overflow: visible !important;
}
.ql-editor { color: #e2e8f0 !important; }
.ql-editor.ql-blank::before { color: #64748b !important; font-style: italic; }
.ql-snow .ql-tooltip {
    background-color: #1a2035 !important;
    border: 1px solid #2a3555 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    border-radius: 4px;
    padding: 10px 15px !important;
    z-index: 2147483647 !important;
}
.ql-snow .ql-tooltip input[type=text] {
    background-color: #161b27 !important;
    border: 1px solid #2a3555 !important;
    color: #e2e8f0 !important;
    outline: none;
    border-radius: 4px;
    padding: 5px;
}
.ql-snow .ql-tooltip input[type=text]:focus { border-color: #5865f2 !important; }
.ql-snow .ql-tooltip a.ql-action, .ql-snow .ql-tooltip a.ql-remove { font-size: 0 !important; display: inline-block; margin-left: 10px; }
.ql-snow .ql-tooltip.ql-editing a.ql-action::before { content: 'Kaydet'; font-size: 13px !important; font-weight: bold; color: #5865f2; }
.ql-snow .ql-tooltip:not(.ql-editing) a.ql-action::before { content: 'Düzenle'; font-size: 13px !important; font-weight: bold; color: #5865f2; }
.ql-snow .ql-tooltip a.ql-remove::before { content: 'Kaldır'; font-size: 13px !important; font-weight: bold; color: #ef4444; }
.ql-snow .ql-tooltip.ql-editing[data-mode=link]::before { content: "Link girin:" !important; color: #94a3b8; margin-right: 8px; font-weight: 600; }
.ql-snow .ql-tooltip:not(.ql-editing)::before { content: "Linke git:" !important; color: #94a3b8; margin-right: 8px; font-weight: 600; }
.ql-snow .ql-tooltip a.ql-preview { color: #e2e8f0 !important; text-decoration: underline; }
.ql-picker-options { background-color: #1a2035 !important; border-color: #2a3555 !important; color: #e2e8f0 !important; }
.ql-toolbar button:hover .ql-stroke, .ql-toolbar button.ql-active .ql-stroke { stroke: #5865f2 !important; }
.ql-toolbar button:hover .ql-fill, .ql-toolbar button.ql-active .ql-fill { fill: #5865f2 !important; }
.ql-toolbar .ql-picker:hover { color: #5865f2 !important; }

.message-body img { max-width: 100%; height: auto; }
.message-body.ql-editor, #editor-container .ql-editor, #reply-editor .ql-editor, #edit-editor .ql-editor {
    padding: 0.5rem 1rem !important;
}
.message-body.ql-editor > p:first-child, #editor-container .ql-editor > p:first-child, #reply-editor .ql-editor > p:first-child, #edit-editor .ql-editor > p:first-child { margin-top: 0 !important; }
.message-body.ql-editor > *, #editor-container .ql-editor > *, #reply-editor .ql-editor > *, #edit-editor .ql-editor > * { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.message-body.ql-editor > *:first-child, #editor-container .ql-editor > *:first-child, #reply-editor .ql-editor > *:first-child, #edit-editor .ql-editor > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.message-body.ql-editor > *:last-child, #editor-container .ql-editor > *:last-child, #reply-editor .ql-editor > *:last-child, #edit-editor .ql-editor > *:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }

.message-body a { color: var(--accent-blue); text-decoration: none; font-weight: 500; }
.message-body a:hover { text-decoration: underline; opacity: 0.9; }

.ql-editor .mention {
    background-color: rgba(88, 101, 242, 0.1);
    color: var(--accent-blue);
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    user-select: none;
    cursor: pointer;
    border: 1px solid rgba(88, 101, 242, 0.2);
}
.ql-editor .mention:hover { background-color: rgba(88, 101, 242, 0.2); }

/* ── Code Blocks ── */
.ql-syntax, pre {
    background-color: #282c34 !important;
    color: #abb2bf !important;
    padding: 15px !important;
    border-radius: 6px !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    overflow-x: auto;
    border: 1px solid #3e4451;
    margin: 1rem 0 !important;
    position: relative;
}
.copy-btn {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}
.ql-syntax:hover .copy-btn, pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

/* ── Checkbox ── */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: var(--text-primary);
}
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.checkbox-container:hover input ~ .checkmark { background-color: var(--bg-secondary); }
.checkbox-container input:checked ~ .checkmark { background-color: var(--accent-blue); border-color: var(--accent-blue); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after { left: 6px; top: 2px; width: 6px; height: 12px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-container a { color: var(--accent-blue); text-decoration: none; font-weight: 600; }
.checkbox-container a:hover { text-decoration: underline; opacity: 0.8; }

/* ── Poll ── */
.poll-creation-block { margin-top: 1.5rem; background: var(--bg-card); padding: 1rem; border-radius: 8px; border: 1px dashed var(--border-color); }
.poll-toggle-label { font-weight: 600; display: flex; align-items: center; cursor: pointer; margin-bottom: 0; user-select: none; color: var(--text-primary); }
.poll-toggle-label:hover { color: var(--accent-blue); }
.poll-toggle-label i.fa-poll { margin-right: 8px; color: var(--accent-blue); }
#pollArrow { margin-left: auto; transition: transform 0.3s; color: var(--text-muted); }

/* ── Modals ── */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background-color: #1a2035;
    margin: 0;
    padding: 0;
    border: 1px solid #2a3555;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}
.modal-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a3555;
    background: #161b27;
}
.modal-header h3 { margin: 0; font-size: 1.05rem; color: #e2e8f0; }
.close-modal { background: none; border: none; color: #64748b; font-size: 1.4rem; cursor: pointer; }
.close-modal:hover { color: #e2e8f0; }
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #2a3555;
    background: rgba(0,0,0,0.1);
}

/* ── Pagination ── */
.forum-pagination .btn {
    width: 32px; height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 2px;
    border-radius: 6px;
    line-height: 1;
}

/* ── Game Status Card ── */
.game-status-card { margin-top: 1rem; width: 100%; }
.game-status-inner { padding: 1rem; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border-color); }
.game-status-header { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.game-status-header i { color: var(--accent-blue); margin-right: 0.5rem; }
.game-status-content { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; }
.status-badge-online { background-color: rgba(40,167,69,0.15); color: #28a745; padding: 5px 12px; font-size: 0.9rem; border-radius: 20px; border: 1px solid rgba(40,167,69,0.3); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.status-badge-offline { background-color: rgba(108,117,125,0.15); color: #aeb5bc; padding: 5px 12px; font-size: 0.9rem; border-radius: 20px; border: 1px solid rgba(108,117,125,0.3); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* ── Activity Tabs ── */
.act-tab { background: none; border: none; padding: 1rem; color: var(--text-muted); font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; font-size: 1rem; }
.act-tab.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }

/* ── Thread Locked Alert ── */
.locked-alert {
    background-color: rgba(245,158,11,0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* ── Breadcrumb (fallback) ── */
.forum-breadcrumb {
    display: flex;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    align-items: center;
}
.forum-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.forum-breadcrumb a:hover { color: var(--accent-blue); }
.forum-breadcrumb .separator { color: var(--text-muted); font-size: 0.8rem; }

/* ── Category toggle collapse ── */
.category-nodes { overflow: hidden; transition: max-height 0.3s ease; }
.category-nodes.collapsed { max-height: 0 !important; }
.category-toggle { color: var(--text-muted); cursor: pointer; background: transparent; border: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .node-stats, .node-extra { display: none !important; }
    .thread-stats, .thread-last-post { display: none !important; }
}
