/*
Theme Name: ForexPro Educational
Theme URI: https://example.com/forexpro
Author: Senior WP Developer
Description: A professional, mobile-first theme for Forex education and trading insights. AdSense ready and RTL compatible.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: forexpro
*/

/* --- Professional Forex Palette --- */
:root {
    --primary-dark: #0f172a;
    --accent-green: #22c55e;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', -apple-system, system-ui, sans-serif; 
    line-height: 1.7; 
    color: var(--text-main); 
    background: var(--bg-light); 
    -webkit-font-smoothing: antialiased;
}

/* RTL Support */
[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

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

/* Header & Navigation */
header { background: var(--primary-dark); color: #fff; padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--accent-green); text-decoration: none; }
.logo span { color: #fff; }

.main-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.main-nav a { color: #cbd5e1; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: var(--accent-green); }

/* Card Layout */
.main-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
@media (min-width: 768px) {
    .main-grid { grid-template-columns: 2fr 1fr; }
}

.post-card { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: var(--card-shadow); 
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
}
.post-card:hover { transform: translateY(-4px); }
.post-card-content { padding: 1.5rem; }
.post-card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary-dark); }
.post-card p { color: var(--text-muted); font-size: 0.95rem; }

/* AdSense Styling */
.adsense-box { 
    background: #f1f5f9; 
    border: 2px dashed #cbd5e1; 
    border-radius: 8px; 
    text-align: center; 
    padding: 1rem; 
    margin: 1.5rem 0; 
    min-height: 100px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: bold;
    text-transform: uppercase;
}

/* Single Article */
article.single-post { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: var(--card-shadow); }
.entry-header { margin-bottom: 2rem; }
.entry-title { font-size: 2.25rem; color: var(--primary-dark); line-height: 1.2; }
.entry-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.forex-disclaimer { 
    background: #fff1f2; 
    border-left: 4px solid #f43f5e; 
    padding: 1rem; 
    margin: 2rem 0; 
    font-size: 0.85rem; 
    color: #9f1239; 
}

/* Sidebar Widgets */
.widget { background: #fff; padding: 1.5rem; border-radius: 12px; box-shadow: var(--card-shadow); margin-bottom: 1.5rem; }
.widget-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary-dark); border-bottom: 2px solid var(--accent-green); display: inline-block; }

footer { background: var(--primary-dark); color: #94a3b8; padding: 3rem 0; margin-top: 4rem; text-align: center; }