/*
Theme Name: প্রথম আলো
Theme URI: https://yoursite.com
Description: A modern Bengali news portal theme inspired by Prothom Alo. Fully responsive with category management, custom widgets, and WooCommerce support.
Version: 1.0.0
Author: Your Name
Author URI: https://yoursite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prothom-alo
Tags: news, magazine, blog, bengali, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Reset
2.0 Typography
3.0 Elements
4.0 Header
5.0 Navigation
6.0 Content
7.0 Sidebar
8.0 Footer
9.0 Media Queries
--------------------------------------------------------------*/

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/*--------------------------------------------------------------
2.0 Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b91c1c;
}

/*--------------------------------------------------------------
3.0 Elements
--------------------------------------------------------------*/
img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin: 0 0 1.5rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
4.0 Header
--------------------------------------------------------------*/
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #dc2626;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.header-main {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    font-size: 2.5rem;
    color: #dc2626;
    margin: 0;
}

.site-description {
    font-size: 0.875rem;
    color: #666;
}

/*--------------------------------------------------------------
5.0 Navigation
--------------------------------------------------------------*/
.main-navigation {
    background: #fff;
    padding: 1rem 0;
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.nav-menu li a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu li a:hover {
    color: #dc2626;
}

/*--------------------------------------------------------------
6.0 Content
--------------------------------------------------------------*/
.site-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.content-area {
    background: #fff;
}

.news-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #dc2626;
    margin-bottom: 1.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc2626;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-card-content {
    padding: 1rem;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card-title a {
    color: #1a1a1a;
}

.news-card-title a:hover {
    color: #dc2626;
}

.news-meta {
    font-size: 0.875rem;
    color: #666;
}

/*--------------------------------------------------------------
7.0 Sidebar
--------------------------------------------------------------*/
.widget-area {
    background: #fff;
}

.widget {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.25rem;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dc2626;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.widget a {
    color: #333;
}

.widget a:hover {
    color: #dc2626;
}

/*--------------------------------------------------------------
8.0 Footer
--------------------------------------------------------------*/
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: #dc2626;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.875rem;
}

/*--------------------------------------------------------------
9.0 Media Queries
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #e5e5e5;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media screen and (max-width: 480px) {
    .site-branding h1 {
        font-size: 2rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/*--------------------------------------------------------------
Utility Classes
--------------------------------------------------------------*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
