/* style.css - Classic Facebook Aesthetic (2010) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
}

body {
    background-color: #e9ebee;
    color: #333333;
    font-size: 11px;
}

/* Desktop Only Responsive Blocker */
.mobile-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.mobile-blocker h1 {
    color: #3b5998;
    font-size: 24px;
    margin-bottom: 15px;
}

@media screen and (max-width: 1023px) {
    .mobile-blocker { display: flex; }
    .blue-bar, .app-layout, .auth-container { display: none !important; }
}

/* Header bar styling */
.blue-bar {
    background-color: #3b5998;
    border-bottom: 1px solid #29487d;
    height: 42px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-container {
    width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -1px;
}

/* Navigation Search Interface */
.search-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-input {
    width: 200px;
    height: 22px;
    border: 1px solid #1d2a44;
    padding: 3px 6px;
    font-size: 11px;
}

.search-select {
    height: 22px;
    border: 1px solid #1d2a44;
    background: #f6f7f9;
    font-size: 11px;
    padding: 0 5px;
}

.search-btn {
    background-color: #4f6a9e;
    border: 1px solid #29487d;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    height: 22px;
    padding: 0 10px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #3b5998;
}

/* Layout Framework */
.app-layout {
    width: 980px;
    margin: 0 auto;
    padding-top: 55px;
    display: flex;
    gap: 15px;
}

aside {
    width: 180px;
}

.sidebar-pfp-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 5px;
}

.sidebar-pfp {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border: 1px solid #d3d6db;
    background-color: #fff;
}

.sidebar-username {
    font-weight: bold;
    color: #3b5998;
    font-size: 12px;
}

.menu-items {
    list-style: none;
}

.menu-items a {
    color: #333333;
    text-decoration: none;
    font-size: 11px;
    padding: 5px 8px;
    display: block;
    border-radius: 3px;
    cursor: pointer;
}

.menu-items a:hover, .menu-items a.active {
    background-color: #d8dfea;
    font-weight: bold;
    color: #3b5998;
}

/* Feed & Containers */
main {
    width: 500px;
}

.page-content {
    display: none;
}

.page-content.active-page {
    display: block;
}

.fb-card {
    background-color: #ffffff;
    border: 1px solid #b3bbc9;
    margin-bottom: 15px;
}

.card-header {
    background-color: #f2f2f2;
    border-bottom: 1px solid #e2e2e2;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: bold;
    color: #333333;
}

.card-body {
    padding: 12px;
}

/* Legacy UI Forms */
textarea, input[type="text"], input[type="password"], select {
    width: 100%;
    border: 1px solid #bdc7d8;
    padding: 6px;
    font-size: 11px;
    margin-bottom: 8px;
    background-color: #ffffff;
}

textarea {
    height: 60px;
    resize: none;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
}

.fb-btn {
    background: linear-gradient(to bottom, #5b74a8, #415e9b);
    border: 1px solid #29447e;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
}

.fb-btn:hover {
    background: #3b5998;
}

.fb-btn-alt {
    background: linear-gradient(to bottom, #f6f7f8, #e9eaed);
    border: 1px solid #cbd0d6;
    color: #333;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
}

/* Posting */
.post-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.post-pfp {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.post-author {
    font-weight: bold;
    color: #3b5998;
    text-decoration: none;
    font-size: 11px;
}

.verified-badge {
    background-color: #3b5998;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 4px;
    font-weight: normal;
}

.post-text {
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    margin-bottom: 8px;
}

.post-actions {
    border-top: 1px solid #e9ebee;
    padding-top: 6px;
    display: flex;
    gap: 15px;
}

.action-link {
    color: #3b5998;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.action-link:hover {
    text-decoration: underline;
}

/* Real-Time DM Panel Layout */
.message-layout {
    display: flex;
    border: 1px solid #b3bbc9;
    height: 350px;
    background: #fff;
}

.chat-user-list {
    width: 140px;
    border-right: 1px solid #b3bbc9;
    overflow-y: auto;
    background: #f2f2f2;
}

.chat-user-item {
    padding: 8px;
    border-bottom: 1px solid #e2e2e2;
    cursor: pointer;
    font-weight: bold;
    color: #3b5998;
}

.chat-user-item:hover, .chat-user-item.active {
    background: #d8dfea;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.message-history {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.msg {
    padding: 6px 10px;
    border-radius: 4px;
    max-width: 80%;
    font-size: 11px;
}

.msg.sent {
    background-color: #eceff5;
    color: #333;
    align-self: flex-end;
    border: 1px solid #bdc7d8;
}

.msg.received {
    background-color: #f2f2f2;
    color: #333;
    align-self: flex-start;
    border: 1px solid #e2e2e2;
}

.msg-composer {
    display: flex;
    border-top: 1px solid #b3bbc9;
    padding: 8px;
    background: #f2f2f2;
    gap: 5px;
}

.msg-composer input {
    flex: 1;
    margin-bottom: 0;
}

/* Side Widgets */
.side-panels {
    width: 205px;
}

.side-panel-title {
    font-weight: bold;
    color: #666666;
    border-bottom: 1px solid #cbd2d0;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.friend-pfp {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.friend-name {
    font-weight: bold;
    color: #3b5998;
    text-decoration: none;
    cursor: pointer;
}

/* Gateway Landing Style */
.auth-container {
    width: 980px;
    margin: 60px auto 0 auto;
    display: flex;
    justify-content: space-between;
}

.auth-left {
    width: 550px;
}

.auth-left h1 {
    color: #3b5998;
    font-size: 40px;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.auth-left p {
    font-size: 16px;
    line-height: 1.4;
    color: #1c1e21;
}

.auth-right {
    width: 360px;
}

.search-result-item {
    border-bottom: 1px solid #e2e2e2;
    padding: 8px 0;
}

