/* ===================================================================
   ১. রুট থিম কনফিগারেশন (আইকন কালার ও ব্যাকগ্রাউন্ড)
   =================================================================== */
:root[data-theme="dark"] {
    --icon-color: #ffffff; 
    --bg-color: #0f172a;
    --card-bg: #1a202c;
    --border-color: #2d3748;
    --text-main: #ffffff;
}

:root[data-theme="light"] {
    --icon-color: #000000; 
    --bg-color: #ffffff;
    --card-bg: #f7fafc;
    --border-color: #e2e8f0;
    --text-main: #1a202c;
}

/* ===================================================================
   ২. স্প্ল্যাশ স্ক্রিন (লোটি অ্যানিমেশন সহ)
   =================================================================== */
/*work*/
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #070f19;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.splash-logo-box {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    font-size: 17px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 12px;
    margin-bottom: 15px;
    animation: splashPulse 2s infinite ease-in-out;
}

.splash-fade-out { opacity: 0; pointer-events: none; }

/* ===================================================================
   ৩. মেইন অ্যাপ কন্টেইনার ও লেআউট
   =================================================================== */
.app-container {
    width: 100%; max-width: 480px; height: 100vh;
    background-color: var(--bg-color);
    display: flex; flex-direction: column;
    overflow: hidden; position: relative;
    border: 1px solid var(--border-color);
}

.content-scroll { 
    flex: 1; overflow-y: auto; 
    padding: 16px; padding-bottom: 90px; 
}
.content-scroll::-webkit-scrollbar { width: 0; display: none; }

/* ===================================================================
   ৪. গ্যালারি কার্ড স্টাইল
   =================================================================== */
.gallery-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    padding: 15px; border-radius: 12px; 
    margin-bottom: 12px; color: var(--text-main);
}
.gallery-date { font-size: 13px; font-weight: bold; color: #d69e2e; margin-bottom: 5px; }

/* ===================================================================
   ৫. আইকন ও ন্যাভিগেশন স্টাইল
   =================================================================== */
#menuBtn, #themeBtn, #notifBtn {
    color: var(--icon-color); 
    cursor: pointer;
    transition: color 0.3s ease;
}

.bottom-nav { 
    position: fixed; bottom: 0; left: 0; width: 100%; max-width: 480px;
    display: flex; justify-content: space-around; 
    background: var(--bg-color); padding: 10px 0; 
    border-top: 1px solid var(--border-color); z-index: 100;
}

.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px); z-index: 500;
    display: none; opacity: 0; transition: opacity 0.3s ease;
}
.drawer-overlay.open { display: block; opacity: 1; }

.side-drawer {
    position: fixed; top: 0; width: 280px; height: 100%;
    background-color: var(--card-bg); border: 1px solid var(--border-color);
    padding: 24px; z-index: 1001; transition: all 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
}
.left-drawer { left: -285px; }
.right-drawer { right: -285px; }
.drawer-overlay.open .left-drawer { left: 0; }
.drawer-overlay.open .right-drawer {
    right: 0; 
}

/* Work */
.top_title{
    text-align: center;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
}

/* ===================================================================
   ৬. মডেল উইন্ডো স্টাইল
   =================================================================== */
.menu-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.menu-modal.open {
    display: flex;
}

.menu-modal-content {
    background-color: var(--card-bg);
    color: var(--text-main);
    border-radius: 16px;
    padding: 30px 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.menu-modal-close:hover {
    color: var(--accent-gold);
}

#menuModalTitle {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

#menuModalBody {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}
