/* ============================================
   KHULKEBOLO.COM - Complete Stylesheet
   ============================================ */

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

:root {
    --primary:     #1a237e;
    --primary-lt:  #283593;
    --secondary:   #f57f17;
    --accent:      #4fc3f7;
    --bg:          #eef2ff;
    --white:       #ffffff;
    --text:        #2d3436;
    --text-light:  #636e72;
    --shadow:      0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:   0 10px 40px rgba(0,0,0,0.2);
    --radius:      16px;
    --radius-sm:   10px;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ============================================
   AD BANNERS
   ============================================ */
.ad-banner {
    background: linear-gradient(90deg, #f57f17, #ff8f00);
    color: white;
    text-align: center;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ad-placeholder {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 13px;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;;
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-ghost {
    font-size: 26px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px);  }
    50%       { transform: translateY(-5px); }
}

.logo-text .site-name {
    display: block;
    color: #FFD700;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.logo-text .site-tagline {
    display: block;
    color: #B3E5FC;
    font-size: 9px;
    font-weight: 600;
}

/* SEARCH BAR */
.search-form {
    display: flex;
    flex: 1;
    max-width: 450px;
}

.search-input {
    flex: 1;
    padding: 7px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    background: rgba(255,255,255,0.95);
}

.search-input::placeholder {
    color: #aaa;
}

.search-btn {
    background: var(--secondary);
    border: none;
    padding: 7px 15px;
    border-radius: 0 25px 25px 0;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #e65100;
}

/* NAV RIGHT */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-login {
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.2s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
}

.btn-signup {
    background: var(--secondary);
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 15px;
    border-radius: 15px;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(245,127,23,0.4);
}

.btn-signup:hover {
    background: #e65100;
    transform: translateY(-2px);
}

/* USER MENU DROPDOWN */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.user-menu:hover {
    background: rgba(255,255,255,0.2);
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    background: white;
    object-fit: cover;
}

.ghost-name-display {
    font-weight: 700;
    color: #FFD700;
    font-size: 12px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 999;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.user-menu:hover .dropdown-menu {
    display: block;
    animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0);     }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f0f4ff;
    color: var(--primary);
}

.dropdown-menu a i {
    width: 16px;
    color: var(--primary);
}

/* HAMBURGER MOBILE */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

/* TRENDING BAR */
.trending-bar {
    background: rgba(0,0,0,0.2);
    padding: 4px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-label {
    color: #FFD700;
    font-weight: 700;
    font-size: 11px;
}

.trending-tag {
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.trending-tag:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
    min-height: calc(100vh - 300px);
}

/* ============================================
   HOMEPAGE LAYOUT
   ============================================ */
.hero-section {
    display: flex;
    min-height: calc(100vh - 200px);
}

/* SIDE ADS */
.side-ad {
    width: 160px;
    min-width: 160px;
    background: #dde1f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 8px;
    gap: 12px;
    font-size: 11px;
    color: #888;
    font-weight: 600;
}

.ad-box {
    background: white;
    border: 1px dashed #bbb;
    width: 140px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #bbb;
    font-size: 11px;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 20px 25px;
    max-width: calc(100% - 320px);
}

/* ============================================
   POST CTA BOX
   ============================================ */
.post-cta-box {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    text-align: center;
    border: 2px solid #e8eaf6;
}

.cta-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f4ff;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    margin-bottom: 12px;
    color: #888;
    font-size: 15px;
    border: 2px dashed #c5cae9;
    transition: all 0.3s;
    text-align: left;
}

.cta-input:hover {
    border-color: var(--primary);
    background: #e8eaf6;
    color: var(--primary);
}

.cta-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid white;
    flex-shrink: 0;
}

.cta-ghost-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.btn-share-secret {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    border: none;
    padding: 13px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26,35,126,0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-share-secret:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26,35,126,0.45);
}

/* ============================================
   BUBBLE WALL
   ============================================ */
.bubble-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 10px 0 40px;
    min-height: 400px;
}

/* LOAD MORE BUTTON */
.load-more-wrapper {
    text-align: center;
    padding: 20px;
    width: 100%;
}

.btn-load-more {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26,35,126,0.3);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,35,126,0.4);
}

/* INDIVIDUAL BUBBLE */
.bubble {
    position: relative;
    border-radius: 22px 22px 22px 6px;
    padding: 16px 16px 12px;
    width: 200px;
    min-height: 130px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 4px solid rgba(0,0,0,0.1);
}

.bubble:hover {
    transform: translateY(-6px) rotate(1.5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 10;
}

.bubble-avatar {
    position: absolute;
    top: -14px;
    right: -10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.bubble-text {
    color: white;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    padding-right: 28px;
    flex: 1;
}

.bubble-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.25);
}

.bubble-time {
    color: rgba(255,255,255,0.85);
    font-size: 10px;
    font-weight: 600;
}

.bubble-stats {
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    gap: 6px;
}

.empty-wall {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    width: 100%;
}

.empty-wall h3 {
    margin: 15px 0 8px;
    color: var(--primary);
    font-size: 20px;
}

/* ============================================
   FOOTER - SINGLE LINE COMPACT
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 8px 20px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.emergency-line {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 0;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 5px;
}

.emergency-line i {
    color: #ff8a80;
}

.emergency-line a {
    color: #FFD700;
    font-weight: 700;
}

.footer-single-line {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-single-line a {
    color: #B3E5FC;
    margin: 0 2px;
    transition: color 0.2s;
}

.footer-single-line a:hover {
    color: #FFD700;
}

/* ============================================
   POST MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.post-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 560px;
    max-height: 88vh;
    background: white;
    border-radius: 22px;
    z-index: 2001;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

.modal-close {
    position: sticky;
    top: 12px;
    float: right;
    margin: 12px 15px 0 0;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #ffebee;
    color: #c62828;
}

.modal-body {
    padding: 15px 25px 25px;
    clear: both;
}

/* Modal Post Header */
.modal-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    background: #f5f5f5;
    flex-shrink: 0;
}

.modal-ghost-name {
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
    display: block;
}

.modal-time {
    color: #999;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.modal-mood-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    background: #e3f2fd;
    color: #1565c0;
}

/* Modal Content */
.modal-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
    padding: 18px;
    background: #f8f9ff;
    border-radius: 14px;
    border-left: 5px solid var(--primary);
}

/* REACTIONS */
.modal-reactions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f0f0;
    align-items: center;
}

.reaction-btn {
    background: #f0f4ff;
    border: 2px solid #e0e0e0;
    border-radius: 22px;
    padding: 7px 15px;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.2s;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reaction-btn:hover {
    background: #e3f2fd;
    border-color: var(--primary);
    transform: scale(1.12);
}

.reaction-btn .react-count {
    font-size: 13px;
    color: var(--primary);
}

.btn-report {
    background: #fff8e1;
    border: 2px solid #ffe082;
    border-radius: 22px;
    padding: 7px 13px;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    transition: all 0.2s;
}

.btn-report:hover {
    background: #ffebee;
    border-color: #ef9a9a;
}

/* COMMENTS */
.modal-comments {
    margin-bottom: 20px;
}

.modal-comments h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-comments {
    text-align: center;
    color: #bbb;
    font-size: 14px;
    padding: 20px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e8eaf6;
    background: #f5f5f5;
    flex-shrink: 0;
}

.comment-content {
    background: #f8f9ff;
    border-radius: 14px;
    padding: 10px 14px;
    flex: 1;
    border: 1px solid #e8eaf6;
}

.comment-content strong {
    color: var(--primary);
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.comment-content p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.comment-content small {
    color: #bbb;
    font-size: 11px;
    margin-top: 5px;
    display: block;
}

/* ADD COMMENT */
.add-comment {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.comment-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 22px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border 0.2s;
    background: #f8f9ff;
}

.comment-input:focus {
    border-color: var(--primary);
    background: white;
}

.btn-comment-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-comment-submit:hover {
    background: var(--primary-lt);
    transform: scale(1.05);
}

.login-to-comment {
    text-align: center;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 14px;
    margin-top: 10px;
}

/* ============================================
   MOBILE OPTIMIZED NAVBAR
   ============================================ */

/* User Menu Trigger Button */
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.user-menu-trigger:hover,
.user-menu-trigger:active {
    background: rgba(255,255,255,0.2);
}

.menu-arrow {
    color: #FFD700;
    font-size: 10px;
    transition: transform 0.3s;
}

.user-menu.open .menu-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN MENU - Mobile Friendly */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    min-width: 220px;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    animation: fadeDown 0.2s ease;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f4ff, #e8eaf6);
}

.dropdown-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #c5cae9;
}

.dropdown-ghost-name {
    font-weight: 800;
    color: #1a237e;
    font-size: 13px;
}

.dropdown-role {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: #2d3436;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item:hover,
.dropdown-item:active {
    background: #f0f4ff;
    color: #1a237e;
}

.dropdown-item i {
    width: 18px;
    color: #1a237e;
    font-size: 15px;
}

.admin-link {
    color: #f57f17 !important;
}

.admin-link i {
    color: #f57f17 !important;
}

.logout-item {
    color: #e74c3c !important;
}

.logout-item i {
    color: #e74c3c !important;
}

/* MENU OVERLAY */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,0.3);
}

.menu-overlay.active {
    display: block;
}

/* MOBILE SEARCH */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-search-bar {
    display: none;
    padding: 8px 15px;
    background: rgba(0,0,0,0.2);
    animation: slideDown 0.2s ease;
}

.mobile-search-bar.open {
    display: block;
}

.mobile-search-bar form {
    display: flex;
    gap: 0;
}

.mobile-search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    outline: none;
}

.mobile-search-bar button {
    background: #f57f17;
    border: none;
    padding: 10px 18px;
    border-radius: 0 25px 25px 0;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MOBILE RESPONSIVE - FULL OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {

    /* Hide desktop search, show mobile search icon */
    .search-form { display: none; }
    .mobile-search-btn { display: block; }

    /* Navbar */
    .nav-container { padding: 8px 12px; }
    .logo-ghost { font-size: 24px; }
    .logo-text .site-name { font-size: 15px; }
    .logo-text .site-tagline { display: none; }

    /* Ghost name - hide on very small screens */
    .ghost-name-display { display: none; }

    /* Side ads hidden on mobile */
    .side-ad { display: none; }

    /* Main content full width */
    .main-content {
        max-width: 100%;
        padding: 12px;
    }

    /* Bubbles - 2 columns on mobile */
    .bubble-wall {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-items: center;
    }

    .bubble {
        width: 100%;
        min-height: 120px;
        font-size: 12px;
    }

    /* CTA Box */
    .post-cta-box { padding: 15px; }
    .cta-input { padding: 10px 15px; font-size: 13px; }
    .btn-share-secret { padding: 11px 25px; font-size: 14px; }

    /* Post Modal - Full screen on mobile */
    .post-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        animation: slideUpMobile 0.3s ease;
    }

    @keyframes slideUpMobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    /* Post Submit Modal */
    .submit-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        animation: slideUpSheet 0.3s ease;
    }

    .post-submit-modal {
        align-items: flex-end;
    }

    @keyframes slideUpSheet {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    /* Auth pages */
    .auth-box { padding: 25px 18px; margin: 10px; }
    .auth-page { padding: 15px; align-items: flex-start; }

    /* Footer */
    .footer-single-line {
        white-space: normal;
        font-size: 10px;
        line-height: 1.8;
    }

    /* Trending bar - scrollable */
    .trending-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 5px 12px;
    }
    .trending-bar::-webkit-scrollbar { display: none; }
    .trending-tag { flex-shrink: 0; }
}

/* Very small phones */
@media (max-width: 380px) {
    .bubble-wall {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .bubble { min-height: 110px; }
    .logo-text .site-name { font-size: 13px; }
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */
.profile-page {
    max-width: 650px;
    margin: 25px auto;
    padding: 0 15px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-banner {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    height: 100px;
    position: relative;
}

.profile-avatar-wrap {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.profile-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-info {
    text-align: center;
    padding: 50px 20px 25px;
}

.profile-ghost-name {
    font-size: 22px;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 5px;
}

.profile-badge {
    display: inline-block;
    background: #e8eaf6;
    color: #1a237e;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 15px;
}

.profile-stat {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid #f0f0f0;
}

.profile-stat:last-child { border-right: none; }

.profile-stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #1a237e;
}

.profile-stat-label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    margin-top: 3px;
}

/* My Posts Grid */
.my-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .my-posts-grid {
        grid-template-columns: 1fr;
    }
}

.my-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.my-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.my-post-color-bar {
    height: 6px;
}

.my-post-content {
    padding: 14px;
}

.my-post-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.my-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #bbb;
    font-weight: 600;
}

/* ============================================
   SEARCH PAGE STYLES
   ============================================ */
.search-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px;
}

.search-header {
    margin-bottom: 20px;
}

.search-header h2 {
    color: #1a237e;
    font-size: 20px;
}

.search-header p {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

@media (max-width: 480px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ============================================
   GET POST MODAL STYLES
   ============================================ */
.modal-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mood-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
    