/* =============================================
   AGENT BAKER - Retro Y2K Stylesheet
   Kolory: #A68E51 (złoto), #000, #FFF
   Fonty: Tiny5 (nagłówki), Arial (reszta)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Tiny5&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #FFFFFF;
    background-color: #000000;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(166, 142, 81, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(166, 142, 81, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23A68E51' fill-opacity='0.03'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
}

a {
    color: #A68E51;
    text-decoration: none;
}
a:hover {
    color: #C4AC6F;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* === FONT CLASSES === */
h1, h2, h3, h4, h5, h6,
.font-retro,
.nav-menu a,
.btn,
.section-title {
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === LAYOUT WRAPPER === */
.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    border-left: 2px solid #A68E51;
    border-right: 2px solid #A68E51;
    background: #0a0a0a;
    box-shadow: 0 0 30px rgba(166, 142, 81, 0.15);
    min-height: 100vh;
}

/* === TOP LOGIN BAR === */
.login-bar {
    background: linear-gradient(180deg, #1a1a1a, #111);
    border-bottom: 1px solid #A68E51;
    padding: 4px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    min-height: 30px;
}

.login-bar input[type="text"],
.login-bar input[type="password"] {
    background: #000;
    border: 1px solid #333;
    color: #A68E51;
    padding: 2px 6px;
    font-size: 11px;
    width: 120px;
    font-family: Arial, sans-serif;
}

.login-bar input:focus {
    border-color: #A68E51;
    outline: none;
    box-shadow: 0 0 3px rgba(166, 142, 81, 0.5);
}

.login-bar label {
    color: #888;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
}

.login-bar .btn-sm {
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    background: #A68E51;
    color: #000;
    border: none;
    padding: 2px 10px;
    font-size: 10px;
    cursor: pointer;
    letter-spacing: 1px;
}

.login-bar .btn-sm:hover {
    background: #C4AC6F;
}

.login-bar .user-welcome {
    color: #A68E51;
    font-size: 11px;
}

.login-bar .user-welcome a {
    color: #C4AC6F;
    margin-left: 8px;
}

.login-bar .login-links a {
    color: #888;
    margin-left: 6px;
    font-size: 11px;
}
.login-bar .login-links a:hover {
    color: #A68E51;
}

/* === HEADER === */
.site-header {
    background: #000;
    border-bottom: 3px solid #A68E51;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-header .header-banner {
    display: block;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    text-align: left;
}

.header-overlay h1 {
    font-size: 28px;
    color: #A68E51;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
    margin: 0;
}

.header-overlay .tagline {
    color: #888;
    font-size: 11px;
    font-family: Arial, sans-serif;
    text-transform: none;
}

/* === NAVIGATION === */
.nav-menu {
    background: linear-gradient(180deg, #1a1507, #0d0b04);
    border-bottom: 2px solid #A68E51;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    color: #A68E51;
    font-size: 13px;
    border-right: 1px solid rgba(166, 142, 81, 0.2);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.nav-menu a:first-child {
    border-left: 1px solid rgba(166, 142, 81, 0.2);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #A68E51;
    color: #000;
    text-decoration: none;
}

.nav-menu a.active {
    box-shadow: inset 0 -3px 0 #C4AC6F;
}

/* === MAIN CONTENT AREA === */
.content-wrapper {
    display: flex;
    gap: 0;
    min-height: 600px;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 15px;
    border-right: 1px solid #222;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background: #0d0d0d;
    border-left: 2px solid #A68E51;
    padding: 0;
}

/* === SECTION TITLES (retro box) === */
.section-title {
    background: linear-gradient(180deg, #A68E51, #8A7442);
    color: #000;
    padding: 6px 12px;
    font-size: 13px;
    margin: 0 0 10px 0;
    border: 1px solid #C4AC6F;
    position: relative;
}

.section-title::before {
    content: '★ ';
}
.section-title::after {
    content: ' ★';
}

/* === RETRO BOXES === */
.retro-box {
    border: 1px solid #333;
    margin-bottom: 15px;
    background: #111;
}

.retro-box .box-header {
    background: linear-gradient(180deg, #A68E51, #8A7442);
    color: #000;
    padding: 5px 10px;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid #C4AC6F;
}

.retro-box .box-content {
    padding: 10px;
}

/* === SIDEBAR === */
.sidebar-section {
    border-bottom: 1px solid #222;
}

.sidebar-section .sidebar-title {
    background: linear-gradient(180deg, #1a1507, #0d0b04);
    color: #A68E51;
    padding: 8px 10px;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid #A68E51;
    border-top: 1px solid #A68E51;
}

.sidebar-section .sidebar-content {
    padding: 8px;
    font-size: 12px;
}

/* === CHAT WIDGET === */
.chat-widget {
    background: #080808;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 6px;
    font-size: 11px;
    line-height: 1.5;
    border-bottom: 1px solid #222;
    scrollbar-width: thin;
    scrollbar-color: #A68E51 #111;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: #111;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #A68E51;
}

.chat-msg {
    padding: 2px 0;
    border-bottom: 1px solid #1a1a1a;
    word-wrap: break-word;
}

.chat-msg .chat-time {
    color: #555;
    font-size: 9px;
}

.chat-msg .chat-user {
    font-weight: bold;
    color: #A68E51;
}

.chat-msg .chat-user.guest {
    color: #888;
    font-style: italic;
}

.chat-msg .chat-text {
    color: #ccc;
}

.chat-input-area {
    padding: 6px;
    display: flex;
    gap: 4px;
}

.chat-input-area input[type="text"] {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 4px 6px;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

.chat-input-area input:focus {
    border-color: #A68E51;
    outline: none;
}

.chat-input-area button {
    background: #A68E51;
    color: #000;
    border: none;
    padding: 4px 10px;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    font-size: 10px;
    cursor: pointer;
    letter-spacing: 1px;
}

.chat-input-area button:hover {
    background: #C4AC6F;
}

.chat-guest-join {
    padding: 8px;
    text-align: center;
}

.chat-guest-join input {
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 4px 6px;
    font-size: 11px;
    width: 100%;
    margin-bottom: 4px;
}

.chat-guest-join .btn-sm {
    width: 100%;
}

/* === EMOTICON PICKER === */
.emoticon-picker {
    display: none;
    background: #1a1a1a;
    border: 1px solid #A68E51;
    padding: 6px;
    position: absolute;
    bottom: 40px;
    left: 6px;
    right: 6px;
    z-index: 100;
    max-height: 120px;
    overflow-y: auto;
}

.emoticon-picker.active {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.emoticon-picker img {
    cursor: pointer;
    width: 20px;
    height: 20px;
    transition: transform 0.15s;
}

.emoticon-picker img:hover {
    transform: scale(1.5);
}

/* === STATS SIDEBAR === */
.stat-list {
    list-style: none;
    font-size: 11px;
}

.stat-list li {
    padding: 3px 0;
    border-bottom: 1px dotted #222;
    display: flex;
    justify-content: space-between;
}

.stat-list li .stat-val {
    color: #A68E51;
    font-weight: bold;
}

/* === SOCIAL LINKS === */
.social-links a {
    display: block;
    padding: 5px 0;
    color: #A68E51;
    font-size: 12px;
    border-bottom: 1px dotted #222;
}

.social-links a:hover {
    color: #C4AC6F;
    padding-left: 5px;
    transition: padding-left 0.2s;
}

.social-links a::before {
    content: '► ';
    font-size: 8px;
}

/* === VISITOR COUNTER (retro) === */
.visitor-counter {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #222;
    font-size: 10px;
    color: #666;
}

.visitor-counter .counter-digits {
    display: inline-flex;
    gap: 1px;
    margin-top: 4px;
}

.visitor-counter .digit {
    background: #111;
    border: 1px solid #A68E51;
    color: #A68E51;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    width: 18px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border: 2px solid #A68E51;
    background: linear-gradient(180deg, #A68E51, #8A7442);
    color: #000;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn:hover {
    background: linear-gradient(180deg, #C4AC6F, #A68E51);
    color: #000;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(166, 142, 81, 0.4);
}

.btn-large {
    font-size: 18px;
    padding: 15px 40px;
}

.btn-outline {
    background: transparent;
    color: #A68E51;
}

.btn-outline:hover {
    background: #A68E51;
    color: #000;
}

.btn-danger {
    border-color: #cc3333;
    background: linear-gradient(180deg, #cc3333, #aa2222);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(180deg, #ee4444, #cc3333);
}

.btn-sm {
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    background: #A68E51;
    color: #000;
    border: 1px solid #C4AC6F;
    padding: 3px 10px;
    font-size: 10px;
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-sm:hover {
    background: #C4AC6F;
}

/* === FORMS === */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    color: #A68E51;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 10px;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.form-control:focus {
    border-color: #A68E51;
    outline: none;
    box-shadow: 0 0 5px rgba(166, 142, 81, 0.3);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A68E51' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

/* === FLASH MESSAGES === */
.flash {
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid;
    font-size: 12px;
}

.flash-success {
    background: #0a2e0a;
    border-color: #2e7d32;
    color: #66bb6a;
}

.flash-error {
    background: #2e0a0a;
    border-color: #c62828;
    color: #ef5350;
}

.flash-info {
    background: #0a1a2e;
    border-color: #1565c0;
    color: #42a5f5;
}

/* === NEWS/ARTICLES === */
.news-item {
    border: 1px solid #222;
    margin-bottom: 15px;
    background: #111;
    overflow: hidden;
}

.news-item .news-thumb {
    float: left;
    width: 120px;
    height: 80px;
    object-fit: cover;
    margin-right: 12px;
    border-right: 2px solid #A68E51;
}

.news-item .news-body {
    padding: 10px;
    overflow: hidden;
}

.news-item h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
}

.news-item h3 a {
    color: #A68E51;
}

.news-item h3 a:hover {
    color: #C4AC6F;
}

.news-item .news-meta {
    font-size: 10px;
    color: #666;
    margin-bottom: 5px;
}

.news-item .news-excerpt {
    font-size: 12px;
    color: #aaa;
}

.news-full {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.news-full img {
    max-width: 100%;
    border: 2px solid #A68E51;
    margin: 10px 0;
}

/* === FORUM === */
.forum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.forum-table th {
    background: linear-gradient(180deg, #A68E51, #8A7442);
    color: #000;
    padding: 6px 10px;
    text-align: left;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    border: 1px solid #C4AC6F;
}

.forum-table td {
    padding: 8px 10px;
    border: 1px solid #222;
    background: #111;
    vertical-align: top;
}

.forum-table tr:hover td {
    background: #1a1507;
}

.forum-table .category-name {
    font-weight: bold;
    font-size: 13px;
}

.forum-table .category-name a {
    color: #A68E51;
}

.forum-table .category-desc {
    font-size: 11px;
    color: #888;
}

.forum-table .topic-icon {
    width: 24px;
    text-align: center;
    color: #A68E51;
    font-size: 14px;
}

.forum-table .stat-cell {
    text-align: center;
    color: #A68E51;
    width: 70px;
    font-size: 12px;
}

.forum-table .last-post {
    width: 180px;
    font-size: 11px;
}

.forum-table .last-post a {
    font-size: 11px;
}

.forum-table .last-post .date {
    color: #666;
    font-size: 10px;
}

.topic-pinned td {
    background: #1a1507 !important;
    border-left: 3px solid #A68E51;
}

.topic-locked .topic-title::after {
    content: ' 🔒';
    font-size: 10px;
}

/* === FORUM POST === */
.forum-post {
    border: 1px solid #222;
    margin-bottom: 10px;
    display: flex;
    background: #111;
}

.forum-post .post-user {
    width: 160px;
    min-width: 160px;
    padding: 10px;
    background: #0a0a0a;
    border-right: 2px solid #222;
    text-align: center;
}

.forum-post .post-user .username {
    font-weight: bold;
    color: #A68E51;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.forum-post .post-user .avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #333;
    margin-bottom: 5px;
}

.forum-post .post-user .rank {
    font-size: 10px;
    display: block;
    margin-bottom: 3px;
}

.forum-post .post-user .post-count {
    font-size: 10px;
    color: #666;
}

.forum-post .post-body {
    flex: 1;
    min-width: 0;
}

.forum-post .post-header {
    background: #1a1a1a;
    padding: 6px 10px;
    font-size: 10px;
    color: #666;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
}

.forum-post .post-content {
    padding: 12px;
    line-height: 1.6;
    word-wrap: break-word;
    color: #ccc;
}

.forum-post .post-content img {
    max-width: 100%;
}

.forum-post .post-signature {
    border-top: 1px dashed #333;
    padding: 8px 12px;
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.forum-post .post-footer {
    background: #0d0d0d;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
}

.forum-post .post-actions a {
    font-size: 10px;
    margin-right: 10px;
    color: #666;
}

.forum-post .post-actions a:hover {
    color: #A68E51;
}

/* === VOTE BUTTONS === */
.vote-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vote-btn {
    background: none;
    border: 1px solid #333;
    color: #666;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.vote-btn:hover {
    border-color: #A68E51;
    color: #A68E51;
}

.vote-btn.voted-up {
    color: #66bb6a;
    border-color: #66bb6a;
}

.vote-btn.voted-down {
    color: #ef5350;
    border-color: #ef5350;
}

.vote-score {
    font-weight: bold;
    color: #A68E51;
    min-width: 20px;
    text-align: center;
    font-size: 12px;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 8px 0;
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    border-bottom: 1px dotted #222;
}

.breadcrumbs a {
    color: #888;
}

.breadcrumbs a:hover {
    color: #A68E51;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #444;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #333;
    background: #111;
    color: #A68E51;
    font-size: 11px;
    text-decoration: none;
}

.page-btn:hover {
    background: #1a1507;
    border-color: #A68E51;
    text-decoration: none;
}

.page-btn.active {
    background: #A68E51;
    color: #000;
    border-color: #C4AC6F;
}

.page-dots {
    padding: 4px 6px;
    color: #555;
    font-size: 11px;
}

/* === SCREENSHOTS GALLERY === */
.screenshots-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.screenshot-thumb {
    width: calc(20% - 7px);
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 2px solid #333;
    transition: border-color 0.2s;
}

.screenshot-thumb:hover {
    border-color: #A68E51;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === DOWNLOAD PAGE === */
.download-hero {
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg, #111, #0a0a0a);
    border: 2px solid #A68E51;
    margin-bottom: 20px;
}

.download-hero h2 {
    font-size: 24px;
    color: #A68E51;
    margin-bottom: 5px;
}

.download-hero .version-info {
    color: #888;
    font-size: 12px;
    margin-bottom: 20px;
}

.download-hero .btn-large {
    display: inline-block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(166, 142, 81, 0.3); }
    50% { box-shadow: 0 0 25px rgba(166, 142, 81, 0.6); }
}

/* === DONATION BOX === */
.donation-box {
    background: #111;
    border: 2px solid #A68E51;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.donation-box h3 {
    color: #A68E51;
    margin-bottom: 10px;
}

.donation-amounts {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.donation-amounts label {
    cursor: pointer;
}

.donation-amounts input[type="radio"] {
    display: none;
}

.donation-amounts .amount-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #A68E51;
    font-family: 'Tiny5', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.donation-amounts input:checked + .amount-btn {
    background: #A68E51;
    color: #000;
    border-color: #C4AC6F;
}

.donation-amounts .amount-btn:hover {
    border-color: #A68E51;
}

/* === PROFILE PAGE === */
.profile-header {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #111;
    border: 1px solid #222;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #A68E51;
}

.profile-info h2 {
    color: #A68E51;
    margin-bottom: 5px;
}

.profile-info .rank-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-info .role-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #A68E51;
    color: #000;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 12px;
}

.profile-stats span {
    color: #888;
}

.profile-stats strong {
    color: #A68E51;
}

/* === ABOUT PAGE === */
.about-section {
    margin-bottom: 25px;
}

.about-section h2 {
    color: #A68E51;
    border-bottom: 2px solid #A68E51;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.about-screenshot {
    border: 3px solid #A68E51;
    margin: 10px 0;
    box-shadow: 0 0 15px rgba(166, 142, 81, 0.2);
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

/* === FOOTER === */
.site-footer {
    background: #000;
    border-top: 3px solid #A68E51;
    padding: 15px;
    text-align: center;
    font-size: 11px;
    color: #666;
}

.site-footer a {
    color: #A68E51;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    margin: 0 10px;
}

.footer-best-viewed {
    font-size: 9px;
    color: #444;
    margin-top: 8px;
    font-style: italic;
}

/* === MARQUEE (retro) === */
.retro-marquee {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 3px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
    color: #A68E51;
}

.retro-marquee .marquee-inner {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* === BLINKING TEXT (retro) === */
.blink {
    animation: blink-anim 1s steps(2, start) infinite;
}

@keyframes blink-anim {
    to { visibility: hidden; }
}

/* === ADMIN PANEL === */
.admin-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 6px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #A68E51;
    font-size: 12px;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #A68E51;
    color: #000;
    text-decoration: none;
}

/* === EMOTICON IN CONTENT === */
.emoticon {
    vertical-align: middle;
    display: inline;
}

/* === WYSIWYG TOOLBAR === */
.editor-toolbar {
    background: #1a1a1a;
    border: 1px solid #333;
    border-bottom: none;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.editor-toolbar button {
    background: #222;
    border: 1px solid #444;
    color: #A68E51;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    min-width: 28px;
}

.editor-toolbar button:hover {
    background: #A68E51;
    color: #000;
}

.editor-toolbar select {
    background: #222;
    border: 1px solid #444;
    color: #A68E51;
    padding: 2px;
    font-size: 11px;
}

/* === WELCOME BOX (strona główna) === */
.welcome-box {
    padding: 20px;
    background: linear-gradient(135deg, #111, #1a1507);
    border: 2px solid #A68E51;
    margin-bottom: 20px;
    position: relative;
}

.welcome-box h2 {
    color: #A68E51;
    font-size: 20px;
    margin-bottom: 10px;
}

.welcome-box p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.6;
}

.welcome-box .logo-inline {
    float: right;
    width: 100px;
    margin: 0 0 10px 15px;
}

/* === LIGHTBOX (screenshoty) === */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #A68E51;
    box-shadow: 0 0 30px rgba(166, 142, 81, 0.3);
}

/* === RESPONSIVE (basic) === */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-width: auto;
        border-left: none;
        border-top: 2px solid #A68E51;
    }
    .forum-post {
        flex-direction: column;
    }
    .forum-post .post-user {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 2px solid #222;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }
    .screenshot-thumb {
        width: calc(33.33% - 6px);
    }
    .about-gallery {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        flex-direction: column;
    }
    .nav-menu a {
        border-right: none;
        border-bottom: 1px solid rgba(166, 142, 81, 0.2);
        text-align: center;
    }
}

/* === DECORATIVE ELEMENTS (retro) === */
.stars-divider {
    text-align: center;
    color: #A68E51;
    font-size: 10px;
    padding: 5px 0;
    letter-spacing: 3px;
}

.retro-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #A68E51, transparent);
    margin: 15px 0;
}

/* Under construction banner */
.under-construction {
    background: repeating-linear-gradient(
        45deg,
        #A68E51,
        #A68E51 10px,
        #000 10px,
        #000 20px
    );
    padding: 3px;
    text-align: center;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
}

.under-construction span {
    background: #000;
    color: #A68E51;
    padding: 4px 15px;
    display: inline-block;
}

/* === SEARCH RESULTS === */
.search-results .result-item {
    padding: 10px;
    border-bottom: 1px solid #222;
}

.search-results .result-item h3 {
    font-size: 14px;
    margin-bottom: 3px;
}

.search-results .result-item p {
    font-size: 12px;
    color: #888;
}

/* === TABLE GENERIC === */
.table-retro {
    width: 100%;
    border-collapse: collapse;
}

.table-retro th,
.table-retro td {
    padding: 6px 10px;
    border: 1px solid #222;
    font-size: 12px;
}

.table-retro th {
    background: #1a1a1a;
    color: #A68E51;
    font-family: 'Tiny5', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
}

.table-retro tr:hover td {
    background: #1a1507;
}

/* === BBCODE PREVIEW === */
.bbcode-preview {
    background: #0d0d0d;
    border: 1px solid #333;
    padding: 10px;
    margin-top: 10px;
    min-height: 60px;
    color: #ccc;
}

/* === MISC === */
.text-gold { color: #A68E51; }
.text-white { color: #FFFFFF; }
.text-muted { color: #666; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-small { font-size: 11px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* === SCREENSHOTS GRID 3 COLUMNS === */
.screenshots-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.screenshot-thumb-3col {
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 2px solid #333;
    transition: border-color 0.2s;
    background: #0a0a0a;
}

.screenshot-thumb-3col:hover {
    border-color: #A68E51;
}

.screenshot-thumb-3col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-thumb-3col .ss-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    font-size: 10px;
    padding: 3px 6px;
}

/* === SCREENSHOTS PAGE === */
.screenshots-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.screenshot-card {
    border: 1px solid #222;
    background: #111;
    overflow: hidden;
}

.screenshot-card .ss-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 2px solid #A68E51;
}

.screenshot-card .ss-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.screenshot-card .ss-info {
    padding: 8px;
    font-size: 11px;
}

.screenshot-card .ss-info .ss-desc {
    color: #ccc;
    margin-bottom: 4px;
}

.screenshot-card .ss-info .ss-meta {
    color: #666;
    font-size: 10px;
}

@media (max-width: 900px) {
    .screenshots-grid-3col,
    .screenshots-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .screenshots-grid-3col,
    .screenshots-page-grid {
        grid-template-columns: 1fr;
    }
}
