/*
Theme Name: Sözlüks
Theme URI: https://example.com/sozluks
Author: Yusuf GÖKDUMAN
Author URI: https://example.com
Description: Sözlüks is a minimalist dictionary/forum style WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sozluks
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
    --bg-main: #2d2d2d;
    --text-main: #bdbdbd;
    --accent-color: #81c14b;
    --accent-hover: #68a138;
    --bg-secondary: #1f1f1f;
    --bg-input: #474747;
    --border-color: #494949;
    --text-secondary: #666666;
}

body {
    padding-top: 101px;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: var(--text-main);
    line-height: 1.618;
    background-color: var(--bg-main);
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.618;
    margin: 0 0 10px 0;
}

h1 {
    font-size: 21px;
    line-height: 1.4;
}

h2 {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: normal;
}

a {
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

input,
select,
textarea {
    color: white;
    background-color: var(--bg-input);
    font-family: "Source Sans Pro", sans-serif;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 8px;
}

/* Header */
.header {
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    min-width: 300px;
    border-top: 4px solid var(--accent-color);
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--bg-secondary);
    box-sizing: border-box;
}

.top-bar {
    height: 101px;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container a {
    display: block;
    height: 60px;
    line-height: 60px;
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
}

.logo-container a:hover {
    text-decoration: none;
}

.search-container {
    display: flex;
    align-items: center;
    border-radius: 5px;
    height: 29px;
}

.search-input {
    border: 1px solid var(--accent-color);
    border-radius: 5px 0 0 5px;
    height: 29px;
    background-color: #fff;
    width: 380px;
    color: black;
    padding: 0 8px;
    box-sizing: border-box;
    outline: none;
}

.search-input:focus {
    outline: none;
}

.search-button {
    font-size: 14px;
    height: 29px;
    border: none;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 0 5px 5px 0;
    padding: 0 15px;
    cursor: pointer;
}

.auth-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Layout */
.main-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
}

.left-side {
    position: fixed;
    top: 101px;
    bottom: 0;
    width: 245px;
    z-index: 10;
    overflow-y: auto;
}

.left-side ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.left-side ul li:hover {
    background-color: var(--bg-secondary);
}

.left-side ul li a {
    padding: 10px 15px;
    display: block;
    word-wrap: break-word;
    display: flex;
    justify-content: space-between;
}

.left-side ul li a span.count {
    color: var(--text-secondary);
    font-size: 12px;
}

.inner-content {
    margin-left: 245px;
    width: 100%;
}

.section {
    width: 100%;
    max-width: 645px;
    margin-left: 25px;
    margin-right: 25px;
}

/* Entry / Topic */
.topic h1 {
    font-size: 22px;
    margin: 10px 0;
}

.topic h1 a {
    color: var(--text-main);
}

.entry-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.entry-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.entry-content {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 24px;
}

.entry-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.user-info a {
    color: #53a245;
    /* Specific username color */
    margin-right: 5px;
}

/* Forms */
.submit-entry-container {
    margin-top: 30px;
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 5px;
}

.entry-submit-button {
    background-color: var(--accent-color);
    color: #e0e0e0;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.entry-submit-button:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
    color: var(--text-secondary);
}