@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

:root {
    --primary: #3b82f6; --primary-glow: rgba(59, 130, 246, 0.15); 
    --accent: #6366f1; --bg: #f8fafc; --card: #ffffff; --card-glass: rgba(255, 255, 255, 0.95);
    --border: #e2e8f0; --text: #1e293b; --text-dim: #64748b;
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
}

body.light-theme { --bg: #f1f5f9; --card: #ffffff; }
body.dark-theme {
    --primary: #00e5ff; --primary-glow: rgba(0, 229, 255, 0.25); 
    --accent: #8b5cf6; --bg: #09090b; --card: #121214; --card-glass: rgba(18, 18, 20, 0.9);
    --border: #27272a; --text: #f8fafc; --text-dim: #a1a1aa;
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; transition: 0.3s; font-size: 13px; }
a { text-decoration: none !important; } 
.hidden { display: none !important; }
.text-center { text-align: center; } .mb-1 { margin-bottom: 0.8rem; }
.glass-panel { background: var(--card-glass); backdrop-filter: blur(15px); border: 1px solid var(--border); border-radius: 12px; }

/* ⚡ Full-Screen Blocking Loader */
#instant-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
    background: var(--bg); z-index: 999999;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.tech-loader { position: relative; width: 65px; height: 65px; display: flex; justify-content: center; align-items: center; margin-bottom: 5px;}
.tech-ring { position: absolute; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--primary); border-bottom-color: var(--primary); }
.tech-ring.outer { width: 100%; height: 100%; animation: spinLoader 2s linear infinite; }
.tech-ring.inner { width: 70%; height: 70%; border-top-color: var(--accent); border-bottom-color: var(--accent); animation: spinLoader 1.5s linear infinite reverse; }
.loader-icon { font-size: 1.6rem; color: var(--primary); z-index: 5; animation: loaderPulse 2s infinite; filter: drop-shadow(0 0 10px var(--primary-glow));}
.loader-msg { font-size: 0.85rem; color: var(--text-dim); font-weight: 800; letter-spacing: 2px; animation: textPulse 1.5s infinite;}
@keyframes spinLoader { 100% { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%, 100% { transform: scale(0.9); opacity:0.8; } 50% { transform: scale(1.1); opacity:1; } }
@keyframes textPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* 🌐 Main Home Top Bar */
.home-top-bar { position: sticky; top: 0; z-index: 2000; display: flex; justify-content: space-between; align-items: center; padding: 8px 4%; background: var(--card-glass); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); transition: 0.3s; }
.premium-logo { display: flex; align-items: center; gap: 8px; }
.header-logo-img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; border: 1px solid var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.logo-text { font-size: 1.1rem; font-weight: 900; color: var(--text); } .logo-text span { color: var(--primary); }
.home-icon-btn { background: var(--card); border: 1px solid var(--border); color: var(--text-dim); width: 30px; height: 30px; border-radius: 8px; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; }

/* 🌟 Sticky Headers & Folding Search */
.sticky-header { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2000; background: var(--card-glass); backdrop-filter: blur(15px); padding: 10px 4%; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sticky-header h2 { font-size: 1.1rem; flex: 1; text-align: left; margin-left: 10px; font-weight: 900; transition: 0.3s; }
.icon-btn { background: transparent; border: none; color: var(--text); font-size: 1.1rem; cursor: pointer; padding: 5px; }
.expandable-search { display: flex; align-items: center; background: transparent; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: 30px; border-radius: 20px; overflow: hidden; justify-content: flex-end; }
.expandable-search.active { width: calc(100% - 40px); background: rgba(0,0,0,0.1); border: 1px solid var(--primary); padding-left: 10px; }
body.light-theme .expandable-search.active { background: rgba(0,0,0,0.05); }
.search-input { width: 0; opacity: 0; border: none; background: transparent; color: var(--text); outline: none; transition: 0.3s; font-size: 0.85rem; }
.expandable-search.active .search-input { width: 100%; opacity: 1; }

/* 📱 Main Layout & Cover */
#main-content { flex: 1; display: flex; flex-direction: column; width: 100%; overflow-x: hidden; }
.spa-page { display: none !important; width: 100%; animation: slideIn 0.3s ease forwards; flex-direction: column; }
.spa-page.active-page { display: flex !important; }
@keyframes slideIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.semantic-section { width: 96%; max-width: 600px; margin: 0 auto; padding: 0.5rem 0 1.5rem; display: flex; flex-direction: column; align-items: center; }
.cover-photo-container { width: 100%; height: 140px; border-radius: 0 0 14px 14px; overflow: hidden; border: 1px solid var(--border); border-top: none; background: var(--card); }
.cover-photo-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-box { position: relative; z-index: 2; margin: -50px auto 8px; width: 100px; height: 100px; border-radius: 50%; padding: 3px; background: var(--bg); }
.hero-img-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); box-shadow: 0 0 15px var(--primary-glow); }

/* 🌟 PERFECT BLUE TICK CSS */
.verified-badge-icon {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #0084FF; /* Facebook Blue */
    font-size: 1rem; /* Small & fitted */
    margin-left: 6px;
    filter: drop-shadow(0 0 4px rgba(0,132,255,0.4));
}
.verified-badge-icon .fa-check {
    position: absolute;
    color: #fff;
    font-size: 0.45em; /* Perfectly nested checkmark */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0.5px;
}
.hero h1 { font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; }
.category-badge { color: var(--text-dim); background: rgba(255,255,255,0.05); padding: 4px 12px; border-radius: 20px; display: inline-block; font-size: 0.75rem; font-weight: 600; border: 1px solid var(--border); text-align: center; }
body.light-theme .category-badge { background: rgba(0,0,0,0.05); }
.about-text { color: var(--text-dim); font-size: 0.8rem; line-height: 1.5; margin-bottom: 8px; text-align: center; padding: 0 10px; }

/* Hobbies */
.hobbies-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.hobby-badge { font-size: 0.7rem; color: var(--text); border: 1px solid var(--border); padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,0.02); font-weight: 600; }

/* Sleek Inline Stats */
.sleek-stats-container { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 25px; padding: 8px 20px; box-shadow: var(--shadow-md); margin-bottom: 10px; }
.sleek-stat { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.sleek-stat span { font-size: 1rem; color: var(--primary); font-weight: 900; }
.stat-divider { width: 1px; height: 15px; background: var(--border); }

/* Event Banner Slider */
.event-banner-slider { width: 100%; height: 110px; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); box-shadow: var(--shadow-md); margin-bottom: 5px; }
.slider-images { width: 100%; height: 100%; position: relative; }
.slider-img-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease-in-out; opacity: 0; }
.slider-img-item.active { opacity: 1; }
.banner-overlay-text { position: absolute; bottom: 8px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; backdrop-filter: blur(4px); z-index: 10; border: 1px solid rgba(255,255,255,0.2); }

/* Grid */
.home-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 5px; width: 100%; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 0.5rem; text-align: center; box-shadow: var(--shadow-md); cursor: pointer; transition: 0.2s; }
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon { font-size: 1.3rem; color: var(--primary); margin-bottom: 6px; }
.feature-card h3 { font-size: 0.85rem; font-weight: 800; }
.feature-subtext { font-size: 0.65rem; color: var(--text-dim); margin-top: 4px; font-weight: 600; }

/* 📰 Post Cards */
.feed-container { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-md); }
.post-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.post-header-left { display: flex; align-items: center; gap: 10px; }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.post-author-info { display: flex; flex-direction: column; }
.post-author-info h4 { font-size: 0.85rem; font-weight: 800; color: var(--text); display: flex; align-items: center; margin-bottom: 2px; gap: 4px; }
.post-time { font-size: 0.7rem; color: var(--text-dim); font-weight: 600; }

.text-post-highlight { font-size: 0.9rem; line-height: 1.6; font-weight: 500; margin-bottom: 12px; white-space: pre-wrap; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05)); border-left: 3px solid var(--primary); padding: 12px; border-radius: 6px; }
.normal-post-text { font-size: 0.85rem; line-height: 1.5; font-weight: 500; margin-bottom: 10px; white-space: pre-wrap; }
.hashtag { color: var(--primary); font-weight: 800; cursor: pointer; display: inline; transition: 0.2s; text-decoration: none; }
.hashtag:hover { text-decoration: underline; filter: brightness(1.2); }

/* Media & Video */
.media-wrapper { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--border); margin-bottom: 10px; }
.media-wrapper img, .media-wrapper video { width: 100%; height: auto; max-height: 350px; object-fit: contain; display: block; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: rgba(255,255,255,0.9); text-shadow: 0 0 15px rgba(0,0,0,0.8); pointer-events: none; }
.hd-btn { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 4px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; }

/* Action Buttons */
.post-actions { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 5px; }
.action-btn { flex: 1; min-width: 80px; background: transparent; border: 1px solid var(--border); color: var(--text); padding: 8px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 5px; transition: 0.2s; }
.action-btn.share-btn { border-color: var(--border); }
.action-btn.fb-btn { color: #1877F2; border-color: rgba(24, 119, 242, 0.3); background: rgba(24, 119, 242, 0.05); }
.action-btn.ig-btn { color: #E1306C; border-color: rgba(225, 48, 108, 0.3); background: rgba(225, 48, 108, 0.05); }
.action-btn.yt-btn { color: #FF0000; border-color: rgba(255, 0, 0, 0.3); background: rgba(255, 0, 0, 0.05); }

/* Event Card Styling */
.event-card-details { background: rgba(59, 130, 246, 0.05); border: 1px solid var(--border); padding: 12px; border-radius: 8px; margin-bottom: 10px; }
.event-date-time { font-size: 0.9rem; color: var(--primary); font-weight: 900; margin-bottom: 5px; display: flex; align-items: center; gap: 6px;}
.event-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.event-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }

/* Chat Buttons */
.chat-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: 0.2s; }
.chat-btn i { font-size: 1.2rem; }
.chat-btn.wa { background: rgba(37, 211, 102, 0.1); color: #25D366; border-color: rgba(37, 211, 102, 0.3); }
.chat-btn.ms { background: rgba(0, 132, 255, 0.1); color: #0084FF; border-color: rgba(0, 132, 255, 0.3); }
.chat-btn.ig { background: rgba(225, 48, 108, 0.1); color: #E1306C; border-color: rgba(225, 48, 108, 0.3); }
.unavailable-btn { opacity: 0.4; pointer-events: none; filter: grayscale(100%); background: var(--bg) !important; color: var(--text-dim) !important; border-color: var(--border) !important; }

/* Modal & Footer */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(8px); }
.modal-content { width: 100%; max-width: 280px; padding: 20px; text-align: center; animation: popUp 0.3s ease; }
.modal-actions { display: flex; gap: 8px; }
.outline-btn { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 800; cursor: pointer; }
.glow-btn { flex: 1; padding: 10px; border-radius: 8px; border: none; background: var(--primary); color: #000; font-weight: 800; cursor: pointer; }
@keyframes popUp { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.site-footer { text-align: center; padding: 25px 20px; background: var(--card); border-top: 1px solid var(--border); margin-top: auto; }
.footer-social-links { display: flex; justify-content: center; gap: 12px; margin-bottom: 15px; }
.social-icon-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 1.1rem; cursor: pointer; transition: 0.2s; box-shadow: var(--shadow-md); }
.social-icon-btn.fb:hover { background: #1877F2; color: white; border-color: #1877F2; }
.social-icon-btn.ig:hover { background: #E1306C; color: white; border-color: #E1306C; }
.social-icon-btn.yt:hover { background: #FF0000; color: white; border-color: #FF0000; }
.site-footer p { color: var(--text-dim); font-size: 0.75rem; margin-bottom: 5px; }
.powered-by { font-size: 0.7rem !important; color: var(--primary) !important; opacity: 0.8; }

.stagger-item { opacity: 0; transform: translateY(15px); animation: slideUpFade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
/* 🌟 Premium Empty States Design */
.empty-state {
    padding: 50px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    background: rgba(128, 128, 128, 0.03);
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

body.dark-theme .empty-state {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: 0.5px;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 80%;
}