﻿/*
Theme Name: EkÅŸi Clone
Theme URI: https://eksisozluk.com
Author: Antigravity
Author URI: https://google.com
Description: EkÅŸi SÃ¶zlÃ¼k birebir kopyasÄ±. HÄ±zlÄ±, hafif ve retina uyumlu.
Version: 1.0.1
Text Domain: eksi-clone
*/

@import url('assets/css/skeleton.css');

:root {
    --eksi-green: #81c14b;
    --eksi-green-hover: #6ea640;
    --eksi-bg: #ccc;
    --eksi-bg-body: #f5f5f5;
    /* sol frame */
    --eksi-text: #000;
    --eksi-text-muted: #888;
    --eksi-link: #81c14b;
    --sidebar-width: 280px;
    --header-height: 50px;
}

/* Reset basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    background-color: #f5f5f5;
    /* eksi-bg-body */
    color: var(--eksi-text);
    font-size: 15px;
    line-height: 1.5;
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.1s;
}

a:hover {
    color: var(--eksi-link);
}

/* Layout Grid */
#eksi-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - var(--header-height));
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}



/* HEADER */
#top-bar {
    background: #fff;
    border-bottom: 2px solid #ccc;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo {
    margin-right: 25px;
    flex-shrink: 0;
}

#logo a {
    font-weight: 700;
    font-size: 20px;
    color: var(--eksi-green);
    letter-spacing: -0.5px;
}

#logo a:hover {
    color: var(--eksi-green-hover);
}

#search-container {
    flex-grow: 1;
    max-width: 500px;
}

#searchform {
    position: relative;
    margin-top: 2px;
}

#searchform input[type="text"] {
    width: 100%;
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.2s;
    font-family: inherit;
}

#searchform input[type="text"]:focus {
    box-shadow: 0 0 3px rgba(129, 193, 75, 0.4);
    border-color: var(--eksi-green);
}

#searchsubmit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    padding: 0;
    line-height: 0;
}

#searchsubmit:hover {
    color: var(--eksi-green);
}

#user-menu {
    margin-left: auto;
    font-size: 13px;
    display: flex;
    gap: 15px;
    font-weight: 600;
}

#user-menu a.btn-login,
#user-menu a.btn-register {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
}

#user-menu a.btn-login {
    border: 1px solid var(--eksi-link);
    color: var(--eksi-link);
    background: transparent;
}

#user-menu a.btn-login:hover {
    background: var(--eksi-link);
    color: #fff;
}

#user-menu a.btn-register {
    background: var(--eksi-link);
    color: #fff;
    border: 1px solid var(--eksi-link);
}

#user-menu a.btn-register:hover {
    background: var(--eksi-green-hover);
    border-color: var(--eksi-green-hover);
}

/* Sidebar... */

/* SIDEBAR / LEFT FRAME */
#left-frame {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: #f5f5f5;
    border-right: 1px solid #e5e5e5;
    /* Sticky height calculation fix */
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    overflow-y: auto;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

#channel-nav {
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    background: #eee;
}

#channel-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0 5px;
}

#channel-nav li a {
    display: block;
    padding: 8px 10px;
    color: #555;
    font-size: 13px;
    font-weight: normal;
}

#channel-nav li a.active {
    color: var(--eksi-green);
    font-weight: 700;
    background-color: #f0f7e6;
    /* light green */
    /* Active tab blends with sidebar */
    margin-bottom: -1px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--eksi-green);
    /* Hide border */
}

#channel-nav li a:hover {
    color: #000;
    text-decoration: underline;
}

#topic-list {
    flex-grow: 1;
    padding: 10px 0;
    position: relative;
}

#agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Agenda Animation */
@keyframes fadeInUpAgenda {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agenda-enter {
    animation: fadeInUpAgenda 0.3s ease forwards;
    opacity: 0;
    /* BaÅŸlangÄ±Ã§ta gizli */
}

#agenda-list li {
    padding: 0 15px;
    margin-bottom: -5px;
    /* AralÄ±k aÃ§Ä±ldÄ± */
    line-height: 1.4;
}

#agenda-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    /* Boyut sabitlendi */
    font-weight: normal;
    /* KalÄ±nlÄ±k sÄ±fÄ±rlandÄ± */
}

#agenda-list li a .count {
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 10px;
    /* Yuvarlak (Hap) gÃ¶rÃ¼nÃ¼m */
    margin-left: 10px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    /* SayÄ±nÄ±n sÄ±kÄ±ÅŸmasÄ±nÄ± engelle */
}


/* .topic-title iÃ§in Ã¶zel stil (garanti boyut) */
#agenda-list li a .topic-title {
    font-size: 12px !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    color: inherit;
    flex: 1;
    padding-right: 10px;
    word-break: break-word;
}

#agenda-list li a {
    font-size: 14px !important;
    /* Wrapper iÃ§in de zorla */
}

#refresh-agenda {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #ccc;
    padding: 0 5px;
    z-index: 10;
    display: none;
    /* Hide for now, auto refresh is enough or styled poorly */
}

/* MAIN CONTENT */
#main-body {
    flex-grow: 1;
    padding: 25px 40px;
    background: #fff;
    min-width: 0;
    /* flex child text wrap fix */
}

/* Single Topic Layout */
.topic-container {
    margin-bottom: 40px;
}

.topic-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.topic-title a {
    color: #000;
}

.topic-title a:hover {
    color: #000;
}

.entry-list {
    margin-bottom: 30px;
}

.entry-item {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.entry-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.entry-text p {
    margin-bottom: 12px;
}

.entry-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 12px;
    color: #999;
    gap: 10px;
}

.entry-footer a.entry-author {
    color: var(--eksi-green);
    font-weight: 600;
}

.entry-date a {
    color: #ccc;
}

.entry-date a:hover {
    color: #999;
}

/* Entry Actions (Vote buttons visual) */
.entry-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.entry-item:hover .entry-actions {
    opacity: 1;
}

.entry-actions button {
    background: none;
    border: none;
    /* Ã‡erÃ§eve yok */
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    margin-right: 5px;
    padding: 2px 5px;
    /* Biraz padding */
    transition: color 0.2s;
}

.entry-actions button.voted {
    color: var(--eksi-green);
    /* SeÃ§ili buton rengi */
    font-weight: bold;
}

.entry-actions button:hover {
    color: #555;
}

/* Entry Toolbar */
.entry-toolbar {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 5px;
    display: flex;
    gap: 5px;
    border-radius: 3px 3px 0 0;
}

.entry-toolbar button {
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 2px;
}

.entry-toolbar button:hover {
    background: #e5e5e5;
    color: var(--eksi-green);
}

/* Vote Btn Ã¶zel stil */
.vote-btn {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 0 5px !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    /* Skeleton override */
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
}

.vote-btn:hover,
.vote-btn:focus,
.vote-btn:active,
.vote-btn:visited {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    color: inherit;
    /* Emoji olduÄŸu iÃ§in renk Ã§ok etkilemez ama text iÃ§in */
}

.vote-btn .count {
    font-size: 12px;
    margin-left: 3px;
    color: #999;
    font-weight: normal;
}

.vote-btn.voted .count {
    color: var(--eksi-green);
    font-weight: bold;
}

/* Forms */
textarea#comment {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

textarea#comment:focus {
    border-color: var(--eksi-green);
}

.primary-btn,
input[type="submit"] {
    background-color: var(--eksi-green);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    float: right;
    transition: background 0.2s;
}

.primary-btn:hover,
input[type="submit"]:hover {
    background-color: var(--eksi-green-hover);
}

/* Entry Formatting */
.entry-text a {
    color: var(--eksi-link);
    text-decoration: none;
}

.entry-text a:hover {
    text-decoration: underline;
}

/* Resimlerin taÅŸmasÄ±nÄ± engelle */
.entry-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 4px;
}

.entry-tag {
    color: #81c14b !important;
    /* EkÅŸi green for tags/channels */
    font-weight: bold;
}

.spoiler-wrapper {
    margin: 10px 0;
}

.spoiler-trigger:hover {
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.entry-share-link {
    float: right;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
}

.entry-share-link:hover {
    color: var(--eksi-green);
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    color: #555;
}

/* Mobile Sidebar Search Default (Hidden on Desktop) */
.mobile-search-container {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #eksi-container {
        display: block;
        position: relative;
        /* For overlay context if needed, though fixed is better */
    }

    #mobile-menu-toggle {
        display: block;
    }

    /* Off-canvas Sidebar */
    #left-frame {
        position: fixed;
        top: var(--header-height);
        left: -280px;
        /* Hide off-screen */
        width: 280px;
        height: calc(100vh - var(--header-height));
        z-index: 1001;
        transition: left 0.3s ease;
        border-right: 1px solid #ccc;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    #left-frame.open {
        left: 0;
        /* Slide in */
    }

    /* Overlay */
    #mobile-overlay {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    #mobile-overlay.active {
        display: block;
    }

    #main-body {
        padding: 15px;
    }

    #top-bar {
        padding: 0 10px;
        justify-content: space-between;
    }

    #logo {
        margin-right: 0;
    }

    #logo a {
        font-size: 20px;
    }

    #search-container {
        display: none;
    }

    #search-container.active {
        /* helper if we want to toggle search too, but keeping simple */
        display: block;
    }

    #user-menu {
        gap: 10px;
    }

    #user-menu a {
        font-size: 13px;
    }

    /* Mobile Sidebar Search */
    .mobile-search-container {
        display: block;
        padding: 10px;
        background: #eee;
        border-bottom: 1px solid #ddd;
    }

    .mobile-search-form input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }
}

/* Pagination Styling */
.eksi-pagination {
    margin: 30px 0;
    display: flex;
    justify-content: flex-end;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f1f1;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    height: 32px;
    min-width: 60px;
    color: #555;
    font-weight: 600;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: center;
    transition: all 0.2s;
}

.page-select:hover {
    border-color: #bbb;
}

.page-select:focus {
    border-color: var(--eksi-green);
    box-shadow: 0 0 0 2px rgba(129, 193, 75, 0.2);
}

.separator {
    color: #aaa;
    font-size: 18px;
    font-weight: 300;
}

.total-pages-box {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    padding: 0 5px;
    background: #fff;
    border-radius: 12px;
    padding: 4px 10px;
    border: 1px solid #ddd;
}

.next-page-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--eksi-green);
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.next-page-btn:hover:not(.disabled) {
    background: var(--eksi-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.next-page-btn.disabled {
    opacity: 0.5;
    cursor: default;
    background: #ccc;
    box-shadow: none;
}

/* Author Page Lists */
ul.author-entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 25px;
    border-top: 2px solid #f0f0f0;
}

ul.author-entry-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.1s;
}

ul.author-entry-list li:hover {
    background: #fafafa;
}

ul.author-entry-list li:last-child {
    border-bottom: none;
}

ul.author-entry-list li a.entry-title-link {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: color 0.2s;
}

ul.author-entry-list li a.entry-title-link:hover {
    color: var(--eksi-link);
    text-decoration: none;
}

.entry-meta-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 20px;
    font-family: 'Arial', sans-serif;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}/* Create Topic Form Styling */
.create-topic-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* Hafif gÃ¶lge */
    margin-bottom: 30px;
    border: 1px solid #f1f1f1;
}

.create-topic-box h3.topic-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.create-topic-box input[type="text"],
.create-topic-box select {
    width: 100%;
    padding: 12px 15px;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    /* Yuvarlak inputlar */
    font-size: 15px;
    background-color: #fcfcfc;
    box-sizing: border-box;
    transition: all 0.3s ease;
    color: #444;
}

.create-topic-box input[type="text"]:focus,
.create-topic-box select:focus {
    border-color: var(--eksi-green);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(129, 193, 75, 0.15);
    /* Soft focus ring */
}

/* Custom Select Arrow */
.create-topic-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2381c14b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.create-topic-box ::placeholder {
    color: #aaa;
}
