/**
 * Article Content Styles - COMPLETE
 * Includes all formatting for article detail pages
 * Slovak Pressure Washer Site
 */

/* ===================================================================
   ARTICLE CONTENT BASE STYLES
   =================================================================== */

.article-body {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4B5563;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #0048AB;
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.article-body strong {
    font-weight: 700;
    color: #111827;
}

.article-body a {
    color: #0048AB;
    text-decoration: underline;
    transition: color 0.2s;
}

.article-body a:hover {
    color: #003580;
}

.article-body .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1F2937;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ===================================================================
   COMPARISON TABLES
   =================================================================== */

.comparison-table,
.full-comparison {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead,
.full-comparison thead {
    background: linear-gradient(135deg, #0048AB 0%, #003580 100%);
    color: white;
}

.comparison-table th,
.full-comparison th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td,
.full-comparison td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.comparison-table tr:hover,
.full-comparison tr:hover {
    background-color: #F9FAFB;
}

.comparison-table tr.winner,
.full-comparison tr.winner {
    background-color: #FEF3C7;
    font-weight: 600;
}

.rating-table {
    width: 100%;
    margin: 1.5rem 0;
}

.rating-table tr {
    border-bottom: 1px solid #E5E7EB;
}

.rating-table td {
    padding: 0.75rem;
}

.rating-table td:first-child {
    font-weight: 600;
    color: #1F2937;
}

.rating-table tr.total {
    background-color: #F9FAFB;
    font-weight: 700;
    font-size: 1.125rem;
    border-top: 2px solid #0048AB;
}

/* ===================================================================
   PRODUCT REVIEWS
   =================================================================== */

.product-review {
    background-color: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.product-review h3 {
    margin-top: 0 !important;
    color: #0048AB;
    font-size: 1.75rem;
}

.product-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ===================================================================
   RATING BADGES
   =================================================================== */

/* Main rating badge in article content */
.article-body .rating-badge,
.rating-badge {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* OVERRIDE any position: fixed */
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    /* Make it block level to prevent floating */
    width: fit-content !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
}

.rating-score {
    font-size: 3rem;
    font-weight: 900;
    color: #111827;
    line-height: 1;
}

.rating-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #78350F;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stars {
    font-size: 1.5rem;
    color: #111827;
}

/* ===================================================================
   SPECS LISTS
   =================================================================== */

.specs-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    background-color: #F9FAFB;
    border-radius: 8px;
    padding: 1.5rem;
}

.specs-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: #1F2937;
    font-weight: 600;
}

/* ===================================================================
   PROS & CONS BOXES
   =================================================================== */

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pros,
.cons {
    padding: 1.5rem;
    border-radius: 8px;
}

.pros {
    background-color: #ECFDF5;
    border: 2px solid #10B981;
}

.cons {
    background-color: #FEF2F2;
    border: 2px solid #EF4444;
}

.pros h4,
.cons h4 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 1.125rem;
}

.pros h4 {
    color: #047857;
}

.cons h4 {
    color: #DC2626;
}

.pros ul,
.cons ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pros li,
.cons li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
}

.cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #EF4444;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   CTA BOXES & BUTTONS
   =================================================================== */

.cta-box {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px solid #0048AB;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.cta-box a {
    text-decoration: none;
}

.btn-primary,
.btn-large {
    display: inline-block;
    background: linear-gradient(135deg, #0048AB 0%, #003580 100%);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white !important;
    text-decoration: none !important;
}

.btn-large {
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
}

/* Fix for dark background buttons */
.cta-box .btn-primary,
.cta-box .btn-large,
a.btn-primary,
a.btn-large {
    color: white !important;
    background: #0048AB !important;
}

.cta-box .btn-primary:hover,
.cta-box .btn-large:hover,
a.btn-primary:hover,
a.btn-large:hover {
    background: #003580 !important;
    color: white !important;
}

/* ===================================================================
   FINAL CTA SECTION
   =================================================================== */

.final-cta {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.final-cta h3 {
    margin-top: 0 !important;
    color: #0048AB;
    font-size: 1.75rem;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.cta-card {
    background-color: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.cta-card:hover {
    border-color: #0048AB;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.cta-card h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    color: #0048AB;
    font-size: 1.25rem;
}

.cta-card p {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   FAQ SECTION
   =================================================================== */

.faq-item {
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: #0048AB;
    font-size: 1.25rem;
    display: flex;
    align-items: flex-start;
}

.faq-item h3::before {
    content: "❓";
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.faq-item p {
    margin-bottom: 0;
    color: #4B5563;
    line-height: 1.75;
}

/* ===================================================================
   IMAGES & FEATURED CONTENT
   =================================================================== */

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mb-2 { margin-bottom: 1rem !important; }

/* ===================================================================
   RESPONSIVE ADJUSTMENTS
   =================================================================== */

@media (max-width: 768px) {
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h1 {
        font-size: 2rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .comparison-table,
    .full-comparison {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td,
    .full-comparison th,
    .full-comparison td {
        padding: 0.5rem;
    }
    
    .rating-score {
        font-size: 2rem;
    }
    
    .product-review {
        padding: 1.5rem;
    }
}

/* ===================================================================
   SMALL TEXT & FOOTNOTES
   =================================================================== */

.article-body small {
    display: block;
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 1rem;
    font-style: italic;
}

/* ===================================================================
   FLOATING RATING BADGES (Top Right Corner) - HIDE OR STYLE
   =================================================================== */

/* If you want to HIDE the floating badges in top right */
.floating-ratings {
    display: none !important;
}

/* OR if you want to STYLE them properly */
.floating-ratings {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.floating-rating-badge {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    color: #111827;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 900;
    font-size: 1.5rem;
    text-align: center;
    min-width: 100px;
}

.floating-rating-badge small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #78350F;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .floating-ratings {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 1rem 0;
    }
}