/*
Theme Name: WP Jankari
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: একটি সম্পূর্ণ বাংলা ব্লগিং থিম। এই থিমটি বিশেষভাবে বাংলা কন্টেন্টের জন্য ডিজাইন করা হয়েছে। সুন্দর কালার কম্বিনেশন, রেস্পন্সিভ ডিজাইন এবং ইউজার ফ্রেন্ডলি ইন্টারফেস।
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpjankari
Domain Path: /languages
Tags: blog, two-columns, right-sidebar, custom-background, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

এই থিমটি সম্পূর্ণ রেস্পন্সিভ এবং মোবাইল ফ্রেন্ডলি।
*/

/* ===== রিসেট এবং বেস স্টাইল ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', 'SolaimanLipi', Arial, sans-serif;
    line-height: 1.8;
    color: #333333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== হেডার এরিয়া ===== */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    border-bottom: 4px solid #ffd700;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-title a:hover {
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* ===== নেভিগেশন মেনু ===== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

.main-navigation ul li a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

/* ড্রপডাউন মেনু */
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(102, 126, 234, 0.98);
    backdrop-filter: blur(10px);
    min-width: 250px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0.8rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation ul li:hover ul {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-navigation ul li ul li {
    width: 100%;
}

.main-navigation ul li ul li a {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.main-navigation ul li ul li a::after {
    display: none;
}

.main-navigation ul li ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul li ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
}

/* মোবাইল মেনু বাটন */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.menu-toggle:hover {
    background: #ffffff;
    color: #667eea;
    transform: scale(1.05);
}

/* ===== মেইন কন্টেন্ট এরিয়া ===== */
.site-content {
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    flex: 1;
}

/* ===== পোস্ট স্টাইলিং ===== */
.content-area {
    width: 100%;
}

.post {
    background: #ffffff;
    padding: 2.2rem;
    margin-bottom: 2.2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.post:hover::before {
    opacity: 1;
}

/* পোস্ট থাম্বনেইল */
.post-thumbnail {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.post-thumbnail:hover img {
    transform: scale(1.03);
}

/* পোস্ট টাইটেল */
.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a2634;
    line-height: 1.4;
    font-weight: 700;
    word-wrap: break-word;
}

.post-title a {
    color: #1a2634;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-title a:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* পোস্ট মেটা */
.post-meta {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.post-meta .posted-on {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    color: #475569;
}

.post-meta .posted-on::before {
    content: '📅';
    font-size: 1rem;
}

/* পোস্ট কন্টেন্ট */
.post-content {
    margin-top: 1.2rem;
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.9;
    word-wrap: break-word;
}

.post-content p {
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.post-content h1 {
    font-size: 2.2rem;
    margin: 2rem 0 1rem;
    color: #1a2634;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 1.8rem 0 1rem;
    color: #2d3748;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem;
    color: #4a5568;
}

.post-content h4 {
    font-size: 1.3rem;
    margin: 1.2rem 0 0.8rem;
    color: #4a5568;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    background: #f8fafc;
    border-left: 5px solid #667eea;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
    color: #2d3748;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.2rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e67e22;
}

/* রিড মোর বাটন - সিঙ্গেল */
.read-more {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 1.2rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.read-more::before {
    content: '→';
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.read-more:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    padding-right: 2.5rem;
}

.read-more:hover::before {
    transform: translateX(5px);
}

.read-more:hover::after {
    width: 300px;
    height: 300px;
}

/* ডাবল বাটন লুকানো */
.read-more + .read-more,
.post .read-more ~ .read-more {
    display: none !important;
}

/* ===== সাইডবার স্টাইলিং ===== */
.sidebar {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    color: #1a2634;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.5px;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding-left: 0;
    position: relative;
    font-size: 1rem;
}

.sidebar-widget ul li a::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: #667eea;
    padding-left: 15px;
}

.sidebar-widget ul li a:hover::before {
    opacity: 1;
}

/* সার্চ ফর্ম */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input[type="search"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-form button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-form button:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
}

/* ===== ফুটার স্টাইলিং ===== */
.site-footer {
    background: linear-gradient(135deg, #1a2634 0%, #2d3748 100%);
    color: #ffffff;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2, #ffd700);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

.footer-container p {
    margin: 0.5rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== পেজিনেশন ===== */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.pagination a,
.pagination span {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: #475569;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 45px;
    display: inline-block;
}

.pagination span.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.pagination a:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* ===== কমেন্টস ===== */
.comments-area {
    background: #ffffff;
    padding: 2rem;
    margin-top: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* ===== রেস্পন্সিভ ডিজাইন ===== */
/* ট্যাবলেট */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .main-navigation ul {
        gap: 1.5rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
}

/* মোবাইল - ল্যান্ডস্কেপ */
@media screen and (max-width: 900px) {
    .site-content {
        gap: 2rem;
    }
    
    .post {
        padding: 1.8rem;
    }
}

/* মোবাইল - পোর্ট্রেট */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.6rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: relative;
        width: 100%;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: linear-gradient(135deg, #667eea, #764ba2);
        padding: 1rem 0;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .main-navigation ul.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .main-navigation ul li {
        width: 100%;
        text-align: left;
    }
    
    .main-navigation ul li a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation ul li a::after {
        display: none;
    }
    
    .main-navigation ul li ul {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        margin: 0;
        padding-left: 1rem;
    }
    
    .main-navigation ul li.active ul {
        display: block;
    }
    
    .site-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem auto;
        padding: 0 15px;
    }
    
    .post {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-meta {
        font-size: 0.9rem;
    }
    
    .sidebar {
        padding: 1.5rem;
        position: static;
    }
}

/* ছোট মোবাইল */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .menu-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 1.4rem;
    }
    
    .post {
        padding: 1.2rem;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .read-more {
        padding: 0.7rem 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    .post-meta .posted-on {
        width: 100%;
        justify-content: center;
    }
    
    .pagination .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.8rem;
        min-width: 35px;
    }
}

/* খুব ছোট মোবাইল */
@media screen and (max-width: 320px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
}

/* হাই রেজোলিউশন */
@media screen and (min-width: 1400px) {
    html {
        font-size: 18px;
    }
    
    .header-container,
    .site-content,
    .footer-container {
        max-width: 1600px;
    }
}

/* প্রিন্ট মিডিয়া */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .read-more,
    .comments-area {
        display: none;
    }
    
    .site-content {
        display: block;
        margin: 0;
        padding: 0;
    }
    
    .post {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}