/*
Theme Name: Professional Blog Pro
Theme URI: https://yoursite.com
Description: A clean, fast, and monetization-ready WordPress theme built for professional bloggers. Features built-in AdSense integration, mobile-responsive design, and optimized for maximum revenue.
Author: Your Name
Author URI: https://yoursite.com
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: professional-blog
Tags: blog, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready

Professional Blog Pro - A modern WordPress theme for monetization
*/

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #1f2937;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: relative;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #111827;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 5px 0 0 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

.main-navigation a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 10px 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #2563eb;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
}

/* ============================================================================
   BLOG POSTS
   ============================================================================ */

.post {
    margin-bottom: 60px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content-wrapper {
    padding: 30px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.entry-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: #2563eb;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.entry-meta a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.entry-meta a:hover {
    color: #2563eb;
}

.entry-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-content,
.entry-summary {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.entry-content p,
.entry-summary p {
    margin-bottom: 1.5em;
}

/* Typography within content */
.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 2em 0 0.75em 0;
    color: #111827;
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.75em 0 0.6em 0;
    color: #374151;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5em 0 0.5em 0;
    color: #4b5563;
}

.entry-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.entry-content a:hover {
    color: #1e40af;
    border-bottom-color: #1e40af;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.75em;
}

/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 1.25em 1.5em;
    margin: 2em 0;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

/* Code */
.entry-content code {
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.entry-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Read More Button */
.read-more {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
    margin-top: 20px;
}

.read-more:hover {
    background: #1e40af;
}

/* ============================================================================
   ADSENSE STYLES
   ============================================================================ */

.ad-container {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.ad-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.ad-header {
    margin: 30px 0;
}

.ad-after-title {
    margin: 30px 0;
}

.ad-mid-content {
    margin: 40px 0;
    clear: both;
}

.ad-end-content {
    margin: 40px 0;
}

.ad-sidebar {
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.widget {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
    color: #111827;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

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

.widget a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.widget a:hover {
    color: #2563eb;
}

/* Search widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.search-form button {
    padding: 10px 20px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #1e40af;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

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

.footer-widget {
    color: #d1d5db;
}

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.125rem;
}

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

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

.footer-widget a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

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

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    font-size: 0.875rem;
}

.site-info a {
    color: #60a5fa;
    text-decoration: none;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 60px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover,
.pagination .current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ============================================================================
   COMMENTS
   ============================================================================ */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 15px;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .post-thumbnail img {
        height: 250px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .ad-container {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }
    
    .ad-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .entry-title {
        font-size: 1.25rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.alignleft {
    float: left;
    margin: 0 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
