/*
Theme Name: PublisherPress
Theme URI: http://publisherpress.com/
Author: PublisherX Team
Description: A modern, editorial theme designed for PublisherPress, inspired by top-tier journalism layout with a sleek Electric Blue accent.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: publisherpress
*/

:root {
    --primary: #0047FF; /* Electric Blue */
    --primary-hover: #0033cc;
    --dark: #111111;
    --gray: #333333;
    --light-gray: #f2f2f2;
    --border: #dcdcdc;
    --bg: #ffffff;
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--sans);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

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

a:hover {
    color: var(--primary);
}

/* Header */
.site-header {
    background: var(--bg);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-block;
}

.site-logo a {
    color: #fff;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    padding: 0.5rem 1rem;
}

.header-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border-radius: 4px; /* 40% variation: subtle rounding */
}
.header-actions .btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* Category Navigation */
.header-bottom {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    text-transform: capitalize;
}

.site-nav a:hover {
    color: var(--primary);
}

/* Main Layout */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 80vh;
}

/* Asymmetric Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.featured-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-label {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.featured-article .post-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.featured-article .post-excerpt {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: var(--light-gray);
    min-height: 400px;
}

.read-more {
    font-weight: 600;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::before {
    content: '→';
    color: var(--primary);
    font-size: 1.2rem;
}

/* Sidebar (Latest) */
.sidebar-latest {
    border-left: 1px solid var(--border);
    padding-left: 3rem;
}

.sidebar-title {
    font-family: var(--sans);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title::after {
    content: '→';
}

.latest-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}
.latest-item:last-child {
    border-bottom: none;
}

.latest-text {
    flex: 1;
}

.latest-item .post-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.latest-thumb-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--light-gray);
}

/* Secondary Grid */
.secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.secondary-item {
    border-top: 2px solid var(--dark);
    padding-top: 1rem;
}

.secondary-item .post-title {
    font-size: 1.4rem;
}

.secondary-thumb-wrapper img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Default Post View (Single/Archive) */
.post-single {
    max-width: 800px;
    margin: 0 auto;
}
.post-single .post-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.post-single .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sidebar-latest {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 2rem;
    }
    .secondary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    .secondary-grid {
        grid-template-columns: 1fr;
    }
    .header-top {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
}

/* Auth Forms */
.auth-form {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--sans);
}

.auth-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.auth-form button:hover {
    background: var(--primary-hover);
}

/* Social Auth & Painted Door Modal Resets */
.auth-form button.pp-modal-close {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #94a3b8 !important;
    border: none !important;
    margin: 0 !important;
}
.auth-form button.pp-modal-close:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}
.auth-form button.pp-modal-btn-primary {
    width: 100% !important;
    padding: 12px 18px !important;
    background: #0047FF !important;
    color: #ffffff !important;
    margin: 0 !important;
}
.auth-form button.pp-modal-btn-primary:hover {
    background: #0037cc !important;
}

/* Dimmed Social Auth Buttons */
.pp-social-btn {
    opacity: 0.76 !important;
    filter: grayscale(18%) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.pp-social-btn:hover {
    opacity: 1 !important;
    filter: none !important;
    transform: translateY(-1px) !important;
}

