/*
Theme Name: Daily Influential
Theme URI: https://dailyinfluential.com
Author: Gent
Author URI: https://dailyinfluential.com
Description: A premium WordPress theme for Daily Influential newsletter - featuring clean sans-serif typography, elegant layouts, and optimized for newsletter content.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daily-influential
Tags: blog, newsletter, clean, minimal, sans-serif-fonts

This theme, like WordPress, is licensed under the GPL.
*/

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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.site-header {
    background-color: #1a1a1a;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.site-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.main-navigation a:hover {
    opacity: 0.7;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section (Homepage) - UPDATED SPLIT LAYOUT */
.hero-section {
    background-color: #f9f9f9;
    padding: 80px 40px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    padding-right: 20px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: left;
}

.hero-tagline {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
    text-align: left;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 0;
    color: #333;
    text-align: left;
}

/* CTA Box */
.cta-box {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px;
    border-radius: 8px;
}

.cta-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #cccccc;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.email-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #ffffff;
}

.email-form button {
    width: 100%;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    background-color: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.email-form button:hover {
    background-color: #f0f0f0;
}

.privacy-note {
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* Content Container */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.recent-issues-title {
    text-align: center !important;
    font-size: 42px;
    margin-bottom: 70px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.recent-posts-grid {
    max-width: 900px;
    margin: 0 auto;
}

.view-all-wrapper {
    text-align: center !important;
    margin-top: 50px;
}

/* Archive Header */
.archive-header {
    padding: 80px 40px 60px;
    background-color: #f9f9f9;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.archive-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.archive-header p {
    font-size: 20px;
    color: #666;
}

/* Search Bar - NEW */
.search-filter-container {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 40px;
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: #1a1a1a;
}

.search-bar button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #333;
}

.tag-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag-filter {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-filter:hover,
.tag-filter.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* Article Archive */
.posts-grid {
    display: grid;
    gap: 40px;
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 40px;
}

/* Post Card */
.post-card {
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
    align-items: center;
}

/* Issue Number Badge - UPDATED WITH TILT */
.post-number,
.issue-number {
    font-weight: 700;
    color: #ffffff;
    background-color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: transform 0.3s;
}

.post-number:hover,
.issue-number:hover {
    transform: rotate(0deg);
}

/* Special Report Badge - GOLDEN */
.special-report-badge {
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 8px rgba(255, 165, 0, 0.3);
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    text-transform: uppercase;
    border: 2px solid #FFD700;
}

.special-report-badge:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 3px 3px 12px rgba(255, 165, 0, 0.5);
}

/* In-Depth Guide Badge - BLUE */
.in-depth-guide-badge {
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0066CC 0%, #004999 100%);
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 8px rgba(0, 102, 204, 0.3);
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    text-transform: uppercase;
    border: 2px solid #0066CC;
}

.in-depth-guide-badge:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 3px 3px 12px rgba(0, 102, 204, 0.5);
}

.post-card h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.post-card h2 a {
    color: #1a1a1a;
}

.post-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

/* Tags - UPDATED POSITIONING */
.post-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.read-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

.read-more:hover {
    background-color: #333;
    opacity: 1;
}

/* Single Post */
.article-header {
    padding: 80px 40px 60px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    align-items: center;
}

.article-header h1 {
    font-size: 52px;
    margin-bottom: 30px;
}

.article-intro {
    font-size: 22px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

/* Author Byline */
.article-author-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 25px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

/* Author Bio Box */
.author-bio-box {
    margin: 50px 0 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 4px solid #1a1a1a;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-bio-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.author-bio-text {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.author-bio-text p {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.author-bio-text p:last-child {
    margin-bottom: 0;
}

.article-tags {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Article Content */
.article-content {
    padding: 60px 40px 80px;
    background-color: #ffffff;
}

.article-content-inner {
    max-width: 700px;
    margin: 0 auto;
}

/* Share Section */
.share-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    padding: 100px 40px;
    text-align: center;
    border-top: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.share-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #666 0%, #999 50%, #666 100%);
}

.share-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.share-section h3 {
    font-size: 42px;
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.share-description {
    font-size: 20px;
    color: #d0d0d0;
    margin-bottom: 45px;
    line-height: 1.7;
    font-weight: 400;
}

/* Share Email Form - Base Styles */
.share-email-form,
.share-section form {
    max-width: 100%;
    margin: 0 auto 25px;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.share-email-form input[type="email"],
.share-section form input[type="email"],
.share-section form input[type="text"] {
    width: 100% !important;
    padding: 20px 28px !important;
    font-size: 18px !important;
    border: 3px solid #444 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    transition: all 0.3s !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.share-email-form input[type="email"]:focus,
.share-section form input[type="email"]:focus {
    outline: none !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}

.share-email-form button,
.share-section form button,
.share-section form input[type="submit"] {
    width: 100% !important;
    padding: 20px 40px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
}

.share-email-form button:hover,
.share-section form button:hover,
.share-section form input[type="submit"]:hover {
    background-color: #f5f5f5 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.share-email-form button:active,
.share-section form button:active {
    transform: translateY(-1px);
}

.share-section .privacy-note {
    color: #aaa;
    font-size: 15px;
    margin-top: 20px;
    font-weight: 400;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.share-button {
    padding: 12px 24px;
    background-color: #1a1a1a;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.share-button:hover {
    background-color: #333;
    opacity: 1;
}

.article-content p {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 28px;
    margin: 60px 0 25px 0;
}

.article-content h3 {
    font-size: 24px;
    margin: 40px 0 20px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid #1a1a1a;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

/* Post Navigation - UPDATED FOR MOBILE RESPONSIVENESS */
.post-navigation {
    padding: 50px 40px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-card {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: block;
}

.nav-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 1;
}

.nav-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
    display: block;
}

.nav-card h4 {
    font-size: 20px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 40px 30px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p {
    margin-bottom: 20px;
    color: #999;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        padding: 20px;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-section h1 {
        font-size: 32px;
        text-align: center;
    }

    .hero-tagline {
        font-size: 18px;
        text-align: center;
    }

    .hero-description {
        font-size: 16px;
        text-align: center;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .content-wrapper,
    .posts-grid {
        padding: 60px 20px;
    }

    /* Search Bar Mobile */
    .search-filter-container {
        padding: 0 20px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar button {
        width: 100%;
    }

    .archive-header {
        padding: 60px 20px 40px;
    }
    
    /* Author Bio Responsive */
    .author-bio-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }
    
    .author-bio-image {
        margin-bottom: 15px;
    }

    .archive-header h1 {
        font-size: 36px;
    }

    .post-card {
        padding: 30px 20px;
    }

    .post-card h2 {
        font-size: 24px;
    }

    .article-header {
        padding: 60px 20px 40px;
    }

    .article-header h1 {
        font-size: 36px;
    }

    .article-intro {
        font-size: 19px;
    }

    .article-content {
        padding: 40px 20px 60px;
    }

    .article-content p,
    .article-content li {
        font-size: 17px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    /* Post Navigation Mobile - SINGLE COLUMN */
    .post-navigation {
        padding: 40px 20px;
    }

    .post-navigation .nav-container,
    .nav-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .share-section {
        padding: 60px 20px;
    }
    
    .share-section h3 {
        font-size: 32px;
    }
    
    .share-description {
        font-size: 18px;
    }
    
    .share-email-form input[type="email"] {
        padding: 18px 22px;
        font-size: 16px;
    }
    
    .share-email-form button {
        padding: 18px 32px;
        font-size: 16px;
    }

    .nav-card {
        padding: 25px 20px;
    }

    .nav-card h4 {
        font-size: 18px;
    }
}