/* ============================================================ DREAMCHAT GLOBAL COLOR VARIABLES ============================================================ CSS variables make it easier to change colors throughout the entire website. The JavaScript changes the data-theme value on the body, which changes these variables. */ :root { --server-width: 74px; --channel-width: 270px; --member-width: 260px; --topbar-height: 68px; --background-deep: #111017; --background-dark: #181720; --background-medium: #211f2b; --background-light: #292735; --background-hover: #343140; --panel-border: rgba(255, 255, 255, 0.08); --text-primary: #f6f3ff; --text-secondary: #b7b1c7; --text-muted: #817b91; --accent-primary: #8f6cff; --accent-secondary: #d36cff; --accent-soft: rgba(143, 108, 255, 0.16); --success: #57d38c; --warning: #f4bf58; --danger: #ff6687; --shadow-small: 0 8px 20px rgba(0, 0, 0, 0.22); --shadow-large: 0 24px 70px rgba(0, 0, 0, 0.48); --radius-small: 8px; --radius-medium: 14px; --radius-large: 22px; --transition-fast: 160ms ease; --transition-medium: 280ms ease; } /* ============================================================ PROFILE THEMES ============================================================ */ body[data-theme="pink"] { --accent-primary: #ff69b4; --accent-secondary: #ff9bd2; --accent-soft: rgba(255, 105, 180, 0.16); } body[data-theme="blue"] { --accent-primary: #5f9dff; --accent-secondary: #56d6ff; --accent-soft: rgba(95, 157, 255, 0.16); } body[data-theme="dark"] { --accent-primary: #d1d1d1; --accent-secondary: #ffffff; --accent-soft: rgba(255, 255, 255, 0.1); } /* ============================================================ BASIC RESET ============================================================ */ * { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; min-height: 100%; } body { overflow: hidden; background: var(--background-deep); color: var(--text-primary); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } button, input, textarea, select { font: inherit; } button { border: none; color: inherit; cursor: pointer; } input, textarea, select { color: var(--text-primary); } img { display: block; max-width: 100%; } a { color: inherit; text-decoration: none; } .hidden { display: none !important; } .small-label { margin-bottom: 4px; color: var(--accent-primary); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; } .icon-button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: transparent; color: var(--text-secondary); font-size: 1.3rem; transition: background var(--transition-fast), color var(--transition-fast); } .icon-button:hover { background: var(--background-hover); color: var(--text-primary); } /* ============================================================ MAIN APPLICATION GRID ============================================================ */ .app { display: grid; width: 100vw; height: 100vh; grid-template-columns: var(--server-width) var(--channel-width) minmax(0, 1fr) var(--member-width); background: var(--background-dark); } .app.members-hidden { grid-template-columns: var(--server-width) var(--channel-width) minmax(0, 1fr); } .app.members-hidden .member-sidebar { display: none; } /* ============================================================ SERVER SIDEBAR ============================================================ */ .server-sidebar { display: flex; overflow-y: auto; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; background: var(--background-deep); border-right: 1px solid var(--panel-border); } .server-button { position: relative; display: flex; width: 50px; min-height: 50px; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 17px; background: var(--background-light); color: var(--text-primary); font-size: 1.3rem; font-weight: 800; transition: border-radius var(--transition-medium), background var(--transition-fast), transform var(--transition-fast); } .server-button::before { position: absolute; left: -12px; width: 4px; height: 0; border-radius: 0 5px 5px 0; background: var(--text-primary); content: ""; transition: height var(--transition-fast); } .server-button:hover { border-radius: 13px; background: var(--accent-primary); transform: translateY(-1px); } .server-button:hover::before { height: 20px; } .server-button.active { border-radius: 13px; background: linear-gradient( 145deg, var(--accent-primary), var(--accent-secondary) ); } .server-button.active::before { height: 36px; } .server-button-home { font-size: 1.45rem; } .server-button-add { color: var(--success); } .server-button-add:hover { background: var(--success); color: #102719; } .server-divider { width: 32px; height: 1px; margin: 1px 0; background: var(--panel-border); } /* ============================================================ CHANNEL SIDEBAR ============================================================ */ .channel-sidebar { display: flex; min-width: 0; flex-direction: column; background: var(--background-dark); border-right: 1px solid var(--panel-border); } .community-header { display: flex; height: var(--topbar-height); align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--panel-border); } .community-header h1 { overflow: hidden; font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; } .sidebar-search { position: relative; padding: 14px 12px 8px; } .sidebar-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid transparent; border-radius: 9px; outline: none; background: var(--background-deep); font-size: 0.86rem; } .sidebar-search input:focus { border-color: var(--accent-primary); } .search-icon { position: absolute; top: 22px; left: 24px; z-index: 1; color: var(--text-muted); font-size: 1.15rem; } .channel-navigation { overflow-y: auto; flex: 1; padding: 8px; } .channel-group { margin-bottom: 20px; } .channel-category-row { display: flex; align-items: center; margin: 0 3px 5px; } .category-toggle { width: 21px; background: transparent; color: var(--text-muted); font-size: 0.7rem; } .channel-category { color: var(--text-muted); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.07em; } .category-add-button { margin-left: auto; background: transparent; color: var(--text-muted); font-size: 1rem; } .category-add-button:hover { color: var(--text-primary); } .channel-link { display: flex; width: 100%; min-height: 39px; align-items: center; gap: 9px; margin-bottom: 2px; padding: 0 10px; border-radius: 8px; background: transparent; color: var(--text-secondary); text-align: left; transition: background var(--transition-fast), color var(--transition-fast); } .channel-link:hover { background: var(--background-medium); color: var(--text-primary); } .channel-link.active { background: var(--background-light); color: var(--text-primary); } .channel-symbol { width: 20px; color: var(--text-muted); font-size: 1.1rem; text-align: center; } .mini-avatar { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; color: white; font-size: 0.73rem; font-weight: 800; } .purple-avatar { background: #7257df; } .pink-avatar { background: #d85b9a; } .online-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--success); } .current-user-panel { display: flex; min-height: 60px; align-items: center; gap: 5px; padding: 8px; background: var(--background-deep); } .current-user-profile { display: flex; min-width: 0; align-items: center; flex: 1; gap: 8px; padding: 4px; border-radius: 7px; background: transparent; text-align: left; } .current-user-profile:hover { background: var(--background-medium); } .current-user-avatar { width: 35px; height: 35px; flex-shrink: 0; border-radius: 50%; object-fit: cover; } .current-user-details { display: flex; overflow: hidden; flex-direction: column; } .current-user-details strong, .current-user-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .current-user-details strong { font-size: 0.79rem; } .current-user-details small { color: var(--text-muted); font-size: 0.67rem; } .user-control-button { width: 31px; height: 31px; border-radius: 7px; background: transparent; color: var(--text-secondary); } .user-control-button:hover { background: var(--background-medium); color: var(--text-primary); } /* ============================================================ MAIN CONTENT AND TOP BAR ============================================================ */ .main-content { display: flex; min-width: 0; min-height: 0; flex-direction: column; background: var(--background-medium); } .topbar { display: flex; height: var(--topbar-height); align-items: center; justify-content: space-between; flex-shrink: 0; gap: 20px; padding: 0 19px; background: rgba(33, 31, 43, 0.96); border-bottom: 1px solid var(--panel-border); box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16); } .topbar-left { display: flex; min-width: 0; align-items: center; gap: 11px; } .topbar-channel-icon { color: var(--text-muted); font-size: 1.6rem; } .topbar-left h2 { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; } .topbar-left p { overflow: hidden; max-width: 540px; margin-top: 2px; color: var(--text-muted); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; } .topbar-actions { display: flex; align-items: center; gap: 4px; } .topbar-button { position: relative; display: inline-flex; width: 39px; height: 39px; align-items: center; justify-content: center; border-radius: 9px; background: transparent; color: var(--text-secondary); } .topbar-button:hover { background: var(--background-hover); } .notification-badge { position: absolute; top: 2px; right: 0; display: flex; min-width: 16px; height: 16px; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--background-medium); border-radius: 20px; background: var(--danger); color: white; font-size: 0.57rem; font-weight: 800; } .mobile-menu-button { display: none; width: 38px; height: 38px; border-radius: 8px; background: transparent; font-size: 1.2rem; } /* ============================================================ CONTENT VIEWS ============================================================ */ .content-view { display: none; min-width: 0; min-height: 0; flex: 1; } .content-view.active-view { display: flex; } /* ============================================================ CHAT ============================================================ */ #chatView, .direct-message-view { flex-direction: column; } .message-list { overflow-y: auto; flex: 1; padding: 24px 18px; } .message { position: relative; display: flex; gap: 13px; padding: 8px 10px; border-radius: 8px; } .message:hover { background: rgba(255, 255, 255, 0.025); } body.compact-messages .message { padding-top: 3px; padding-bottom: 3px; } .message-avatar { width: 43px; height: 43px; flex-shrink: 0; border-radius: 50%; object-fit: cover; } .message-content { min-width: 0; flex: 1; } .message-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; } .message-author { color: var(--text-primary); font-size: 0.92rem; font-weight: 750; } .message-time { color: var(--text-muted); font-size: 0.67rem; } .message-text { margin-top: 3px; color: #e3deed; font-size: 0.91rem; line-height: 1.48; overflow-wrap: anywhere; white-space: pre-wrap; } .message-actions { position: absolute; top: -12px; right: 14px; display: none; overflow: hidden; border: 1px solid var(--panel-border); border-radius: 7px; background: var(--background-dark); box-shadow: var(--shadow-small); } .message:hover .message-actions { display: flex; } .message-action-button { width: 31px; height: 28px; background: transparent; color: var(--text-secondary); font-size: 0.75rem; } .message-action-button:hover { background: var(--background-hover); } .reaction-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; } .reaction-button { padding: 3px 7px; border: 1px solid var(--panel-border); border-radius: 7px; background: var(--background-dark); color: var(--text-secondary); font-size: 0.7rem; } .reaction-button:hover, .reaction-button.reacted { border-color: var(--accent-primary); background: var(--accent-soft); } .message-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 18px 18px; padding: 9px; border: 1px solid var(--panel-border); border-radius: 13px; background: var(--background-light); } .message-form textarea { min-height: 38px; max-height: 150px; flex: 1; resize: none; border: none; outline: none; background: transparent; line-height: 1.45; } .message-form textarea::placeholder { color: var(--text-muted); } .message-option-button { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: var(--background-hover); color: var(--text-secondary); } .message-option-button:hover { background: var(--accent-primary); color: white; } .send-message-button { min-width: 69px; height: 37px; padding: 0 14px; border-radius: 8px; background: linear-gradient( 135deg, var(--accent-primary), var(--accent-secondary) ); color: white; font-size: 0.79rem; font-weight: 800; } .send-message-button:hover { filter: brightness(1.08); } .typing-indicator { display: flex; align-items: center; gap: 4px; padding: 0 25px 7px; color: var(--text-muted); font-size: 0.71rem; } .typing-indicator span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typing-bounce 1s infinite ease-in-out; } .typing-indicator span:nth-child(2) { animation-delay: 120ms; } .typing-indicator span:nth-child(3) { animation-delay: 240ms; } @keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } } /* ============================================================ MEMBER SIDEBAR ============================================================ */ .member-sidebar { overflow-y: auto; padding: 18px 10px; background: var(--background-dark); border-left: 1px solid var(--panel-border); } .member-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 18px; } .member-sidebar-header h2 { font-size: 0.96rem; } .member-category { margin: 12px 8px 6px; color: var(--text-muted); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.06em; } .member-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--text-secondary); cursor: pointer; } .member-row:hover { background: var(--background-medium); color: var(--text-primary); } .member-row.offline { opacity: 0.5; } .member-avatar-wrapper { position: relative; } .member-avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; } .member-status-indicator { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid var(--background-dark); border-radius: 50%; background: var(--success); } .member-details { display: flex; overflow: hidden; flex-direction: column; } .member-details strong, .member-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .member-details strong { font-size: 0.79rem; } .member-details small { color: var(--text-muted); font-size: 0.66rem; } .mobile-close-button { display: none; } /* ============================================================ PROFILE PAGE ============================================================ */ .profile-page-view { overflow-y: auto; flex-direction: column; background: radial-gradient( circle at top right, var(--accent-soft), transparent 35% ), var(--background-medium); } .profile-banner { position: relative; min-height: 245px; flex-shrink: 0; background: linear-gradient( 120deg, rgba(57, 29, 104, 0.75), rgba(25, 18, 42, 0.7) ), url("https://placehold.co/1500x450/241a3e/c996ff?text=DreamChat+Profile"); background-position: center; background-size: cover; } .profile-banner-overlay { position: absolute; inset: 0; background: linear-gradient( to bottom, transparent 35%, var(--background-medium) ); } .edit-profile-button { position: absolute; right: 25px; bottom: 28px; z-index: 2; padding: 10px 17px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 9px; background: rgba(12, 11, 17, 0.74); color: white; font-size: 0.78rem; font-weight: 750; backdrop-filter: blur(12px); } .edit-profile-button:hover { background: var(--accent-primary); } .profile-page-grid { display: grid; align-items: start; gap: 18px; padding: 0 22px 32px; grid-template-columns: minmax(215px, 0.72fr) minmax(330px, 1.35fr) minmax(250px, 0.95fr); } .profile-left-column, .profile-center-column, .profile-right-column { display: flex; min-width: 0; flex-direction: column; gap: 17px; } .profile-left-column { margin-top: -73px; } .profile-card { overflow: hidden; padding: 18px; border: 1px solid var(--panel-border); border-radius: var(--radius-medium); background: rgba(24, 23, 32, 0.92); box-shadow: var(--shadow-small); } .main-profile-card { text-align: center; } .large-profile-avatar { width: 132px; height: 132px; margin: 0 auto 14px; border: 6px solid var(--background-dark); border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-small); } .main-profile-card h2 { font-size: 1.27rem; } .profile-username { margin-top: 2px; color: var(--accent-primary); font-size: 0.81rem; } .profile-status { margin: 14px 0; color: var(--text-secondary); font-size: 0.81rem; font-style: italic; line-height: 1.5; } .profile-location-row { display: flex; justify-content: center; gap: 6px; color: var(--text-muted); font-size: 0.76rem; } .profile-stat-row { display: grid; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--panel-border); grid-template-columns: repeat(3, 1fr); } .profile-stat-row div { display: flex; flex-direction: column; gap: 2px; } .profile-stat-row strong { font-size: 0.93rem; } .profile-stat-row span { color: var(--text-muted); font-size: 0.63rem; } .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; } .card-heading h3 { font-size: 0.93rem; } .card-heading > span { color: var(--accent-primary); font-size: 0.68rem; font-weight: 750; } .music-card { text-align: center; } .music-cover { display: flex; width: 112px; height: 112px; align-items: center; justify-content: center; margin: 3px auto 12px; border-radius: 14px; background: radial-gradient( circle, var(--accent-secondary), var(--accent-primary) 38%, #17131f 40%, #09080c 70% ); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.12); font-size: 2rem; } .song-information { display: flex; flex-direction: column; } .song-information strong { font-size: 0.84rem; } .song-information span { margin-top: 3px; color: var(--text-muted); font-size: 0.7rem; } .music-progress-bar { overflow: hidden; height: 4px; margin: 16px 0; border-radius: 5px; background: var(--background-hover); } .music-progress { width: 22%; height: 100%; border-radius: inherit; background: linear-gradient( 90deg, var(--accent-primary), var(--accent-secondary) ); } .music-controls { display: flex; align-items: center; justify-content: center; gap: 13px; } .music-controls button { width: 34px; height: 34px; border-radius: 50%; background: transparent; color: var(--text-secondary); } .music-controls button:hover { color: var(--text-primary); } .music-controls .main-music-button { width: 43px; height: 43px; background: var(--accent-primary); color: white; } .about-card p, .profile-post-card p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.7; } .interest-tag-list { display: flex; flex-wrap: wrap; gap: 8px; } .interest-tag { padding: 6px 10px; border: 1px solid rgba(143, 108, 255, 0.24); border-radius: 30px; background: var(--accent-soft); color: var(--text-primary); font-size: 0.7rem; } .profile-post-card h4 { margin-bottom: 9px; font-size: 1rem; } .secondary-button, .primary-button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 15px; border-radius: 9px; font-size: 0.77rem; font-weight: 800; } .primary-button { background: linear-gradient( 135deg, var(--accent-primary), var(--accent-secondary) ); color: white; } .primary-button:hover { filter: brightness(1.08); } .secondary-button { border: 1px solid var(--panel-border); background: var(--background-light); color: var(--text-primary); } .secondary-button:hover { border-color: var(--accent-primary); background: var(--accent-soft); } .profile-post-card .secondary-button { margin-top: 14px; } .text-button { background: transparent; color: var(--accent-primary); font-size: 0.72rem; font-weight: 750; } .top-friends-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); } .top-friend { min-width: 0; text-align: center; cursor: pointer; } .top-friend img { width: 57px; height: 57px; margin: auto; border-radius: 11px; object-fit: cover; transition: transform var(--transition-fast); } .top-friend:hover img { transform: translateY(-3px); } .top-friend span { display: block; overflow: hidden; margin-top: 5px; color: var(--text-secondary); font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; } .profile-comment { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--panel-border); } .profile-comment:last-child { border-bottom: none; } .profile-comment img { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; object-fit: cover; } .profile-comment strong { display: block; color: var(--accent-primary); font-size: 0.72rem; } .profile-comment p { margin-top: 2px; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.42; } .profile-comment-form { display: flex; gap: 7px; margin-top: 12px; } .profile-comment-form input { min-width: 0; height: 36px; flex: 1; padding: 0 10px; border: 1px solid var(--panel-border); border-radius: 8px; outline: none; background: var(--background-medium); font-size: 0.73rem; } .profile-comment-form input:focus { border-color: var(--accent-primary); } .profile-comment-form button { padding: 0 11px; border-radius: 8px; background: var(--accent-primary); font-size: 0.7rem; font-weight: 750; } /* ============================================================ DISCOVER, FRIENDS, AND BLOG PAGES ============================================================ */ .discover-view, .friends-view, .blog-view { overflow-y: auto; flex-direction: column; padding: 27px; } .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; } .page-heading h2 { font-size: 1.45rem; } .page-heading p:not(.small-label) { max-width: 670px; margin-top: 5px; color: var(--text-secondary); font-size: 0.82rem; line-height: 1.55; } .discover-tools { display: grid; gap: 10px; margin-bottom: 21px; grid-template-columns: minmax(220px, 1fr) 190px 150px; } .discover-search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--panel-border); border-radius: 10px; background: var(--background-dark); } .discover-search-box input { width: 100%; height: 42px; border: none; outline: none; background: transparent; } .discover-tools select { height: 42px; padding: 0 11px; border: 1px solid var(--panel-border); border-radius: 10px; outline: none; background: var(--background-dark); } .people-grid { display: grid; align-items: stretch; gap: 15px; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); } .person-card { position: relative; overflow: hidden; border: 1px solid var(--panel-border); border-radius: 15px; background: var(--background-dark); box-shadow: var(--shadow-small); transition: transform var(--transition-fast), border-color var(--transition-fast); } .person-card:hover { border-color: rgba(143, 108, 255, 0.4); transform: translateY(-3px); } .person-card-banner { height: 82px; background-position: center; background-size: cover; } .person-card-body { padding: 0 15px 15px; } .person-card-avatar-wrapper { position: relative; width: fit-content; margin-top: -34px; } .person-card-avatar { width: 70px; height: 70px; border: 4px solid var(--background-dark); border-radius: 50%; object-fit: cover; } .person-online-dot { position: absolute; right: 4px; bottom: 4px; width: 13px; height: 13px; border: 3px solid var(--background-dark); border-radius: 50%; background: var(--success); } .person-card h3 { margin-top: 9px; font-size: 0.98rem; } .person-card-username { color: var(--accent-primary); font-size: 0.7rem; } .person-card-bio { min-height: 50px; margin: 10px 0; color: var(--text-secondary); font-size: 0.75rem; line-height: 1.5; } .person-card-interests { display: flex; overflow: hidden; flex-wrap: wrap; gap: 5px; max-height: 58px; } .person-card-interests span { padding: 4px 7px; border-radius: 15px; background: var(--background-light); color: var(--text-secondary); font-size: 0.62rem; } .compatibility-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; color: var(--text-muted); font-size: 0.68rem; } .compatibility-row strong { color: var(--success); } .person-card-actions { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; } .person-card-actions button { min-height: 35px; border-radius: 8px; font-size: 0.68rem; font-weight: 750; } .add-friend-card-button { background: var(--accent-primary); color: white; } .message-card-button { border: 1px solid var(--panel-border); background: var(--background-light); } .friend-request-sent { background: var(--success); color: #102719; } .friends-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--panel-border); } .friends-tab { min-height: 37px; padding: 0 13px; border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 0.75rem; } .friends-tab:hover, .friends-tab.active { background: var(--accent-soft); color: var(--text-primary); } .tab-count { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; margin-left: 5px; border-radius: 20px; background: var(--danger); color: white; font-size: 0.58rem; } .friends-content { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } .friend-list-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--panel-border); border-radius: 12px; background: var(--background-dark); } .friend-list-card img { width: 53px; height: 53px; border-radius: 50%; object-fit: cover; } .friend-list-details { min-width: 0; flex: 1; } .friend-list-details strong, .friend-list-details span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .friend-list-details strong { font-size: 0.83rem; } .friend-list-details span { margin-top: 3px; color: var(--text-muted); font-size: 0.68rem; } .friend-list-actions { display: flex; gap: 5px; } .friend-list-actions button { width: 32px; height: 32px; border-radius: 7px; background: var(--background-light); } .request-card-actions { display: flex; gap: 7px; margin-left: auto; } .request-card-actions button { padding: 8px 10px; border-radius: 7px; font-size: 0.64rem; font-weight: 750; } .accept-request-button { background: var(--success); color: #102719; } .reject-request-button { background: var(--background-light); } .blog-post-list { display: flex; flex-direction: column; gap: 15px; } .blog-post { padding: 21px; border: 1px solid var(--panel-border); border-radius: 14px; background: var(--background-dark); } .blog-post-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; } .blog-post h3 { font-size: 1.05rem; } .blog-post time { color: var(--text-muted); font-size: 0.68rem; } .blog-post p { margin-top: 12px; color: var(--text-secondary); font-size: 0.84rem; line-height: 1.7; white-space: pre-wrap; } .blog-post-footer { display: flex; gap: 8px; margin-top: 16px; } .blog-post-footer button { padding: 7px 10px; border-radius: 7px; background: var(--background-light); color: var(--text-secondary); font-size: 0.67rem; } /* ============================================================ DIRECT MESSAGES ============================================================ */ .direct-message-header { display: flex; align-items: center; gap: 11px; padding: 17px 20px; border-bottom: 1px solid var(--panel-border); } .direct-message-header img { width: 47px; height: 47px; border-radius: 50%; object-fit: cover; } .direct-message-header h2 { font-size: 0.96rem; } .direct-message-header p { margin-top: 2px; color: var(--success); font-size: 0.7rem; } /* ============================================================ EMOJI MENU ============================================================ */ .emoji-menu { position: fixed; right: calc(var(--member-width) + 95px); bottom: 80px; z-index: 90; display: grid; width: 230px; gap: 5px; padding: 12px; border: 1px solid var(--panel-border); border-radius: 13px; background: var(--background-dark); box-shadow: var(--shadow-large); grid-template-columns: repeat(5, 1fr); } .emoji-menu button { width: 35px; height: 35px; border-radius: 7px; background: transparent; font-size: 1.1rem; } .emoji-menu button:hover { background: var(--background-hover); } /* ============================================================ MODALS ============================================================ */ .modal { position: fixed; z-index: 200; display: flex; inset: 0; align-items: center; justify-content: center; padding: 20px; } .modal-background { position: absolute; inset: 0; background: rgba(6, 5, 9, 0.78); backdrop-filter: blur(7px); } .modal-card { position: relative; z-index: 1; overflow-y: auto; width: min(540px, 100%); max-height: 90vh; padding: 22px; border: 1px solid var(--panel-border); border-radius: 17px; background: var(--background-dark); box-shadow: var(--shadow-large); } .large-modal-card { width: min(730px, 100%); } .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; } .modal-header h2 { font-size: 1.2rem; } .modal-close-button { display: inline-flex; width: 35px; height: 35px; align-items: center; justify-content: center; border-radius: 8px; background: var(--background-light); font-size: 1.3rem; } .modal-close-button:hover { background: var(--danger); } .form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; } .full-width-field { grid-column: 1 / -1; } .modal form > label, .form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--text-secondary); font-size: 0.73rem; font-weight: 700; } .modal form > label { margin-bottom: 15px; } .modal input, .modal textarea, .modal select { width: 100%; padding: 10px 11px; border: 1px solid var(--panel-border); border-radius: 9px; outline: none; background: var(--background-medium); font-size: 0.82rem; } .modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--accent-primary); } .modal textarea { resize: vertical; } .modal label small { color: var(--text-muted); font-size: 0.63rem; font-weight: 400; } .modal-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; } .user-preview-modal-card { overflow: hidden; padding: 0; } .floating-close-button { position: absolute; top: 12px; right: 12px; z-index: 3; } .user-preview-banner { height: 150px; background-position: center; background-size: cover; } .user-preview-content { position: relative; padding: 0 25px 25px; text-align: center; } .user-preview-avatar { width: 110px; height: 110px; margin: -55px auto 12px; border: 5px solid var(--background-dark); border-radius: 50%; object-fit: cover; } .user-preview-bio { margin: 14px auto; color: var(--text-secondary); font-size: 0.81rem; line-height: 1.55; } .user-preview-content .interest-tag-list { justify-content: center; } .user-preview-actions { display: flex; justify-content: center; gap: 9px; margin-top: 19px; } .settings-list { display: flex; flex-direction: column; } .setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--panel-border); } .setting-row:last-child { border-bottom: none; } .setting-row span { display: flex; flex-direction: column; gap: 3px; } .setting-row strong { font-size: 0.81rem; } .setting-row small { color: var(--text-muted); font-size: 0.68rem; } .setting-row input { width: 18px; height: 18px; } /* ============================================================ TOAST NOTIFICATION ============================================================ */ .toast { position: fixed; right: 20px; bottom: 20px; z-index: 500; min-width: 220px; max-width: 380px; padding: 13px 16px; border: 1px solid rgba(87, 211, 140, 0.32); border-radius: 10px; background: #153422; color: #dffbea; box-shadow: var(--shadow-large); font-size: 0.78rem; animation: toast-enter 220ms ease; } @keyframes toast-enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } /* ============================================================ EMPTY STATE ============================================================ */ .empty-state { display: flex; min-height: 220px; align-items: center; justify-content: center; flex-direction: column; padding: 30px; border: 1px dashed var(--panel-border); border-radius: 14px; color: var(--text-muted); text-align: center; } .empty-state strong { margin-bottom: 6px; color: var(--text-primary); } /* ============================================================ MOBILE OVERLAY ============================================================ */ .mobile-overlay { position: fixed; z-index: 145; display: none; inset: 0; background: rgba(0, 0, 0, 0.65); } /* ============================================================ RESPONSIVE TABLET LAYOUT ============================================================ */ @media (max-width: 1180px) { .app { grid-template-columns: var(--server-width) var(--channel-width) minmax(0, 1fr); } .member-sidebar { position: fixed; top: 0; right: 0; z-index: 160; width: var(--member-width); height: 100vh; transform: translateX(100%); transition: transform var(--transition-medium); } .member-sidebar.mobile-open { transform: translateX(0); } .mobile-close-button { display: inline-flex; } .mobile-overlay.visible { display: block; } .emoji-menu { right: 25px; } .profile-page-grid { grid-template-columns: 230px minmax(320px, 1fr); } .profile-right-column { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; } } /* ============================================================ RESPONSIVE SMALL TABLET LAYOUT ============================================================ */ @media (max-width: 860px) { .app { grid-template-columns: var(--server-width) minmax(0, 1fr); } .channel-sidebar { position: fixed; top: 0; left: var(--server-width); z-index: 160; width: var(--channel-width); height: 100vh; transform: translateX(-120%); transition: transform var(--transition-medium); box-shadow: var(--shadow-large); } .channel-sidebar.mobile-open { transform: translateX(0); } .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; } .topbar-left p { max-width: 310px; } .profile-page-grid { grid-template-columns: 1fr; } .profile-left-column { margin-top: -80px; } .profile-right-column { display: flex; grid-column: auto; } .discover-tools { grid-template-columns: 1fr 1fr; } .discover-search-box { grid-column: 1 / -1; } } /* ============================================================ RESPONSIVE PHONE LAYOUT ============================================================ */ @media (max-width: 620px) { :root { --server-width: 58px; } .server-button { width: 42px; min-height: 42px; border-radius: 14px; font-size: 1rem; } .server-button::before { left: -8px; } .topbar { padding: 0 10px; } .topbar-left p { display: none; } .topbar-actions .topbar-button:nth-child(1), .topbar-actions .topbar-button:nth-child(3) { display: none; } .message-list { padding: 17px 8px; } .message-form { margin: 0 8px 8px; } .message-option-button { display: none; } .send-message-button { min-width: 57px; padding: 0 9px; } .profile-banner { min-height: 190px; } .profile-page-grid { padding: 0 10px 20px; } .discover-view, .friends-view, .blog-view { padding: 18px 11px; } .page-heading { flex-direction: column; } .discover-tools { grid-template-columns: 1fr; } .discover-search-box { grid-column: auto; } .people-grid, .friends-content { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .full-width-field { grid-column: auto; } .friends-tabs { overflow-x: auto; } .friends-tab { flex-shrink: 0; } .profile-right-column { display: flex; } .top-friends-grid { grid-template-columns: repeat(3, 1fr); } }