/*
Theme Name: Minimalist Blogger Child
Description: Child theme of Minimalist Blogger with custom modifications
Template: minimalistblogger
Version: 1.0.1
*/

/* Import parent theme styles */
@import url("../minimalistblogger/style.css");

/* Custom child theme styles */

/* General Layout Improvements */
.site-header {
    margin-bottom: 0;
}

.sheader {
    margin-bottom: 30px;
}

.featured-content {
    margin-top: 20px;
}

/* Improve main content spacing */
#primary.content-area {
    padding-top: 0;
}

/* Better spacing for post listings */
.site-main article {
    margin-bottom: 40px;
}

/* Improve sidebar spacing */
#secondary.widget-area {
    padding-top: 10px;
}

/* Email Signup Form Styles */

/* Header Signup Form */
.header-signup-wrapper {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    margin-bottom: 0;
}

.header-signup-container {
    text-align: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-signup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.header-signup-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.header-signup-form {
    flex-shrink: 0;
}

.header-signup-form .convertkit-form {
    max-width: 300px;
    margin: 0;
}

.header-signup-form .convertkit-form input[type="email"] {
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 0;
    margin-right: 8px;
    width: 180px;
    display: inline-block;
}

.header-signup-form .convertkit-form button,
.header-signup-form .convertkit-form input[type="submit"] {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
    display: inline-block;
    vertical-align: top;
}

/* Sidebar Signup Form */
.sidebar-signup-widget {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-signup-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.sidebar-signup-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sidebar-signup-widget .convertkit-form {
    max-width: 100%;
}

.sidebar-signup-widget .convertkit-form input[type="email"] {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.sidebar-signup-widget .convertkit-form button,
.sidebar-signup-widget .convertkit-form input[type="submit"] {
    font-size: 13px;
    padding: 10px 16px;
}

/* Footer Signup Form */
.footer-signup-section {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}

.footer-signup-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.footer-signup-text {
    font-size: 16px;
    color: #bdc3c7;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Inline Post Content Signup */
.inline-signup-wrapper {
    margin: 30px 0;
    padding: 0;
}

.inline-signup-container {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    color: #333;
    box-shadow: none;
}

.inline-signup-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.inline-signup-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Post End Signup */
.post-end-signup {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

/* Post End Signup Wrapper - Actual classes used in template */
.post-end-signup-wrapper {
    margin: 50px 0 60px 0;
    padding: 0;
}

.post-signup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.post-end-signup-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.post-end-signup-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Custom Newsletter Form Styling */
.custom-newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.custom-newsletter-form .newsletter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-align: center;
}

.custom-newsletter-form .newsletter-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.newsletter-signup-form .form-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.newsletter-name-input,
.newsletter-email-input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.4;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #2c3338;
    min-height: 48px;
}

.newsletter-name-input {
    flex: 1;
    min-width: 150px;
}

.newsletter-email-input {
    flex: 1;
    min-width: 150px;
}

.newsletter-name-input:focus,
.newsletter-email-input:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1, 0 2px 8px rgba(34, 113, 177, 0.15);
    transform: translateY(-1px);
}

.newsletter-name-input:hover,
.newsletter-email-input:hover {
    border-color: #8c8f94;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.newsletter-submit-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.newsletter-submit-btn:hover {
    background: #000;
}

.newsletter-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 15px;
    text-align: center;
}

.newsletter-message .success-message,
.newsletter-message .error-message {
    color: #333;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 0;
    font-size: 14px;
}

/* Read More Button Styling - CLEANED UP: Removed !important where possible */
.blogpost-button {
    padding: 15px 25px;
    border-radius: 0;
    background: #000;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin: auto;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #000;
    transition: all 0.4s;
}

.blogpost-button:hover {
    background: transparent;
    color: #000;
    text-decoration: none;
}

/* Sidebar Widget Button Styling - IMPROVED: Reduced !important usage */
#secondary button,
#secondary input[type="button"],
#secondary input[type="submit"],
.widget button,
.widget input[type="button"],
.widget input[type="submit"],
.sidebar button,
.sidebar input[type="button"],
.sidebar input[type="submit"] {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0;
    font-weight: 700;
    padding: 15px 25px;
    transition: all 0.4s;
    text-decoration: none;
}

#secondary button:hover,
#secondary input[type="button"]:hover,
#secondary input[type="submit"]:hover,
.widget button:hover,
.widget input[type="button"]:hover,
.widget input[type="submit"]:hover,
.sidebar button:hover,
.sidebar input[type="button"]:hover,
.sidebar input[type="submit"]:hover {
    background: transparent;
    color: #000;
    opacity: 1;
    border-color: #000;
}

.newsletter-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.newsletter-sidebar .newsletter-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.newsletter-sidebar .newsletter-description {
    font-size: 13px;
    margin-bottom: 15px;
}

.newsletter-sidebar .form-group {
    flex-direction: column;
    gap: 12px;
}

.newsletter-sidebar .newsletter-email-input {
    font-size: 13px;
    padding: 10px 12px;
}

.newsletter-sidebar .newsletter-submit-btn {
    font-size: 13px;
    padding: 10px 16px;
    width: 100%;
}

/* Legacy ConvertKit Form Styling */
.convertkit-form {
    max-width: 400px;
    margin: 0 auto;
}

.convertkit-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.convertkit-form button,
.convertkit-form input[type="submit"] {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.convertkit-form button:hover,
.convertkit-form input[type="submit"]:hover {
    background: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-signup-content {
        gap: 12px;
    }
    
    .header-signup-form .convertkit-form input[type="email"] {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .header-signup-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-signup-text {
        font-size: 12px;
    }
    
    .header-signup-form .convertkit-form input[type="email"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .header-signup-form .convertkit-form button,
    .header-signup-form .convertkit-form input[type="submit"] {
        width: 100%;
        display: block;
    }
    
    .inline-signup-container {
        padding: 20px;
    }
    
    .inline-signup-title {
        font-size: 18px;
    }
    
    .post-end-signup {
        padding: 20px;
    }
    
    .post-end-signup-wrapper {
        margin: 30px 0 40px 0;
    }
    
    .post-signup-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .sidebar-signup-widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .featured-content {
        margin-top: 15px;
    }
    
    .custom-newsletter-form {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .newsletter-signup-form .form-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .newsletter-name-input,
    .newsletter-email-input {
        flex: none;
        width: 100%;
        min-width: auto;
        font-size: 16px;
        padding: 14px 15px;
    }
    
    .newsletter-submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-width: auto;
    }
    
    .newsletter-sidebar {
        padding: 15px;
    }
    
    .newsletter-sidebar .newsletter-email-input {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .newsletter-sidebar .newsletter-submit-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .header-signup-wrapper {
        padding: 8px 0;
    }
    
    .header-signup-container {
        padding: 0 15px;
    }
    
    .header-signup-text {
        font-size: 11px;
    }
    
    .sidebar-signup-widget {
        padding: 12px;
    }
    
    .custom-newsletter-form .newsletter-title {
        font-size: 16px;
    }
    
    .custom-newsletter-form .newsletter-description {
        font-size: 13px;
    }
    
    .newsletter-sidebar .newsletter-title {
        font-size: 14px;
    }
    
    .newsletter-sidebar .newsletter-description {
        font-size: 12px;
    }
    
    /* Enhanced touch targets for mobile */
    .newsletter-name-input,
    .newsletter-email-input {
        padding: 16px 18px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .newsletter-submit-btn {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 52px;
    }
}

/* Image responsiveness improvements */
.entry-content img,
.entry-content iframe,
.post-thumbnail img {
    max-width: 100%;
    height: auto;
}

/* Image caption styling fixes */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

/* Fix for WordPress image alignment */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Improve spacing around embedded content */
.entry-content iframe {
    margin: 20px 0;
    display: block;
}

/* Accessibility improvements */
.screen-reader-text:focus {
    clip: auto;
    height: auto;
    overflow: visible;
    position: absolute;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background-color: #f1f1f1;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
}

/* Performance optimization: Remove unnecessary animations on mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Contact Form 7 Styling */
.wpcf7 {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7 p {
    margin-bottom: 20px;
}

.wpcf7 label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.wpcf7-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-submit {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.wpcf7-submit:hover {
    background: #333;
    transform: translateY(-2px);
}

.wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7 .wpcf7-response-output {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.wpcf7-spinner {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .wpcf7-form-control {
        padding: 14px;
        font-size: 16px;
    }
    
    .wpcf7-submit {
        padding: 16px;
    }
}

/* Survey page - full width, no sidebar */
.page-id-29952 .featured-content {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
}
.page-id-29952 .featured-sidebar,
.page-id-29952 #secondary,
.page-id-29952 .widget-area {
    display: none !important;
}
.page-id-29952 .site-main {
    max-width: 100% !important;
}
.page-id-29952 .entry-header {
    display: none !important;
}
.page-id-29952 .entry-content {
    padding: 0 !important;
}
.page-id-29952 #sa-survey-app {
    margin: -40px -20px !important;
}

/* Start Here page - full width, no sidebar */
.page-id-29765 .featured-content {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
}
.page-id-29765 .featured-sidebar,
.page-id-29765 #secondary,
.page-id-29765 .widget-area {
    display: none !important;
}
.page-id-29765 .site-main {
    max-width: 100% !important;
}
