/*
Theme Name: ModernPress
Theme URI: https://example.com/modernpress
Author: ModernPress Team
Author URI: https://example.com
Description: A truly modern WordPress theme with flat design, card layouts, and demo content. Features clean 2025 aesthetic, hero section with images, and placeholder content for immediate professional appearance.
Version: 4.0.0
Requires at least: 5.0
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: modernpress
Tags: blog, one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, threaded-comments, translation-ready, demo-content
*/

/* ============================================
   MODERN FLAT DESIGN - 2025 AESTHETIC
   NO GRADIENTS, CLEAN LINES, CARD BASED
   ============================================ */

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

:root {
    --primary-purple: #7c3aed;
    --purple-dark: #6d28d9;
    --purple-light: #a78bfa;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-size: 16px;
}

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

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

a:hover {
    color: var(--purple-dark);
}

/* ============================================
   HEADER - FLAT, MODERN
   ============================================ */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: .25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.site-title a {
    color: var(--text-primary);
}

.site-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 400;
}

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

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}

/* ============================================
   HERO SECTION - WITH ACTUAL IMAGE
   ============================================ */
.hero-section {
    position: relative;
    height: 500px;
    background: var(--bg-primary);
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 24px;
    z-index: 2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(124, 58, 237, 0.7);
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   MAIN CONTENT - CARD GRID
   ============================================ */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 4rem;
}

.has-sidebar .site-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

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

/* ============================================
   POSTS GRID - MODERN CARDS
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

article.post {
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

article.post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--purple-light);
}

.post-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-content-wrapper {
    padding: 1.75rem;
}

.entry-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.entry-title a {
    color: var(--text-primary);
}

.entry-title a:hover {
    color: var(--primary-purple);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.entry-meta a {
    color: var(--text-secondary);
    font-weight: 500;
}

.entry-meta a:hover {
    color: var(--primary-purple);
}

.cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cat-links a {
    background: var(--primary-purple);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cat-links a:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.entry-summary {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.more-link:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Single Post/Page */
article.post.single,
article.page.single {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.single .post-thumbnail {
    height: 400px;
}

.single .post-content-wrapper {
    padding: 3rem;
}

.single .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.entry-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.entry-content h2 {
    font-size: 1.875rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-purple);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.entry-content a {
    color: var(--primary-purple);
    font-weight: 500;
    border-bottom: 1px solid var(--purple-light);
}

.entry-content a:hover {
    border-bottom-color: var(--purple-dark);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.pagination .current {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

/* ============================================
   SIDEBAR
   ============================================ */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--bg-primary);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: block;
}

.widget ul li a:hover {
    color: var(--primary-purple);
    padding-left: 0.5rem;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.comment {
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--primary-purple);
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.7;
    color: var(--text-primary);
}

.reply a {
    color: var(--primary-purple);
    font-size: 0.875rem;
    font-weight: 600;
}

.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.comment-form input[type="submit"] {
    background: var(--primary-purple);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-primary);
    color: #d1d5db;
    padding: 3.5rem 24px 2rem;
    margin-top: 5rem;
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-widget .widget {
    background: transparent;
    border: none;
    padding: 0;
}

.footer-widget .widget-title {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-widget ul li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.footer-widget ul li a {
    color: #d1d5db;
    font-size: 0.9375rem;
}

.footer-widget ul li a:hover {
    color: var(--purple-light);
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

.site-info a {
    color: var(--purple-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .has-sidebar .site-content {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .single .entry-title {
        font-size: 1.875rem;
    }
    
    .single .post-content-wrapper {
        padding: 2rem 1.5rem;
    }
}

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

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

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