/* 
   ফাইল নাম: style.css
   কাজ: পুরো ওয়েবসাইটের ডিজাইন (লাল-সবুজ থিম + শেয়ার বাটন + রেসপন্সিভ)
*/

:root {
    --bd-green: #006a4e; /* পতাকার সবুজ */
    --bd-red: #f42a41;   /* পতাকার লাল */
    --light-bg: #fdfdfd;
    --text-color: #333;
    --border-color: #ddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: var(--light-bg); color: var(--text-color); line-height: 1.6; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- টপ বার --- */
.top-bar { background: #222; color: #fff; padding: 5px 20px; text-align: right; font-size: 0.9rem; }
.lang-switch a { color: #ccc; margin-left: 10px; font-weight: bold; }
.lang-switch a.active { color: var(--bd-red); text-decoration: underline; }

/* --- লোগো এরিয়া --- */
.logo-area { text-align: center; padding: 20px 0; background: #fff; border-bottom: 5px solid var(--bd-red); }
.logo-img { height: 100px; width: auto; border-radius: 50%; border: 3px solid var(--bd-green); padding: 3px; }
.site-title { color: var(--bd-green); margin-top: 10px; font-size: 2rem; font-weight: bold; }

/* =========================================
   অ্যারো সহ স্লাইডেবল (Scrollable) মেনু 
========================================== */
.main-nav { 
    background: var(--bd-green); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    width: 100%; 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex;
    align-items: center;
    position: relative; /* অ্যারো বসানোর জন্য */
}

/* অ্যারো বাটন ডিজাইন */
.nav-arrow {
    background: rgba(0, 0, 0, 0.3); /* হালকা কালো ব্যাকগ্রাউন্ড */
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    height: 100%;
}

.nav-arrow:hover { background: rgba(0, 0, 0, 0.7); }

/* মেনুর লিস্ট ডিজাইন */
.main-nav ul { 
    display: flex; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%; 
    scroll-behavior: smooth; /* ক্লিক করলে স্মুথলি সরবে */
}

/* স্ক্রলবার লুকানো */
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav ul { -ms-overflow-style: none; scrollbar-width: none; }

.main-nav ul li { flex-shrink: 0; }

.main-nav ul li a { 
    display: inline-block; 
    padding: 12px 18px; 
    color: #fff; 
    font-size: 1rem; 
    border-right: 1px solid rgba(255,255,255,0.1); 
    white-space: nowrap; 
}

.main-nav ul li a:hover, .main-nav ul li a.active { 
    background: var(--bd-red); 
    color: #fff; 
}

/* মোবাইল স্ক্রিনে অ্যারো হাইড করা (কারণ মোবাইলে আঙুল দিয়েই স্লাইড করা সহজ) */
@media (max-width: 768px) {
    .nav-arrow { display: none; }
}



/* --- মেইন কন্টেন্ট --- */
.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.section-title { color: var(--bd-green); border-left: 5px solid var(--bd-red); padding-left: 15px; margin-bottom: 25px; }

/* 
   *** ফিক্সড: গানগুলোকে ২ কলামে দেখানোর জন্য Grid ব্যবহার করা হলো *** 
*/
.content-wrapper { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}

.media-item { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* প্লেয়ার */
.media-player video { width: 100%; border-radius: 5px; background: #000; max-height: 500px; }
.audio-player { margin-top: 15px; background: #f1f1f1; padding: 10px; border-radius: 5px; }
.audio-player audio { width: 100%; }

/* বাটনস */
.download-zone { 
    display: flex; 
    flex-wrap: nowrap; /* নিচে ভাঙতে দেবে না, এক লাইনেই রাখবে */
    gap: 8px; /* বাটনগুলোর মাঝের গ্যাপ সামান্য কমানো হয়েছে */
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px dashed #ccc; 
    align-items: center; 
    overflow-x: auto; /* স্ক্রিন খুব ছোট হলে ভাঙবে না, ডানে-বামে স্লাইড হবে */
}

/* স্ক্রলবার লুকানোর জন্য */
.download-zone::-webkit-scrollbar { display: none; }
.download-zone { -ms-overflow-style: none; scrollbar-width: none; }


.btn { 
    padding: 6px 12px; /* প্যাডিং কমানো হয়েছে যাতে জায়গা কম নেয় */
    border-radius: 4px; 
    color: white; 
    font-size: 0.85rem; /* ফন্ট সাইজ সামান্য ছোট করা হয়েছে */
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
    cursor: pointer; 
    border: none; 
    text-decoration: none; 
    white-space: nowrap; /* বাটনের লেখা ভাঙবে না */
}
.btn-dl-video { background: var(--bd-green); }
.btn-dl-audio { background: #e67e22; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* স্ক্রিপ্ট বক্স */
.script-box { margin-top: 20px; background: #fafafa; border: 1px solid #eee; padding: 15px; border-radius: 5px; position: relative; }
.script-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 2px solid var(--bd-red); padding-bottom: 5px; }
.script-content { max-height: 200px; overflow-y: auto; white-space: pre-wrap; font-family: 'Courier New', monospace; font-size: 0.95rem; color: #555; }
.btn-copy { background: #34495e; font-size: 0.8rem; padding: 5px 10px; color: white; border: none; cursor: pointer; border-radius: 3px; }

/* --- ৫টি সোশ্যাল শেয়ার আইকন ডিজাইন --- */
.share-area {
    display: flex;
    align-items: center;
    gap: 6px; /* সোশ্যাল আইকনগুলোর মাঝের গ্যাপ কমানো হয়েছে */
    margin-left: auto; /* একদম ডান দিকে ঠেলে দেবে */
}

.share-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
    margin-right: 5px;
    white-space: nowrap;
}

.social-icon {
    width: 28px; /* সাইজ ৩২ থেকে ২৮ পিক্সেল করা হয়েছে */
    height: 28px; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.2s;
    cursor: pointer;
    flex-shrink: 0; /* আইকন চ্যাপ্টা হবে না */
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* কালার কোড */
.fb { background: #1877F2; }
.tw { background: #000000; }
.ln { background: #0A66C2; }
.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.wa { background: #25D366; }

/* ফুটার */
footer { background: var(--bd-green); color: #fff; text-align: center; padding: 30px 0; margin-top: 50px; border-top: 5px solid var(--bd-red); }


/* =========================================
   মোবাইল রেসপন্সিভ (Media Queries)
========================================== */

/* ট্যাবলেট ও ছোট ল্যাপটপের জন্য */
@media (max-width: 992px) {
    .content-wrapper { 
        grid-template-columns: 1fr; /* ২ কলাম ভেঙে ১ কলাম হয়ে যাবে */
    }
}

/* মোবাইলের জন্য */
@media (max-width: 768px) {
    /* মেনুর ফ্লেক্স ডিরেকশন কলাম করা যাবে না, কারণ আমরা সোয়াইপ রাখতে চাই */
    nav ul li a { 
        font-size: 0.95rem; 
        padding: 10px 12px; 
    }
    
    .download-zone { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    
    .share-area { 
        margin-top: 15px; 
        margin-left: 0; 
        width: 100%; 
        justify-content: flex-start; 
    }
}

/* =========================================
   ৩-কলাম রেসপন্সিভ ফুটার ডিজাইন 
========================================== */
.site-footer {
    background: var(--bd-green);
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 60px;
    border-top: 5px solid var(--bd-red);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ৩ কলাম */
    gap: 30px;
}

.footer-col h3 {
    color: var(--bd-red); /* টাইটেলের রঙ লাল */
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.footer-col p {
    color: #ddd;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px; /* হোভার করলে সামান্য ডানে সরবে */
}

/* ফুটারের নিচের কপিরাইট অংশ */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* মোবাইল রেসপন্সিভ (১ কলাম) */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* মোবাইলে ১ কলাম */
        text-align: left;
    }
}