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


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #b0c4de;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    color: orange;
    text-decoration: none;
}

/* Main Container Frame */
.site-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 155px auto;
    padding: 20px 30px;
    background: rgba(10, 15, 30, 0.65); /* Semi-transparent overlay to keep background visible */
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* Header Styling */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    margin-bottom: 20px;
}

/* Force reset any anchor wrappers around the logo */
header a, .logo a {
    text-decoration: none !important;
}

.logo {
    font-family: 'Orbitron', 'Eurostile', 'Segoe UI', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
}

.logo-pso {
    color: #7ee7ff !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
}

.logo-dot {
    color: #ffaa00 !important;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8), 0 0 20px rgba(255, 170, 0, 0.4) !important;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #d0e0f0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.main-nav a.active {
    border-bottom: 2px solid #00f0ff;
    padding-bottom: 4px;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(5, 10, 20, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    padding: 6px 15px 6px 15px;
    color: #ffffff;
    font-size: 0.85rem;
    width: 450px;
    outline: none;
}

.search-input::placeholder {
    color: #6c7a9c;
}

.search-icon {
    position: absolute;
    right: 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Layout Grid Sections */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-section {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
}


/* Update your existing .hero-window-slot to handle the background image and layout */
.hero-window-slot {
    position: relative;
    min-height: 377px;
    background: url('/images/hero.jpeg') no-repeat;
    background-size: contain;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 45px;
}

/* Optional subtle dark gradient on the left so white text pops clearly */
.hero-window-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.85) 30%, rgba(5, 10, 20, 0));
    pointer-events: none;
    z-index: 1;
}

/* Hero Content Positioning */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

/* Typography matching the mockup */
.hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-brand {
    color: #00f0ff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* Sci-Fi Button Styling */
.hero-btn {
    display: inline-block;
    background: rgba(10, 20, 35, 0.85);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 24px;
    text-decoration: none;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.hero-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    color: #00f0ff;
}

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reg-box {
  width:350px;
}
/* Panel Box Styling */
.panel-box {
    background: rgba(12, 18, 35, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

.panel-title {
    background: rgba(20, 30, 55, 0.8);
    color: #d8e8ff;
    font-size: 1.25rem;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.panel-content {
    padding: 12px;
    font-size: 0.85rem;
}

.panel-content ul {
    list-style: none;
}

.panel-content ul li {
    margin-bottom: 6px;
}

.panel-content ul li a {
    color: #8ab4f8;
    text-decoration: none;
}

.panel-content ul li a:hover {
    text-decoration: underline;
}

.stats-content p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

/* Bottom Section */
.bottom-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bottom-panel .panel-content {
    height: 160px;
}

.placeholder-box {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(0, 240, 255, 0.15);
}

/* Footer Styling */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    font-size: 0.75rem;
    color: #6c7a9c;
}

.footer-right {
    display: flex;
    gap: 15px;
}

.footer-right a {
    color: #6c7a9c;
    text-decoration: none;
}

.footer-right a:hover {
    color: #00f0ff;
}

/* Forums Layout Structure */
.forums-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forums-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 20px;
}

.forums-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forum-category-box {
    overflow: hidden;
}

.flex-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapse-icon {
    cursor: pointer;
    color: #00f0ff;
    font-weight: bold;
}

/* Individual Board Rows */
.board-row {
    display: grid;
    grid-template-columns: 45px 1fr 100px 220px;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
    transition: background 0.2s ease;
}

.board-row:last-child {
    border-bottom: none;
}

.board-row:hover {
    background: rgba(0, 240, 255, 0.03);
}

.board-icon-slot {
    display: flex;
    justify-content: center;
}

.board-title {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.board-title:hover {
    color: #00f0ff;
    text-decoration: underline;
}

.board-desc {
    font-size: 0.75rem;
    color: #6c7a9c;
    margin-top: 2px;
}

.board-stats {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 0.9rem;
    font-weight: bold;
    color: #d8e8ff;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c7a9c;
}

.board-latest {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(0, 240, 255, 0.1);
}

.mini-avatar {
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    flex-shrink: 0;
}

.latest-details {
    overflow: hidden;
}

.latest-thread {
    display: block;
    color: #b0c4de;
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-thread:hover {
    color: #00f0ff;
    text-decoration: underline;
}

.latest-meta {
    display: block;
    font-size: 0.7rem;
    color: #6c7a9c;
}

/* Sidebar Widgets Specifics */
.server-status-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #b0c4de;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
}

.status-badge.online {
    background: rgba(0, 255, 128, 0.15);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.status-divider {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    margin: 4px 0;
}

.status-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 10px;
    background: rgba(5, 10, 20, 0.4);
    padding: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.s-val {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffaa00;
}

.s-lbl {
    display: block;
    font-size: 0.7rem;
    color: #6c7a9c;
}

/* New Topics List Widget */
.new-topics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.new-topic-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.topic-icon-dot {
    width: 6px;
    height: 6px;
    background: #00f0ff;
    border-radius: 50%;
    margin-top: 6px;
    box-shadow: 0 0 6px #00f0ff;
    flex-shrink: 0;
}

.topic-info {
    flex-grow: 1;
    overflow: hidden;
}

.topic-link {
    display: block;
    color: #8ab4f8;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
}

.topic-link:hover {
    color: #00f0ff;
    text-decoration: underline;
}

.topic-author {
    display: block;
    font-size: 0.7rem;
    color: #6c7a9c;
    margin-top: 2px;
}

.reply-count {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Enhanced Database UI Styles */
.database-top-bar {
    margin-bottom: 20px;
}

.filter-control-panel {
    margin-bottom: 25px;
    background: rgba(10, 18, 32, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.db-filter-form {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 20px;
    align-items: flex-end;
}

/* Additional Home Feed Styles */
.dynamic-link-list, .dynamic-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dynamic-link-list li a {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dynamic-link-list li a:hover {
    color: #00f0ff;
    text-decoration: underline;
}

.list-row-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-row-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.row-main-link {
    color: #00f0ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.row-main-link:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.row-sub-text {
    font-size: 0.78rem;
    color: #8899ac;
}

.rarity-highlight {
    color: #ffaa00;
    letter-spacing: 1px;
}

.no-data-text {
    color: #667788;
    font-size: 0.85Nrem;
    font-style: italic;
}

.bottom-panel .panel-content {
    min-height: 300px;
}

/* Floating Top Bar Container */
.floating-audio-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.9);
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 25px;
    z-index: 9999;
}

/* Floating Sound Icon Button */
#sound-toggle-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#sound-toggle-btn:hover {
    background: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    color: #ffffff;
}

@media(max-width: 900px) {
    .db-filter-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #00f0ff;
    font-weight: 600;
}

.db-select, .db-search-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.db-select:focus, .db-search-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.db-filter-btn {
    padding: 10px 22px;
    cursor: pointer;
    white-space: nowrap;
}

.reset-filter-btn {
    padding: 10px 15px;
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ff4d4d;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.reset-filter-btn:hover {
    background: rgba(255, 77, 77, 0.3);
}

/* Database Table Layout */
.database-results-panel {
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.entry-count-badge {
    font-size: 0.75rem;
    color: #8899ac;
    background: rgba(0, 240, 255, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.db-table-wrapper {
    overflow-x: auto;
}

.db-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.db-data-table th {
    background: rgba(12, 22, 38, 0.95);
    color: #8899ac;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    padding: 12px 18px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
}

.db-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.db-row:hover {
    background: rgba(0, 240, 255, 0.06);
}

.db-data-table td {
    padding: 14px 18px;
    vertical-align: middle;
}

/* Table Columns */
.col-icon {
    width: 60px;
    text-align: center;
}

.item-icon-slot {
    width: 36px;
    height: 36px;
    background: rgba(3, 7, 14, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.default-icon-placeholder {
    width: 16px;
    height: 16px;
    background: rgba(0, 240, 255, 0.4);
    border-radius: 2px;
}

.item-link-name {
    color: #00f0ff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.item-link-name:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.type-pill {
    background: rgba(100, 150, 255, 0.15);
    border: 1px solid rgba(100, 150, 255, 0.3);
    color: #8ab4f8;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.rarity-stars {
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.rarity-standard {
    color: #a0aec0;
}

.rarity-rare {
    color: #ffaa00;
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
}

.rarity-ultimate {
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

.availability-text {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.empty-db-state {
    text-align: center;
    padding: 40px !important;
    color: #8899ac;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-icon {
    font-size: 1.8rem;
}

/* Guides Page Specific Layout */
.guides-grid-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
    align-items: start;
}

@media(max-width: 960px) {
    .guides-grid-layout {
        grid-template-columns: 1fr;
    }
}

.guides-feed-panel {
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.guides-list {
    display: flex;
    flex-direction: column;
}

.guide-card-item {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease;
}

.guide-card-item:last-child {
    border-bottom: none;
}

.guide-card-item:hover {
    background: rgba(0, 240, 255, 0.05);
}

.guide-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.guide-title-link {
    color: #00f0ff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-title-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.guide-rating {
    color: #ffaa00;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
}

.guide-meta-bar {
    font-size: 0.8rem;
    color: #8899ac;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.guide-meta-bar strong {
    color: #cbd5e1;
}

.category-inline-link {
    color: #8ab4f8;
    text-decoration: none;
}

.category-inline-link:hover {
    text-decoration: underline;
}

.guide-snippet {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

/* Sidebar Styling */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-cat-link {
    display: block;
    padding: 10px 14px;
    background: rgba(5, 10, 20, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar-cat-link:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #ffffff;
    padding-left: 18px;
}

/* Gallery Specific Styles */
.gallery-results-panel {
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: rgba(5, 10, 20, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: #00f0ff;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.25);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #020408;
    overflow: hidden;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(3, 7, 14, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gallery-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery-item-title {
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-author {
    font-size: 0.8rem;
    color: #8899ac;
}

.gallery-author strong {
    color: #cbd5e1;
}

/* Responsive layout adjustments for smaller screens */
@media(max-width: 1000px) {
    .forums-grid {
        grid-template-columns: 1fr;
    }
    .board-row {
        grid-template-columns: 40px 1fr 80px;
    }
    .board-latest {
        display: none;
    }
}

/* ==========================================
   ADDED MOBILE-FRIENDLY & TABLET RESPONSIVE CSS
   ========================================== */

@media (max-width: 1200px) {
    .site-wrapper {
        margin: 40px 20px;
        padding: 15px 20px;
    }

    .top-section {
        grid-template-columns: 1fr;
    }

    .bottom-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

    .forums-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forums-action-wrapper {
        width: 100%;
    }

    .forums-action-wrapper .hero-btn {
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }

    .site-wrapper {
        margin: 0;
        border: none;
        border-radius: 0;
        min-height: 100vh;
        padding: 12px;
    }

    .hero-window-slot {
        min-height: 280px;
        padding-left: 20px;
        background-size: cover;
    }

    .hero-window-slot::before {
        width: 100%;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .site-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }

    /* Stack item & guide detail grids */
    .item-detail-grid,
    .guide-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .top-section {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
  }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .main-nav ul {
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}
