/*
Theme Name: einsnews
Theme URI: https://github.com/upi/newstheme
Author: Antigravity
Description: A lightweight, responsive, and functional Hacker News clone for WordPress branded as einsnews.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: einsnews
*/

body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10pt;
    color: #828282;
    background-color: #f6f6ef;
    margin: 0;
    padding: 0;
}

#page {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f6f6ef;
}

@media only screen and (max-width: 768px) {
    #page {
        width: 100%;
    }
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background-color: #ff6600;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-box {
    border: 1px solid #fff;
    width: 18px;
    height: 18px;
    background-color: #ff6600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.site-title {
    font-weight: bold;
    color: #000;
}

.site-title a {
    color: #000;
    font-weight: bold;
}

/* Navbar Menu Styling for WordPress Menu */
.nav-links {
    display: inline-flex;
    align-items: center;
    font-size: 10pt;
}

.nav-links > div {
    display: inline-flex;
    align-items: center;
}

.nav-links ul, 
.nav-links .menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.nav-links li, 
.nav-links .menu-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links li:not(:last-child)::after,
.nav-links .menu-item:not(:last-child)::after {
    content: "|" !important;
    margin-left: 8px !important;
    color: #000 !important;
}

.nav-links li a,
.nav-links .menu-item a {
    color: #000 !important;
    text-decoration: none !important;
}

.nav-links li a:hover,
.nav-links .menu-item a:hover {
    text-decoration: underline !important;
}

.header-right {
    font-size: 10pt;
    color: #000;
}

.header-right a {
    color: #000;
}

/* Post list */
.post-list {
    padding: 10px 0 10px 8px;
    list-style: none;
    margin: 0;
}

.post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    line-height: 1.2;
}

.post-rank {
    width: 25px;
    text-align: right;
    margin-right: 5px;
    color: #828282;
    font-size: 10pt;
}

.upvote-container {
    width: 15px;
    margin-right: 5px;
    text-align: center;
    padding-top: 2px;
}

.upvote-btn {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,15 90,85 10,85" fill="%23828282"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    vertical-align: middle;
}

.upvote-btn.voted {
    visibility: hidden;
}

.post-content-container {
    flex-grow: 1;
}

.post-title-row {
    font-size: 10pt;
}

.post-title-row a.post-title {
    color: #000;
}

.post-title-row .post-domain {
    font-size: 8pt;
    color: #828282;
}

.post-meta-row {
    font-size: 7pt;
    color: #828282;
    margin-top: 2px;
}

.post-meta-row a {
    color: #828282;
}

.more-link-container {
    padding: 10px 0 15px 40px;
}

.more-link {
    font-size: 10pt;
    color: #000;
    font-weight: bold;
}

/* Single View */
.single-post-container {
    padding: 15px;
}

.post-text-content {
    font-size: 9pt;
    color: #000000;
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Comments */
.comments-container {
    margin-top: 20px;
}

.comment-form-container {
    margin-bottom: 25px;
}

.comment-form-container textarea {
    width: 60%;
    min-height: 100px;
    font-family: monospace;
    font-size: 10pt;
    margin-bottom: 10px;
    display: block;
}

@media only screen and (max-width: 768px) {
    .comment-form-container textarea {
        width: 95%;
    }
}

.comment-form-container input[type="submit"] {
    background-color: #f6f6ef;
    border: 1px solid #828282;
    padding: 2px 6px;
    font-size: 9pt;
    cursor: pointer;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-top: 15px;
    line-height: 1.3;
}

.comment-meta {
    font-size: 8pt;
    color: #828282;
    margin-bottom: 4px;
}

.comment-meta a {
    color: #828282;
}

.comment-text {
    font-size: 9pt;
    color: #000;
    margin-bottom: 5px;
}

.comment-reply-link {
    font-size: 8pt;
    color: #828282;
    text-decoration: underline;
}

/* Nested comments margin styling */
.children {
    list-style: none;
    padding-left: 20px;
    border-left: 1px dotted #dedede;
    margin-top: 10px;
}

/* Submit Form */
.submit-form-container {
    padding: 15px;
}

.submit-form-table {
    border-collapse: collapse;
}

.submit-form-table td {
    padding: 5px;
    font-size: 10pt;
    color: #828282;
}

.submit-form-table input[type="text"],
.submit-form-table input[type="url"],
.submit-form-table textarea {
    width: 400px;
    padding: 3px;
    font-family: inherit;
    font-size: 10pt;
    border: 1px solid #828282;
}

@media only screen and (max-width: 600px) {
    .submit-form-table input[type="text"],
    .submit-form-table input[type="url"],
    .submit-form-table textarea {
        width: 100%;
    }
    .submit-form-table td {
        display: block;
    }
}

.submit-form-table input[type="submit"] {
    background-color: #f6f6ef;
    border: 1px solid #828282;
    padding: 2px 6px;
    font-size: 10pt;
    cursor: pointer;
}

.footer-nav {
    border-top: 2px solid #ff6600;
    text-align: center;
    padding: 15px 0;
    font-size: 8pt;
    color: #828282;
    margin-top: 30px;
}

.footer-nav a {
    color: #828282;
}

.footer-search {
    margin-top: 10px;
}

.footer-search input[type="search"] {
    border: 1px solid #828282;
    font-size: 9pt;
    padding: 2px;
}

/* Utility to hide elements */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
