/* 
   Mera Qalam - Pure Green & White Theme
   Design System: Monochrome Jharkhand Green, 3D UI, Mobile-First
*/

:root {
    /* Pure Green Theme Palette */
    --bg-color: #0b3b18; /* Very Deep Green for main background */
    --card-bg: #145928; /* Slightly lighter green for cards to pop */
    --accent-green: #2db65c; /* Bright, vibrant green for accents */
    --dark-green: #05210d; /* Almost black green for borders/shadows */
    --pure-white: #ffffff; /* Crisp white for text and stark contrast elements */
    --text-muted: #aed9bd; /* Soft light green for muted text */
    
    /* Shadows & Borders */
    --shadow-3d: 4px 4px 0px rgba(0, 0, 0, 0.7);
    --border-thick: 3px solid var(--dark-green);
    
    /* Typography */
    --font-heading: 'Merriweather', serif; 
    --font-ui: 'Inter', sans-serif; 
}

body {
    background-color: var(--bg-color);
    color: var(--pure-white);
    font-family: var(--font-ui);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--pure-white); 
    font-weight: 800;
    margin-top: 0;
}

a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
}

/* ---------------------------------------------------
   Layout Utilities
--------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ---------------------------------------------------
   3D Buttons & Interactive Elements
--------------------------------------------------- */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: var(--border-thick);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-3d);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    gap: 8px;
    text-decoration: none;
}

.btn-3d:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px rgba(0,0,0,1);
}

.btn-white { 
    background-color: var(--pure-white); 
    color: var(--dark-green); 
}
.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-green { 
    background-color: var(--accent-green); 
    color: var(--pure-white); 
}
.btn-green:hover {
    background-color: #27a352;
}

.btn-outline {
    background-color: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}
.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 3D Form Inputs */
.input-3d {
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-ui);
    color: var(--dark-green);
    background-color: var(--pure-white);
    border: var(--border-thick);
    border-radius: 8px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}

.input-3d:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 3px 3px 0px var(--accent-green);
}

/* ---------------------------------------------------
   Header & Navigation
--------------------------------------------------- */
.site-header {
    background-color: var(--dark-green);
    border-bottom: 4px solid var(--pure-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
}

.logo-area a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    font-family: var(--font-ui);
    font-size: 32px;
    font-weight: 900;
    color: var(--pure-white);
    margin: 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px var(--accent-green);
    letter-spacing: -1px;
}

.site-tagline {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--pure-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-btn {
    background-color: var(--pure-white);
    border: var(--border-thick);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.5);
    transition: transform 0.1s;
}

.search-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 transparent;
}

/* ---------------------------------------------------
   Dynamic News Cards
--------------------------------------------------- */
.news-card {
    background-color: var(--card-bg);
    border: var(--border-thick);
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.8);
}

.news-card-img-wrap {
    border-bottom: var(--border-thick);
    position: relative;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    color: var(--pure-white);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid var(--dark-green);
    border-radius: 4px;
    box-shadow: 2px 2px 0px var(--dark-green);
    z-index: 2;
}

.badge-white { background-color: var(--pure-white); color: var(--dark-green); }
.badge-green { background-color: var(--accent-green); color: var(--pure-white); }

.news-meta {
    padding: 12px 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-muted);
}

/* Featured Article */
.featured-article {
    background-color: var(--card-bg);
    border: var(--border-thick);
    border-radius: 12px;
    box-shadow: var(--shadow-3d);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-img-wrap {
    border-right: var(--border-thick);
    position: relative;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    font-size: 2.2rem;
    color: var(--pure-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ---------------------------------------------------
   Breaking News Ticker
--------------------------------------------------- */
.breaking-ticker {
    background-color: var(--pure-white);
    border-bottom: var(--border-thick);
    color: var(--dark-green);
    padding: 8px 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.breaking-inner {
    display: flex;
    align-items: center;
}

.breaking-label {
    background-color: var(--dark-green);
    color: var(--pure-white);
    padding: 5px 12px;
    border: 2px solid var(--dark-green);
    border-radius: 4px;
    margin-right: 15px;
    white-space: nowrap;
}

/* Section Titles */
.section-title {
    font-family: var(--font-ui);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px var(--dark-green);
    margin: 30px 0 25px 0;
    display: inline-block;
    border-bottom: 4px solid var(--pure-white);
    line-height: 1;
    color: var(--pure-white);
}

/* ---------------------------------------------------
   Ad Blocks & Monetization
--------------------------------------------------- */
.ad-block {
    background-color: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.5;
}

/* ---------------------------------------------------
   Footer Section
--------------------------------------------------- */
.site-footer {
    background-color: var(--dark-green);
    border-top: 4px solid var(--pure-white);
    padding: 40px 0 20px;
    color: var(--pure-white);
    margin-top: 60px;
}

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

.footer-col h4 {
    font-family: var(--font-ui);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--pure-white);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-col p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--pure-white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------------------------------------------------
   Mobile Responsiveness
--------------------------------------------------- */
@media (max-width: 768px) {
    .site-logo { font-size: 24px; }
    .header-actions { width: 100%; justify-content: space-between; margin-top: 10px; }
    .input-3d { flex: 1; font-size: 13px; padding: 8px; }
    .btn-3d { font-size: 13px; padding: 8px 12px; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-img-wrap { border-right: none; border-bottom: var(--border-thick); }
    .featured-content { padding: 20px; }
    .featured-content h3 { font-size: 1.6rem; }
    .section-title { font-size: 1.8rem; }
}
