/*
Theme Name: Bornomala Blog
Theme URI: https://bornomala.blog/
Author: Sabbir Ahmad
Description: A custom community blog theme with modern UI/UX, frontend dashboard, and dynamic features.
Version: 1.0
Text Domain: bornomala
*/

/* বেসিক রিসেট ও ফন্ট */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Hind Siliguri', sans-serif; }
body { background-color: #f4f7f6; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
input, button, select, textarea { font-family: 'Hind Siliguri', sans-serif; }

/* হেডার সেকশন */
.header-top { background-color: #1a4b76; color: white; padding: 15px 50px; display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
.logo-area h1 { font-size: 36px; font-weight: 700; margin:0; }
.logo-area p { font-size: 14px; margin-top: -5px; font-weight: 300; }

/* স্লাইড অ্যানিমেশন টেক্সট */
.slogan-area { font-size: 20px; font-weight: 500; white-space: nowrap; position: relative; animation: slideAndStop 2s ease-out forwards; opacity: 0; transform: translateX(50px); }
@keyframes slideAndStop { to { opacity: 1; transform: translateX(0); } }

/* ডায়নামিক মেনুবার */
.main-nav { background-color: #216096; display: flex; justify-content: space-between; align-items: center; padding: 0 50px; color: white; }

/* ডেস্কটপে মোবাইল মেনু বাটন লুকানো */
.mobile-menu-toggle { display: none; }

.menu-list { display: flex; }
.menu-list > li { position: relative; }
.menu-list > li > a { display: block; padding: 15px 20px; font-size: 16px; font-weight: 500; border-right: 1px solid #1a4b76; transition: background 0.3s; color: white; }
.menu-list > li > a:hover { background-color: #153b5c; }

/* অ্যাক্টিভ মেনু */
.menu-list > li.current-menu-item > a, 
.menu-list > li.current-menu-ancestor > a { background-color: #f4f7f6; color: #1a4b76; font-weight: 700; }

/* ড্রপডাউন বা সাব-মেনু */
.menu-list .sub-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #f4f7f6; color: #333; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 999; }
.menu-list li:hover > .sub-menu { display: block; }
.menu-list .sub-menu li { position: relative; }
.menu-list .sub-menu li a { display: block; padding: 12px 15px; border-bottom: 1px solid #ddd; font-weight: 400; color: #333; transition: background 0.3s; }
.menu-list .sub-menu li a:hover { background-color: #e2e2e2; color: #1a4b76; }

/* ডানপাশের নেভিগেশন */
.nav-right { display: flex; align-items: center; }
.nav-right a { padding: 15px; font-weight: 600; font-size: 16px; color: white; }
.nav-right .register-btn { border: 1px solid #d9534f; padding: 5px 15px; margin-left: 10px; border-radius: 3px; background-color: rgba(217, 83, 79, 0.1); transition: background 0.3s; }
.nav-right .register-btn:hover { background-color: #d9534f; color: white; }

/* মূল কন্টেন্ট এরিয়া */
.container { display: flex; gap: 20px; padding: 20px 50px; max-width: 1200px; margin: 0 auto; }
.main-content { flex: 3; }
.sidebar { flex: 1; }

/* স্লাইডার ব্যানার */
.slider-banner { background: linear-gradient(to right, #e3342f, #38c172); color: white; text-align: center; padding: 80px 20px; border-radius: 5px; margin-bottom: 20px; font-size: 32px; font-weight: 700; }

/* অ্যাড স্পেস */
.ad-space { background-color: #e9ecef; color: #6c757d; border: 2px dashed #ced4da; display: flex; align-items: center; justify-content: center; font-weight: 600; border-radius: 5px; margin-bottom: 20px; margin-top: 20px; text-align: center; }
.ad-banner { width: 100%; height: 90px; }
.ad-square { width: 100%; height: 250px; }
.ad-tall { width: 100%; height: 600px; }

/* সর্বশেষ ব্লগ লিস্ট */
.section-title { font-size: 20px; font-weight: 600; color: #1a4b76; border-bottom: 2px solid #1a4b76; padding-bottom: 5px; margin-bottom: 15px; margin-top: 30px; }

/* সাইডবার উইজেট */
.widget { background: white; margin-bottom: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; }
.widget-title { font-size: 16px; font-weight: 600; color: white; background: #5bc0de; padding: 10px; text-align: center; }
.widget-content { padding: 15px; }

/* ফুটার সেকশন */
.site-footer { background-color: #153b5c; color: #e9ecef; padding: 50px 50px 20px 50px; margin-top: 40px; }
.footer-container { display: flex; gap: 30px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; justify-content: space-between; }
.footer-col { flex: 1; min-width: 220px; }
.footer-col h3 { font-size: 20px; color: #fff; margin-bottom: 20px; font-weight: 600; border-bottom: 2px solid #5bc0de; padding-bottom: 8px; display: inline-block; }

/* પপ-আপ ও রেজিস্ট্রেশন ফর্ম ডিজাইন */
.login-popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; justify-content: center; align-items: center; }
.login-content { background: white; padding: 30px; border-radius: 8px; width: 90%; max-width: 450px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-popup { position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 24px; color: #333; font-weight: bold; }
.custom-form-group { margin-bottom: 15px; text-align: left; }
.custom-form-group label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 5px; }
.custom-form-group input[type="text"], 
.custom-form-group input[type="email"], 
.custom-form-group input[type="password"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

/* রিয়েল রিঅ্যাকশন এবং কমেন্ট বক্স স্টাইল (নতুন যুক্ত) */
.reaction-box { display: flex; gap: 15px; justify-content: center; margin: 25px 0; padding: 15px; background: #fdfdfd; border-radius: 8px; border: 1px solid #eee; }
.react-btn { display: flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 20px; border: 1px solid #ddd; background: #fff; cursor: pointer; transition: all 0.3s ease; font-weight: 600; color: #555; font-size: 15px; outline: none; }
.react-btn:hover { background: #f0f2f5; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.react-btn.active { background: #eef7fc; border-color: #5bc0de; color: #1a4b76; }
.react-btn span.emoji { font-size: 20px; }

/* কমেন্ট সেকশন */
.comments-area { background: #fff; padding: 25px; border-radius: 8px; margin-top: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #eee; }
.comments-title { font-size: 20px; color: #1a4b76; border-bottom: 2px solid #5bc0de; padding-bottom: 8px; margin-bottom: 20px; display: inline-block; }
.comment-respond { margin-bottom: 30px; }
.comment-form-comment textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; resize: vertical; font-size: 15px; font-family: inherit; transition: 0.3s; }
.comment-form-comment textarea:focus { background: #fff; border-color: #5bc0de; outline: none; box-shadow: 0 0 5px rgba(91,192,222,0.2); }
.form-submit input[type="submit"] { background: #1a4b76; color: #fff; padding: 10px 20px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; font-size: 15px; transition: 0.3s; }
.form-submit input[type="submit"]:hover { background: #153b5c; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li.comment { background: #fff; padding: 15px 0; border-bottom: 1px dashed #eee; margin-bottom: 0; }
.comment-body { display: flex; gap: 15px; }
.comment-avatar img { border-radius: 50%; border: 2px solid #eee; width: 45px; height: 45px; }
.comment-content-wrap { flex-grow: 1; background: #f0f2f5; padding: 12px 15px; border-radius: 15px; border-top-left-radius: 0; }
.comment-author-name { font-weight: 700; color: #1a4b76; font-size: 15px; margin-bottom: 3px; display: block; }
.comment-meta-time { font-size: 11px; color: #888; margin-bottom: 8px; display: block; }
.comment-text p { margin: 0; font-size: 14px; color: #333; line-height: 1.5; }
.reply { margin-top: 8px; }
.comment-reply-link { font-size: 13px; font-weight: 600; color: #5bc0de; text-decoration: none; }
.comment-list .children { list-style: none; padding-left: 0; margin-left: 50px; border-left: 2px solid #e9ecef; margin-top: 15px; }
.comment-list .children li.comment { border-bottom: none; padding-bottom: 0; padding-left: 15px; }

/* =========================================================
   রেসপন্সিভ ডিজাইন (মোবাইল মেনু ফিক্স সহ)
   ========================================================= */

@media screen and (max-width: 991px) {
    .container { flex-wrap: wrap; padding: 20px; }
    .main-content { flex: 1 1 100%; max-width: 100%; }
    .sidebar { flex: 1 1 100%; max-width: 100%; }
    .footer-container { gap: 20px; }
}

@media screen and (max-width: 768px) {
    .header-top { flex-direction: column; text-align: center; padding: 15px; }
    .logo-area img { margin: 0 auto; }
    .slogan-area { margin-top: 10px; font-size: 16px; white-space: normal; animation: none; opacity: 1; transform: none; }
    
    .main-nav { display: flex; flex-wrap: wrap; padding: 10px 15px; justify-content: space-between; align-items: center; }
    .mobile-menu-toggle { display: block; color: white; font-size: 16px; font-weight: 600; cursor: pointer; }
    
    /* মেনু লিস্ট লুকানো থাকবে, JS দিয়ে active হলে শো করবে */
    .menu-list { display: none; width: 100%; flex-direction: column; background-color: #153b5c; margin-top: 10px; border-radius: 5px; }
    .menu-list.active { display: flex !important; }
    .menu-list > li > a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px 15px; }
    
    .slider-banner { padding: 40px 15px; font-size: 24px; min-height: 150px; background-size: cover !important; }
    
    .footer-col h3 { position: relative; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 10px; display: block; }
    .footer-col h3::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 20px; font-weight: 300; }
    .footer-col.active h3::after { content: '-'; }
    .footer-col .toggle-content { display: none; }
    .footer-col.active .toggle-content { display: block; padding-top: 10px; }
    
    .reaction-box { flex-wrap: wrap; }
    .comment-list .children { margin-left: 20px; }
}

img.emoji { width: 1em !important; height: 1em !important; display: inline !important; margin: 0 .1em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; }