/*
Theme Name: Kobita Ghor
Theme URI: https://example.com/kobita-ghor
Author: Your Name
Author URI: https://example.com
Description: A WordPress theme for poetry and story sharing website in Bengali.
Version: 1.0
Text Domain: kobita-ghor
*/

/* বাংলা ফন্ট সাপোর্ট */
@import url('https://fonts.maateen.me/siyam-rupali/font.css');
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SolaimanLipi', 'Siyam Rupali', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* হেডার স্টাইলিং */
header {
    background: linear-gradient(to right, #4a6fa5, #166088);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.site-title {
    font-size: 2.2rem;
    font-weight: bold;
}

.user-actions a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    padding: 8px 15px;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s;
}

.user-actions a:hover {
    background: white;
    color: #4a6fa5;
}

/* নেভিগেশন মেনু */
nav.main-menu {
    background-color: #166088;
    padding: 10px 0;
}

.category-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.category-menu li {
    margin-right: 20px;
}

.category-menu a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    transition: all 0.3s;
}

.category-menu a:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* হিরো সেকশন */
.hero {
    background: url('https://via.placeholder.com/1200x400') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #4cb69f;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #3a9e88;
    transform: translateY(-3px);
}

/* কন্টেন্ট সেকশন */
.main-content {
    display: flex;
    margin: 30px 0;
    gap: 30px;
}

.content-area {
    flex: 2;
}

.sidebar {
    flex: 1;
}

.section-title {
    border-bottom: 2px solid #4a6fa5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* পোস্ট গ্রিড */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumb {
    height: 180px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-content {
    padding: 15px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #4a6fa5;
    text-decoration: none;
    font-weight: bold;
}

/* সাইডবার উইজেট */
.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.widget-title {
    border-bottom: 2px solid #4cb69f;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: #4a6fa5;
}

/* কনটেস্ট সেকশন */
.contest-section {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    padding: 40px 0;
    color: white;
    text-align: center;
    margin: 40px 0;
}

/* ফুটার */
footer {
    background: #343a40;
    color: white;
    padding: 40px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    border-bottom: 2px solid #4cb69f;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4cb69f;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* রেসপনসিভ ডিজাইন */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .user-actions {
        margin-top: 15px;
    }
    
    .category-menu {
        justify-content: center;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
}