/* BoltWriter Frontend Styles */

/* Ensure posts are always visible and override theme conflicts */
.bp-post-container,
.bp-product-review,
.bp-section,
.bp-faq-item,
.bp-best-for {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
}

/* Main container for BoltWriter generated content */
.boltwriter-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: block !important;
    visibility: visible !important;
    min-height: 50px !important;
}

/* Debug: Add temporary border to ensure elements are visible */
.bp-post-container {
    border: 2px solid #ff0000 !important;
    min-height: 100px !important;
}

.bp-product-review {
    border: 1px solid #00ff00 !important;
    min-height: 50px !important;
}

.bp-section {
    border: 1px solid #0000ff !important;
    min-height: 50px !important;
}

/* Post container styling */
.bp-post-container {
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    color: #000000 !important;
}

/* Ensure all text is black on white background */
.bp-post-container,
.bp-post-container p,
.bp-post-container div,
.bp-post-container span,
.bp-post-container li {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Product review sections */
.bp-product-review {
    background: #f8f9fa !important;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #007cba;
    color: #000000 !important;
}

.bp-product-review h3 {
    color: #007cba !important;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Product images */
.bp-product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Call-to-action buttons */
.bp-cta-button {
    display: inline-block;
    background: #ff9900;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.bp-cta-button:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    color: white !important;
    text-decoration: none;
}

/* Table button styling - Make sure it's visible */
.bp-table-button {
    display: inline-block !important;
    background: #ff9900 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin: 5px 0 !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.bp-table-button:hover {
    background: #e68a00 !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* Product comparison tables */
.bp-responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bp-responsive-table th,
.bp-responsive-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff !important;
    color: #000000 !important;
}

.bp-responsive-table th {
    background: #f8f9fa !important;
    font-weight: 600;
    color: #495057 !important;
}

.bp-responsive-table tr:hover {
    background: #f8f9fa !important;
}

/* Section styling */
.bp-section {
    margin: 25px 0;
    padding: 20px;
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #000000 !important;
}

.bp-section h2 {
    color: #007cba !important;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 3px solid #007cba;
    padding-bottom: 8px;
}

/* FAQ styling */
.bp-faq-item {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa !important;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    color: #000000 !important;
}

.bp-faq-item h3 {
    color: #007cba !important;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.bp-faq-item p {
    margin: 0;
    line-height: 1.6;
    color: #495057 !important;
}

/* Pros and cons styling */
.bp-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.bp-pros,
.bp-cons {
    padding: 15px;
    border-radius: 8px;
    color: #000000 !important;
}

.bp-pros {
    background: #d4edda !important;
    border-left: 4px solid #28a745;
}

.bp-cons {
    background: #f8d7da !important;
    border-left: 4px solid #dc3545;
}

.bp-pros h4 {
    color: #155724 !important;
    margin-bottom: 8px;
}

.bp-cons h4 {
    color: #721c24 !important;
    margin-bottom: 8px;
}

.bp-pros ul,
.bp-cons ul {
    margin: 0;
    padding-left: 18px;
}

.bp-pros li,
.bp-cons li {
    margin: 4px 0;
    line-height: 1.4;
    color: #000000 !important;
}

/* Rating stars */
.bp-rating {
    display: inline-block;
    margin: 8px 0;
}

.bp-rating .star {
    color: #ffc107;
    font-size: 1.2em;
    margin-right: 2px;
}

.bp-rating .star.empty {
    color: #e9ecef;
}

/* Best for section */
.bp-best-for {
    background: #e3f2fd !important;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    color: #000000 !important;
}

.bp-best-for h4 {
    color: #1976d2 !important;
    margin-bottom: 8px;
}

/* Progress indicators */
.bp-progress-bar {
    background: #e9ecef;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.bp-progress-fill {
    background: #007cba;
    height: 100%;
    transition: width 0.3s ease;
}

/* Mobile Responsive Design - Consolidated */
@media (max-width: 768px) {
    /* Container adjustments */
    .boltwriter-content {
        padding: 8px;
        margin: 0;
    }
    
    .bp-post-container {
        padding: 12px;
        margin: 8px 0;
        border-radius: 6px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }
    
    /* Content sections */
    .bp-product-review {
        padding: 12px;
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .bp-product-review h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .bp-section {
        padding: 12px;
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .bp-section h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    /* Pros and cons layout */
    .bp-pros-cons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bp-pros,
    .bp-cons {
        padding: 12px;
    }
    
    .bp-faq-item {
        padding: 12px;
        margin: 12px 0;
    }
    
    .bp-best-for {
        padding: 12px;
        margin: 12px 0;
    }
    
    /* Button styling */
    .bp-cta-button {
        display: block;
        text-align: center;
        margin: 12px 0;
        padding: 12px 16px;
        font-size: 1em;
    }
    
    .bp-table-button {
        display: block !important;
        text-align: center !important;
        margin: 8px auto !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        width: auto !important;
        max-width: 200px !important;
    }
    
    /* Responsive table styling */
    .bp-responsive-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 6px;
    }
    
    .bp-responsive-table thead {
        display: none;
    }
    
    .bp-responsive-table tbody,
    .bp-responsive-table tr,
    .bp-responsive-table td {
        display: block;
        width: 100%;
        white-space: normal;
    }
    
    .bp-responsive-table tr {
        margin-bottom: 12px;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        padding: 12px;
        background: #ffffff !important;
    }
    
    .bp-responsive-table td {
        text-align: left;
        padding: 6px 0;
        position: relative;
        border: none;
        border-bottom: 1px solid #e9ecef;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .bp-responsive-table td:last-child {
        border-bottom: none;
    }
    
    .bp-responsive-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #495057 !important;
        display: inline-block;
        min-width: 70px;
    }
    
    .bp-responsive-table img {
        max-width: 80px;
        height: auto;
        display: block;
        margin: 8px 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .boltwriter-content {
        padding: 5px;
    }
    
    .bp-post-container {
        padding: 8px;
        margin: 5px 0;
    }
    
    .bp-product-review {
        padding: 8px;
        margin: 10px 0;
    }
    
    .bp-section {
        padding: 8px;
        margin: 10px 0;
    }
    
    .bp-section h2 {
        font-size: 1.2em;
    }
    
    .bp-product-review h3 {
        font-size: 1.1em;
    }
    
    .bp-pros,
    .bp-cons {
        padding: 8px;
    }
    
    .bp-faq-item {
        padding: 8px;
    }
    
    .bp-best-for {
        padding: 8px;
    }
    
    .bp-responsive-table tr {
        padding: 8px;
    }
    
    .bp-table-button {
        padding: 8px 12px !important;
        font-size: 13px !important;
        margin: 6px auto !important;
    }
}

/* Print styles */
@media print {
    .bp-cta-button {
        display: none;
    }
    
    .bp-post-container {
        box-shadow: none;
        border: 1px solid #ddd;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .bp-product-review {
        break-inside: avoid;
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* Force white background and black text - Override any theme styles */
.bp-post-container *,
.bp-product-review *,
.bp-section *,
.bp-faq-item *,
.bp-best-for *,
.bp-pros *,
.bp-cons * {
    background-color: inherit !important;
    color: inherit !important;
    }
    
/* Ensure headings maintain their designated colors */
.bp-section h2,
.bp-product-review h3,
.bp-faq-item h3 {
    color: #007cba !important;
    }
    
.bp-pros h4 {
    color: #155724 !important;
}

.bp-cons h4 {
    color: #721c24 !important;
    }
    
.bp-best-for h4 {
    color: #1976d2 !important;
}

/* Accessibility improvements */
.bp-cta-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.bp-product-review:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Animation for smooth loading */
.bp-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Schema markup styling (hidden but structured) */
.bp-schema {
    display: none;
} 