/*
Theme Name: GeneratePress
Theme URI: https://generatepress.com
Description: Lightweight WordPress theme.
Author: Tom Usborne
Author URI: https://tomusborne.com
Version: 3.6.1
Text Domain: generatepress
*/

/* --- VARIABLES --- */
:root {
    --primary: #2563eb;       /* Modern Blue */
    --primary-dark: #1e40af;
    --secondary: #0f172a;     /* Slate 900 */
    --text-main: #334155;     /* Slate 700 */
    --bg-light: #f8fafc;      /* Slate 50 */
    --surface: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- GLOBAL TYPOGRAPHY --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: var(--bg-light) !important;
    color: var(--text-main) !important;
    line-height: 1.7 !important;
    font-size: 17px !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

/* --- HEADER & NAV --- */
.site-header {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 10px 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
}

.main-title a {
    font-size: 26px !important;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900 !important;
}

.main-navigation .main-nav ul li a {
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--secondary) !important;
    padding: 0 20px !important;
    border-radius: 6px;
}

.main-navigation .main-nav ul li:hover > a, 
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--primary) !important;
    background: #eff6ff !important;
}

/* --- POST GRID (HOMEPAGE) --- */
.generate-columns-container .post {
    padding: 0 !important;
    margin-bottom: 40px !important;
}

.inside-article {
    background: var(--surface) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease !important;
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.inside-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
    border-color: #bfdbfe !important;
}

/* Post Image */
.post-image {
    margin: 0 !important;
    height: 220px;
    overflow: hidden;
}
.post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}
.inside-article:hover .post-image img {
    transform: scale(1.05);
}

/* Post Content */
.entry-header {
    padding: 25px 25px 10px 25px !important;
}
.entry-summary {
    padding: 0 25px 25px 25px !important;
    flex-grow: 1;
}
.entry-title {
    font-size: 20px !important;
    margin-bottom: 10px !important;
}
.read-more-container {
    padding: 0 25px 25px 25px !important;
    margin-top: auto;
}

a.read-more {
    display: block !important;
    text-align: center;
    background: var(--surface) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}
a.read-more:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* --- SINGLE POST --- */
.single .inside-article {
    padding: 50px !important;
    max-width: 900px;
    margin: 0 auto;
}

.single .entry-title {
    font-size: 38px !important;
    line-height: 1.2 !important;
    margin-bottom: 30px !important;
}

.entry-content h2 {
    font-size: 28px !important;
    margin-top: 50px !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--border);
}

.entry-content p {
    font-size: 18px !important;
    margin-bottom: 25px !important;
    color: #475569 !important;
}

/* Call to Action / Affiliate Box */
.affiliate-box {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}
.affiliate-box h3 {
    color: var(--primary-dark) !important;
    margin-top: 0;
}
.affiliate-btn {
    background: #ea580c !important; /* Orange CTA */
    color: white !important;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    margin-top: 15px;
}
.affiliate-btn:hover {
    transform: scale(1.05);
    background: #c2410c !important;
}

/* Sidebar */
.sidebar .widget {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}
.widget-title {
    font-size: 18px !important;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px !important;
}

/* Footer */
.site-footer {
    background: var(--secondary) !important;
    color: #94a3b8 !important;
    padding: 60px 0 30px 0 !important;
    margin-top: 80px !important;
}