* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000; 
    color: #00ff00; 
    font-family: "Courier New", Monaco, monospace;
    font-size: 14px;
    padding: 20px;
}

.page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==========================================================================
   Search Section
   ========================================================================== */
.search-container {
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.25) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #001242 0%, #00041e 100%);
    padding: 15px;
    margin-bottom: 20px;
    border: 3px double #000000; 
}

.search-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00ffea; 
    text-shadow: 0 0 8px #00ffea;
    letter-spacing: 2px;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-bar {
    flex-grow: 1;
    padding: 10px;
    font-family: inherit;
    font-weight: bold;
    border: 2px solid #000000;
    background-color: #000000;
    color: #00ff00;
    outline: none;
}

.search-bar:focus {
    border-color: #00ffea;
    box-shadow: 0 0 8px rgba(0, 255, 234, 0.5);
}

.search-button {
    padding: 0 25px;
    font-family: inherit;
    font-weight: bold;
    background: linear-gradient(180deg, #2200ff 0%, #00008b 100%);
    color: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px #000000;
}

.search-button:hover {
    background: #00ffea;
    color: #000000;
    border-color: #000000;
    text-shadow: none;
}

/* ==========================================================================
   Window Grid Section
   ========================================================================== */
.window-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.window-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.window {
    display: flex;
    flex-direction: column;
}

.window-tab {
    background: linear-gradient(180deg, #002b80 0%, #0000ff 100%); 
    color: #ffffff;
    border: 2px solid #000000;
    border-bottom: none;
    padding: 6px 12px;
    align-self: flex-start;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.window-body {
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 3px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, #001242 0%, #00041e 100%); 
    border: 3px solid #000000;
    height: 220px; 
}

.window-link:hover .window-tab {
    background: linear-gradient(180deg, #00ffea 0%, #0077ff 100%); 
    color: #000000;
    border: 2px solid #000000;
    border-bottom: 0px; 
}

.window-link:hover .window-body {
    border-color: #000000;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2) 3px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, #030096 0%, #00041e 100%); 
}

/* Disabled State */
.window.disabled {
    cursor: not-allowed;
}

.window.disabled .window-tab {
    background: #333333;
    color: #666666;
    border-color: #000000;
}

.window.disabled .window-body {
    background: #111111;
    border: 3px dashed #333333; 
}

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 40px); 
    overflow: hidden;
}

.post-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto; 
    padding-right: 10px;
    height: 100%;
}

/* Scrollbar Customization */
.post-column::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 10px;
}

.post-column::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #000000;
}

.post-column::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #002b80 0%, #0000ff 100%);
    border: 1px solid #000000;
}

.blog-post {
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2) 3px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, #001242 0%, #00041e 100%);
    border: 3px solid #000000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.post-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #000000;
    padding-bottom: 10px;
}

.post-title {
    font-size: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.post-date {
    font-size: 12px;
    color: #00ffea;
    margin-top: 4px;
}

.post-content {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 2px solid #000000;
    margin: 10px 0;
}

.post-footer {
    border-top: 1px dashed #333333;
    padding-top: 15px;
    margin-top: 20px;
    color: #888888;
    font-size: 13px;
}

/* ==========================================================================
   Sidebar & Profile Section
   ========================================================================== */
.sidebar-column {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: max-content; 
}

.profile-card {
    border: 3px solid #000000;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2) 3px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, #001242 0%, #00041e 100%);
    padding: 20px;
    text-align: center;
}

.avatar-box {
    border: 2px solid #000000;
    width: 140px;
    height: 160px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.avatar-box svg {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.username {
    color: #00ffea; 
    font-size: 18px;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #00ffea;
}

.user-stats {
    color: #a0a0a0;
    font-size: 12px;
}

.message-btn {
    width: 100%;
    background: linear-gradient(180deg, #001242 0%, #00041e 100%);
    border: 3px solid #000000;
    color: #ffffff;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
}

.message-btn:hover {
    border-color: #000000;
    color: #00ffea;
    background: #0000ff;
}

/* ==========================================================================
   Chat Section
   ========================================================================== */
.chat-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
}

.chat-window {
    display: flex;
    flex-direction: column;
    border: 3px solid #002fff;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2) 3px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, #001242 0%, #00041e 100%);
}

.chat-header {
    background: linear-gradient(180deg, #002b80 0%, #0000ff 100%);
    color: #ffffff;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 2px solid #000000;
}

.window-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    cursor: pointer;
}

.control-close {
    color: #ff0000;
    font-weight: bold;
}

.control-close:hover {
    text-shadow: 0 0 5px #ff0000;
}

.chat-messages {
    height: 300px; 
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffffff;
    background-color: #000000;
}

.timestamp {
    color: #888888;
    margin-right: 5px;
}

.name-blue {
    color: #00ffea;
    font-weight: bold;
}

.name-purple {
    color: #b066ff;
    font-weight: bold;
}

.name-pink {
    color: #ff00c3;
    font-weight: bold;
}

.chat-footer {
    border-top: 2px solid #0f0095;
    padding: 12px;
    background-color: #000000;
    color: #ffffff;
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
}

.users-box {
    border: 3px solid #000000;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2) 3px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(180deg, #001242 0%, #00041e 100%);
    padding: 20px;
    color: #ffffff;
    min-height: 80px;
}

.actions-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.retro-btn {
    background: linear-gradient(180deg, #001242 0%, #000000 100%);
    text-align: center;
    color: #ffffff;
    border: 3px solid #000000;
    font-family: inherit;
    font-size: 16px;
    padding: 8px 16px;
    cursor: pointer;
    outline: none;
    font-weight: bold;
}

.retro-btn:hover {
    border-color: #000000;
    color: #00ffea;
}

.btn-share {
    width: 100px;
    text-align: center;
}

.btn-login {
    width: 150px;
    text-align: center;
}