/*
Theme Name: Pop News
Theme URI: https://example.com/pop-news
Author: Custom Build
Author URI: https://example.com
Description: Ultra-fast, PageSpeed 95+ WordPress news & magazine theme with primary color #6598D2. Main container width 1280px (1200px - 1320px range).
Version: 1.0.0
Text Domain: pop-news
Tags: news, magazine, responsive-layout, grid-layout, custom-menu, custom-logo, translation-ready
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

html { scroll-behavior: smooth; }

/* Enforce 1280px Main Container Constraint Globally (1200px - 1320px range) */
.container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content a { color: #6598D2; text-decoration: underline; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* High Visibility Form Input Styling with Shadow */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.comment-form input,
.comment-form textarea {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 0.625rem 0.875rem !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: 2px solid #6598D2 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Sidebar & Widget Transparent Background (No Background Color) */
.widget,
aside .widget,
.sidebar .widget {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Sidebar & Widget Link Hover Transition Rules */
.widget a,
.widget-title a,
aside a,
.sidebar a {
    color: #001933;
    transition: color 0.2s ease-in-out;
}

.widget a:hover,
.widget-title a:hover,
aside a:hover,
.sidebar a:hover {
    color: #6598D2 !important;
    text-decoration: underline;
}

/* ── RICH ENTRY CONTENT TYPOGRAPHY (SINGLE POST & PAGE CONTENT) ── */
.entry-content {
    color: #1e293b;
    font-size: 1.0625rem;
    line-height: 1.75;
}

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

.entry-content h2 {
    font-family: 'Georgia', 'Cambria', 'Times New Roman', serif;
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1.3;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content h3 {
    font-family: 'Georgia', 'Cambria', 'Times New Roman', serif;
    font-weight: 800;
    font-size: 1.375rem;
    line-height: 1.35;
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.entry-content h4 {
    font-family: 'Georgia', 'Cambria', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    font-size: 1rem;
    color: #334155;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-content strong,
.entry-content b {
    font-weight: 900;
    color: #0f172a;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

.entry-content ul {
    list-style-type: disc !important;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem !important;
}

.entry-content ol {
    list-style-type: decimal !important;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem !important;
}

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

.entry-content ul li::marker {
    color: #6598D2;
}

.entry-content ol li::marker {
    color: #6598D2;
    font-weight: bold;
}

.entry-content blockquote {
    border-left: 4px solid #6598D2;
    background-color: #f8fafc;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #334155;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.entry-content pre {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content table {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.entry-content th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

/* ── LEAVE A REPLY COMMENT FORM EXACT MATCH STYLING ── */
.comment-form {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .comment-form {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .comment-form #reply-title,
    .comment-form .comment-notes,
    .comment-form .comment-form-comment,
    .comment-form .comment-form-cookies-consent,
    .comment-form .form-submit {
        grid-column: span 3 / span 3;
    }
}
