/* 
 * SketchBrief Child Theme - Override Styles
 * Final polish for better readability and brand consistency
 * Version: 1.0.0
 */

/* =============================================================================
   TYPOGRAPHY REFINEMENTS
   ============================================================================= */

/* Improve body text readability */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #444444;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading improvements */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1a1a1a !important;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1, .wp-block-post-title h1 {
    font-weight: 700;
    line-height: 1.2;
}

/* Paragraph spacing and readability */
p {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

.wp-block-post-content p {
    font-size: 18px;
    color: #444444;
    line-height: 1.7;
}

/* =============================================================================
   NAVIGATION IMPROVEMENTS
   ============================================================================= */

/* Header navigation styling */
.site-header .wp-block-navigation a {
    color: #666666 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header .wp-block-navigation a:hover {
    color: #158fc9 !important;
}

.site-header .wp-block-navigation .wp-block-navigation-submenu__toggle {
    color: #666666 !important;
}

/* Site title improvements */
.wp-block-site-title a {
    color: #1a1a1a !important;
    text-decoration: none;
    font-weight: 700;
}

/* =============================================================================
   POST CONTENT IMPROVEMENTS
   ============================================================================= */

/* Post excerpts */
.wp-block-post-excerpt__excerpt {
    color: #444444;
    font-size: 16px;
    line-height: 1.6;
}

.wp-block-post-excerpt .wp-block-post-excerpt__more-link {
    color: #158fc9;
    font-weight: 500;
    text-decoration: none;
}

.wp-block-post-excerpt .wp-block-post-excerpt__more-link:hover {
    color: #e15707;
}

/* Post meta styling */
.wp-block-post-date,
.wp-block-post-author-name {
    color: #666666;
    font-size: 14px;
}

.wp-block-post-terms a {
    color: #158fc9;
    text-decoration: none;
    font-weight: 500;
}

.wp-block-post-terms a:hover {
    color: #e15707;
}

/* =============================================================================
   IMAGES AND MEDIA
   ============================================================================= */

/* Featured images */
.wp-block-post-featured-image img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Content images */
.wp-block-post-content img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   BUTTONS AND LINKS
   ============================================================================= */

/* Button styling */
.wp-block-button__link {
    border-radius: 6px !important;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
}

.wp-block-button.is-style-fill .wp-block-button__link {
    background-color: #158fc9 !important;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: #e15707 !important;
}

/* Link improvements */
.wp-block-post-content a {
    color: #158fc9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wp-block-post-content a:hover {
    color: #e15707;
}

/* =============================================================================
   SEPARATORS AND BORDERS
   ============================================================================= */

.wp-block-separator {
    border-color: #e1e5e9 !important;
    opacity: 1;
}

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

.wp-block-query-pagination a {
    color: #158fc9;
    text-decoration: none;
    font-weight: 500;
}

.wp-block-query-pagination a:hover {
    color: #e15707;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers .current {
    background-color: #158fc9;
    color: white;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}

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

.wp-block-comment-content p {
    color: #444444;
}

.wp-block-comment-author-name {
    color: #1a1a1a;
    font-weight: 600;
}

.wp-block-comment-date {
    color: #666666;
}

.wp-block-comment-reply-link a {
    color: #158fc9;
    text-decoration: none;
}

/* =============================================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================================================= */

@media (max-width: 768px) {
    /* Smaller heading sizes on mobile */
    h1, .wp-block-post-title h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Better mobile spacing */
    .wp-block-post-content {
        font-size: 16px;
    }

    /* Mobile navigation improvements */
    .site-header .wp-block-group {
        flex-wrap: wrap;
    }
}

/* =============================================================================
   CODE AND PREFORMATTED TEXT
   ============================================================================= */

code, pre {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: #f7f8f9;
    border-radius: 4px;
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.875em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

/* =============================================================================
   BLOCKQUOTES
   ============================================================================= */

.wp-block-quote {
    border-left: 4px solid #e15707;
    padding-left: 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: #666666;
}

.wp-block-quote cite {
    color: #1a1a1a;
    font-style: normal;
    font-weight: 500;
}

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

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

.site-footer a:hover {
    color: #ffffff;
}

.site-footer .wp-block-social-links a {
    color: #9ca3af;
}

.site-footer .wp-block-social-links a:hover {
    color: #158fc9;
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

/* Single column discipline */
.single-post-layout .wp-block-post-content,
.blog-listing-layout .wp-block-query {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #158fc9;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .wp-block-navigation {
        display: none;
    }
}