/* ===================================================
   সিয়াম রূপালী অনলাইন ফন্ট লিঙ্ক
=================================================== */
@import url('https://fonts.maateen.me/siyam-rupali/font.css');

/* গ্লোবাল রিসেট */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Siyam Rupali', sans-serif !important;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* হেডার সেকশন */
.site-header {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    text-align: center;
    padding: 28px 15px 20px 15px;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.2);
}

.site-header h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-header p {
    font-size: 0.98rem;
    color: #ffe4e6;
    font-weight: 500;
}

/* নেভিগেশন বার (কোনো পিন/স্টিকি থাকবে না, স্ক্রলের সাথে উপরে চলে যাবে) */
.main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 15px;
    position: static !important; /* স্ক্রিনের সাথে পিন হয়ে থাকা বন্ধ করা হয়েছে */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ক্যাটাগরি মেনু (এক লাইনে স্ক্রলেবল) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: inline-block !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    flex-shrink: 0;
}

.nav-item:hover {
    color: #e11d48 !important;
    background-color: #ffe4e6 !important;
    border-color: #fecdd3 !important;
}

.nav-item.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border-color: #be123c !important;
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.28) !important;
}

/* ইউজার অ্যাকশন বাটন সারি */
.user-auth-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-action-primary {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 7px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(5, 150, 105, 0.2) !important;
    white-space: nowrap;
}

.btn-action-secondary {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 7px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.2) !important;
    white-space: nowrap;
}

.btn-auth {
    background: #e11d48 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 7px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap;
}

.user-logged-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name-display {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
}

.btn-user-logout {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
}

/* ক্যালেন্ডার বার */
.date-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.84rem;
    text-align: center;
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* কনটেন্ট কন্টেইনার */
.main-wrapper {
    max-width: 850px;
    margin: 25px auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 1.55rem;
    color: #0f172a;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #e11d48;
    border-radius: 2px;
}

/* গল্পের কার্ড */
.story-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    border-left: 5px solid #e11d48;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.story-badge {
    display: inline-block;
    background: #ffe4e6;
    color: #e11d48;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 8px;
}

.story-title {
    font-size: 1.35rem;
    color: #be123c;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.story-meta {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-snippet {
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 15px;
    text-align: justify;
}

.story-snippet img, 
.story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.read-more-wrapper {
    text-align: right;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    text-decoration: none !important;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.25);
}

/* ইন-ফিড বিজ্ঞাপন */
.native-ad-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
    text-align: center;
}

.native-ad-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

/* পেজিনেশন */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.page-btn.active {
    background-color: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

/* ফুটার */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px 15px;
    font-size: 0.88rem;
    margin-top: 45px;
}

.site-footer a {
    color: #e11d48;
    text-decoration: none;
}

/* মডাল */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.auth-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    padding: 22px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 18px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.auth-tab-btn.active {
    color: #e11d48;
    border-bottom: 2px solid #e11d48;
}

.form-item {
    margin-bottom: 12px;
}

.form-item label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.form-item input, .form-item textarea, .form-item select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.92rem;
    outline: none;
}

.btn-submit-auth {
    width: 100%;
    background: #e11d48;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-feedback-msg {
    margin-top: 10px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
}

/* মোবাইল রেসপনসিভ */
@media (max-width: 640px) {
    .site-header { padding: 20px 10px 16px 10px; }
    .site-header h1 { font-size: 1.65rem; }
    .site-header p { font-size: 0.88rem; }
    
    .main-nav { 
        padding: 8px 10px; 
        position: static !important; /* মোবাইলেও স্ক্রল করলে মেনু সোজা উপরে চলে যাবে */
    }
    .nav-container { gap: 8px; }
    
    .nav-links {
        justify-content: flex-start;
        padding: 2px 2px 6px 2px;
    }
    .nav-item {
        font-size: 0.88rem !important;
        padding: 5px 12px !important;
    }
    
    .user-auth-area {
        justify-content: space-between;
        width: 100%;
        gap: 6px;
    }
    .btn-action-primary, .btn-action-secondary, .btn-auth {
        flex: 1;
        text-align: center;
        padding: 6px 6px !important;
        font-size: 0.82rem !important;
    }

    .date-bar { font-size: 0.76rem; padding: 7px 8px; gap: 6px; }
    .story-card { padding: 16px 12px; }
    .story-title { font-size: 1.2rem; }
    .story-snippet { font-size: 0.95rem; }
}