/* ============================================================================
   KLIQBD — Unified Kalpurush Typography & Pure White + Cyan/Purple Theme
   Synced 100% with HTML Modules 01–08
   ============================================================================ */

@font-face {
  font-family: 'Kalpurush';
  src: url('https://cdn.jsdelivr.net/gh/maateen/kalpurush-web-font@master/fonts/Kalpurush.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/maateen/kalpurush-web-font@master/fonts/Kalpurush.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalpurush';
  src: url('https://cdn.jsdelivr.net/gh/maateen/kalpurush-web-font@master/fonts/Kalpurush.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/maateen/kalpurush-web-font@master/fonts/Kalpurush.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --k-font: 'Kalpurush', 'Hind Siliguri', system-ui, sans-serif;
  --k-cyan-50: #ecfeff;
  --k-cyan-100: #ccf6ff;
  --k-cyan-600: #0284c7;
  --k-purple-50: #faf5ff;
  --k-purple-100: #f3e8ff;
  --k-purple-600: #7c3aed;
  --k-brand: linear-gradient(135deg, #00d2ff 0%, #8a2be2 100%);
  --k-hero: linear-gradient(135deg, #ccf6ff 0%, #ffffff 50%, #f3e8ff 100%);
  --k-sidebar-bg: #faf5ff;
  --k-sidebar-border: #e9d5ff;
  --bg-app: #ffffff;
  --canvas-base: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-elevated: #e2e8f0;
}

* {
  box-sizing: border-box;
  font-family: var(--k-font);
}

/* Responsive Typography: Compact on Mobile, Larger & Comfortable on Desktop */
    html {
      font-size: 15px;
      scroll-behavior: smooth;
    }
    @media (min-width: 768px) {
      html { font-size: 17px; }
    }
    @media (min-width: 1024px) {
      html { font-size: 18px; }
    }
    @media (min-width: 1440px) {
      html { font-size: 19px; }
    }

body {
  margin: 0;
  background: #ffffff;
  color: #1e293b;
  font-family: var(--k-font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.k-brand { background: var(--k-brand); color: #ffffff; }
.k-hero { background: var(--k-hero); border: 1px solid #e9d5ff; }
.k-cyan-card { background: #ecfeff; border: 1px solid #a5ecff; }
.k-purple-card { background: #faf5ff; border: 1px solid #e9d5ff; }
.k-header-line,
.k-header-gradient-line { height: 2px; width: 100%; background: var(--k-brand); display: block; }
.k-sidebar-surface { background: var(--k-sidebar-bg); border-color: var(--k-sidebar-border); }

.k-profile-link {
  cursor: pointer;
  transition: color 0.15s ease;
}
.k-profile-link:hover {
  color: #7c3aed;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-caption {
  font-size: 1.05rem;
  line-height: 1.74;
  color: #1e293b;
  white-space: pre-line;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.55); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 18px rgba(0, 210, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}
.call-pulse-ring {
  animation: pulseRing 2s infinite;
}

.thin-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.thin-scroll::-webkit-scrollbar-track { background: transparent; }
.thin-scroll::-webkit-scrollbar-thumb { background: #e9d5ff; border-radius: 999px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade { animation: fadeIn 0.2s ease-out; }


    /* Standard Uniform Media Frames (Feed, Profile & Chat) */
    .k-photo-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 10;
      max-height: 460px;
      border-radius: 1rem;
      overflow: hidden;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
    }
    .k-photo-frame > img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .k-video-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 1rem;
      overflow: hidden;
      background: #090d16;
      border: 1px solid #1e293b;
    }
    .k-video-frame > video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #000000;
      display: block;
    }
