body {
    background: #2e2e2e;
    color: white;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}


#header {
    padding: 10px 20px;
    background: #1e1e1e;
    border-bottom: 1px solid #444;
}

#header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#header a:hover {
    text-decoration: underline;
}


#bar {
    background: #007bff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

#bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#bar-left a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#bar-left a:hover {
    text-decoration: underline;
}

#bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    color: white;
}

#bar-right .brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

#bar-right .brand-text {
    display: flex;
    flex-direction: column;
}

#bar-right h2 {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: bold;
}

#bar-right .tagline {
    font-size: 12px;
    opacity: 0.9;
}

/* SEARCH BAR */
#bar-search {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex: 1;
}

#search {
    padding: 10px 14px;
    font-size: 14px;
    background: #f7f7f7;
    border: 2px solid #b5b5b5;
    color: #222;
    border-radius: 0;
    outline: none;
    width: 300px;
    box-sizing: border-box;
}

#search-btn {
    padding: 10px 18px;
    font-size: 14px;
    background: #efefef;
    border: 2px solid #b5b5b5;
    color: #222;
    border-radius: 0;
    cursor: pointer;
    margin-left: -2px;
    font-weight: bold;
}

#search-btn:hover {
    background: #e2e2e2;
}

/* POSTS & CONTAINERS */
#posts {
    margin: 20px auto;
    max-width: 900px;
}

#pagination {
    margin: 20px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}


.card {
    border: 2px solid white;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    background: #242424;
    border-radius: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.card-desc {
    font-size: 14px;
    color: #e0e0e0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-tags {
    font-size: 13px;
    color: #cfcfcf;
    margin-top: 6px;
    display: inline-block;
}

.card-downloads {
    font-size: 13px;
    color: #cfcfcf;
    margin-top: 6px;
    display: inline-block;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.card-buttons a {
    display: block;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 0;
    font-weight: bold;
}

.card-buttons a:hover {
    background: #0056b3;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.card-user img {
    width: 26px;
    height: 26px;
    border-radius: 0;
    object-fit: cover;
    border: 1px solid #007bff;
}

.card-user span {
    font-size: 14px;
    color: #8f87f8;
    font-weight: bold;
}

.titlebar {
    background: #007bff;
    padding: 8px 12px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    border-radius: 0;
}


.form-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 15px;
}

.auth-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.auth-card {
    flex: 1;
    min-width: 300px;
    border: 2px solid white;
    padding: 20px;
    background: #242424;
    border-radius: 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px;
    background: #1e1e1e;
    border: 2px solid #555;
    color: white;
    border-radius: 0;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-family: inherit;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus {
    border-color: #007bff;
}

input[disabled] {
    background: #121212;
    color: #888;
    border-color: #333;
}

button[type="submit"],
.btn-primary {
    width: 100%;
    padding: 10px 20px;
    background: #007bff;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    display: inline-block;
    font-size: 14px;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background: #0056b3;
}

.btn-danger {
    width: 100%;
    padding: 10px 20px;
    background: #dc3545;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    margin-top: 15px;
    font-size: 14px;
}

.btn-danger:hover {
    background: #bd2130;
}


.show-mirror-btn {
    font-size: 12px;
    color: #64b5f6;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
    display: block;
    margin-top: 2px;
}

.show-mirror-btn:hover {
    color: #90caf9;
}

.mirror-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.mirror-overlay-content {
    background: #1e1e1e;
    border: 2px solid #007bff;
    padding: 20px;
    width: 90%;
    max-width: 480px;
    border-radius: 0;
    position: relative;
    box-shadow: none;
    color: white;
}

.mirror-overlay-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.mirror-overlay-close:hover {
    color: white;
}

.mirror-overlay-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #ffffff;
}

.mirror-overlay-input {
    width: 100%;
    padding: 10px;
    background: #2e2e2e;
    border: 2px solid #444;
    color: #64b5f6;
    font-family: monospace;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 15px;
    border-radius: 0;
}

.mirror-overlay-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.mirror-overlay-actions button,
.mirror-overlay-actions a {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
}

.mirror-overlay-actions button:hover,
.mirror-overlay-actions a:hover {
    background: #0056b3;
}

/* CUSTOM ALERT MODAL */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.custom-alert-box {
    background: #0d0d0d;
    padding: 20px;
    width: 90%;
    max-width: 420px;
    border-radius: 0;
    box-shadow: none;
    color: white;
}

.custom-alert-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.custom-alert-message {
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.custom-alert-btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0;
}

.custom-alert-btn:hover {
    filter: brightness(1.2);
}

/* PRIVACY POLICY MODAL */
.privacy-modal-box {
    max-width: 520px;
    width: 90%;
    border: 2px solid #007bff;
    background: #0d0d0d;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.privacy-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-weight: bold;
}

.privacy-modal-close:hover {
    color: #ffffff;
}

.privacy-modal-body {
    font-size: 13px;
    line-height: 1.6;
    color: #cfcfcf;
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 8px;
    margin-bottom: 20px;
}

.privacy-modal-body p {
    margin: 0 0 12px 0;
}

.privacy-modal-body strong {
    color: #ffffff;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 6px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: #007bff;
}


.card-context-menu {
    position: fixed;
    background: #0d0d0d;
    border: 2px solid #007bff;
    box-shadow: none;
    z-index: 10000;
    display: none;
    min-width: 140px;
    border-radius: 0;
}

.context-menu-item {
    padding: 10px 14px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #222;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: #007bff;
}

.context-menu-item.danger:hover {
    background: #dc3545;
}


#footer {
    background: #181818;
    border-top: 2px solid #007bff;
    margin-top: 50px;
    padding: 30px 20px 20px 20px;
    color: #cccccc;
    font-size: 14px;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}

.footer-seo {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333333;
}

.footer-seo h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-seo p {
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 12px;
}

.footer-seo p strong {
    color: #007bff;
}

.footer-col a  {
    color: #9d94cc;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 12px;
    border-left: 3px solid #007bff;
    padding-left: 8px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #888888;
    text-decoration: none;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer-small {
    font-size: 12px;
    color: #888888;
    line-height: 1.4;
    margin-bottom: 12px;
}

.footer-copyright {
    display: block;
    font-size: 11px;
    color: #666666;
}

.card-votes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #1a1a1a;
  border: 1px solid #444;
  padding: 6px 10px;
  box-sizing: border-box;
  margin-top: 4px;
}

.vote-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.vote-btn:hover {
  filter: brightness(1.4);
}

.vote-btn:active {
  transform: scale(0.88);
}

.vote-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: opacity(0.65);
  transition: filter 0.15s ease;
}

.vote-rotated {
  transform: rotate(180deg);
}

.vote-btn:hover .vote-icon {
  filter: opacity(1) brightness(1.2);
}


.vote-btn.vote-up.active .vote-icon {
  filter: invert(34%) sepia(97%) saturate(1982%) hue-rotate(202deg) brightness(102%) contrast(106%) opacity(1);
}

.vote-btn.vote-down.active .vote-icon {
  filter: invert(28%) sepia(85%) saturate(4156%) hue-rotate(343deg) brightness(91%) contrast(92%) opacity(1);
}

.card-score {
  font-size: 13px;
  font-weight: bold;
  color: #cfcfcf;
  min-width: 24px;
  text-align: center;
  user-select: none;
}




