/* 
 * SocialVideo Premium App Theme - Final Optimized Version
 * High-End Mobile UI (White & Blue)
 */

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

:root {
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --bg-page: #ffffff;
    --bg-input: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #94a3b8;
    --border: #f1f5f9;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --shadow-plus: 0 10px 20px rgba(99, 102, 241, 0.35);
}

/* ১. বেস রিসেট */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent; /* মোবাইলে ক্লিক করলে নীল দাগ হবে না */
}

html, body {
    height: 100%;
    background-color: var(--bg-page) !important;
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* ২. প্রফেশনাল হেডার */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* আইওএস স্টাইল গ্লাস ইফেক্ট */
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.6px;
    color: #000;
}

.logo-icon {
    width: 36px;
    height: 34px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--text-muted);
}

/* ৩. সার্চ বার (Mockup Style) */
.search-container {
    padding: 10px 20px;
}

.search-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.05);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.search-box i {
    color: var(--text-muted);
    font-size: 18px;
}

/* ৪. ট্যাব সিস্টেম */
.tabs-bar {
    display: flex;
    gap: 28px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
}

.tab-item {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    text-decoration: none;
    padding-bottom: 12px;
    transition: 0.2s;
}

.tab-item.active {
    color: var(--text-main);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 3.5px;
    background: var(--primary);
    border-radius: 10px;
}

/* ৫. মডার্ন ভিডিও গ্রিড (২ কলাম) */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px 15px 100px; /* নিচে স্পেস যাতে ন্যাভ বার ভিডিও না ঢাকে */
}

.video-card {
    position: relative;
    border-radius: 26px; /* বেশি রাউন্ডেড প্রিমিয়াম লুক */
    overflow: hidden;
    aspect-ratio: 9/14;
    background: #f1f5f9;
    box-shadow: var(--shadow-soft);
    transform: translateZ(0); /* হার্ডওয়্যার এক্সিলারেশন */
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:active img {
    transform: scale(1.05);
}

.card-top-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 5;
}

.card-bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5)); /* গ্রাডিয়েন্ট ওভারলে */
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    z-index: 5;
}

/* ৬. বটম ন্যাভ বার */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border);
    z-index: 2000;
    padding-bottom: env(safe-area-inset-bottom); /* আইফোনের নচ এরিয়া হ্যান্ডেল করবে */
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}

.nav-item i {
    font-size: 22px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary);
}

/* ৭. ফ্লোটিং প্লাস (+) বাটন */
.plus-wrapper {
    margin-top: -45px; /* বাটনটিকে একটু উপরে তোলা */
}

.plus-btn {
    width: 58px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    box-shadow: var(--shadow-plus);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plus-btn:active {
    transform: scale(0.85);
}

/* ৮. এম্পটি স্টেট (ডাটা না থাকলে) */
.empty-state {
    grid-column: 1 / -1; /* পুরো গ্রিড জুড়ে দেখাবে */
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 90px;
    height: 90px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #cbd5e1;
}

.btn-cta {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 16px;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}
/* ============================================================
   ভিডিও প্লেয়ার (TIKTOK STYLE) - FULL SCREEN UI
   ============================================================ */

/* ভিডিও প্লেয়ারের মূল কন্টেইনার */
.video-player-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000; /* ভিডিও পেজ সব সময় কালো হবে */
    overflow: hidden;
    z-index: 9999; /* এটি সবকিছুর উপরে থাকবে */
}

/* ফুল স্ক্রিন ভিডিও ফ্রেম */
.video-full-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* টপ ন্যাভ (Back Button) */
.video-top-nav {
    position: absolute;
    top: env(safe-area-inset-top, 20px);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 100;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

/* ডানের অ্যাকশন সাইডবার */
.video-side-actions {
    position: absolute;
    right: 12px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 100;
}

.side-item {
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.side-item:active { transform: scale(0.9); }

.side-item i {
    font-size: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.side-item span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

/* প্রোফাইল আইকন (ডানে) */
.profile-side {
    position: relative;
    margin-bottom: 5px;
}

.profile-side img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.add-plus-small {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #fe2c55; /* TikTok Red */
    color: #fff;