/* 
 * o-lekach.pl - Hub & Spoke Plugin Styles
 * Styles for section pages (opinions, dosage, side effects, etc.)
 */

/* ==========================================================================
   General Section Page Styles
   ========================================================================== */

.olekach-section-page,
.olekach-opinie-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.breadcrumbs a {
    color: #2196f3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* Page Header */
.section-header h1,
.opinie-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #333;
}

/* Back Link */
.back-to-main {
    background: #fff3cd;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 25px 0;
    border-left: 4px solid #ffc107;
}

.back-link {
    font-weight: 600;
    color: #856404;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #533f03;
}

/* Main Content */
.section-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    margin: 30px 0;
}

.section-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
    color: #2196f3;
}

.section-content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 20px;
}

.section-content ul,
.section-content ol {
    margin: 15px 0 15px 30px;
}

.section-content li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Related Sections (Powiązane linki)
   ========================================================================== */

.related-sections,
.related-info {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
}

.related-sections h3,
.related-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.sections-list,
.related-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sections-list li,
.related-info li {
    margin-bottom: 12px;
}

.sections-list a,
.related-info a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sections-list a:hover,
.related-info a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.sections-list .main-link a {
    font-weight: 600;
}

/* ==========================================================================
   CTA Box
   ========================================================================== */

.cta-box,
.add-review-cta {
    background: #e3f2fd;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin: 50px 0;
    border: 1px solid #90caf9;
}

.cta-box h3,
.add-review-cta h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1976d2;
}

.cta-box p,
.add-review-cta p {
    margin-bottom: 20px;
    color: #555;
}

.cta-box .button,
.add-review-cta .button {
    display: inline-block;
    padding: 15px 30px;
    background: #2196f3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-box .button:hover,
.add-review-cta .button:hover {
    background: #1976d2;
}

/* ==========================================================================
   Opinions Page - Statistics
   ========================================================================== */

.opinie-stats {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-left: 4px solid #2196f3;
}

/* Rating Summary */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 25px;
}

.rating-big {
    text-align: center;
}

.rating-big .number {
    font-size: 64px;
    font-weight: bold;
    color: #2196f3;
    line-height: 1;
}

.rating-big .max {
    font-size: 32px;
    color: #666;
}

.rating-info {
    flex: 1;
}

.rating-stars {
    font-size: 28px;
    color: #ffa500;
    margin-bottom: 8px;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* Histogram */
.rating-histogram h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.histogram-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.star-label {
    width: 50px;
    font-size: 14px;
}

.histogram-bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.histogram-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffa500, #ff8c00);
    transition: width 0.3s ease;
}

.count-label {
    width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.reviews-section {
    margin: 40px 0;
}

.reviews-section-title {
    margin-bottom: 25px;
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
}

.positive-section .reviews-section-title {
    border-color: #4caf50;
    color: #2e7d32;
}

.critical-section .reviews-section-title {
    border-color: #ff9800;
    color: #e65100;
}

/* Review Card */
.review-card {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.review-date {
    color: #666;
    font-size: 14px;
}

.review-rating {
    font-size: 20px;
    color: #ffa500;
    margin-bottom: 15px;
}

.review-body {
    line-height: 1.7;
    color: #333;
}

.review-body p {
    margin: 0 0 10px 0;
}

.review-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .olekach-section-page,
    .olekach-opinie-page {
        padding: 15px;
    }
    
    .section-header h1,
    .opinie-header h1 {
        font-size: 24px;
    }
    
    /* Stats grid na mobile */
    .opinie-stats {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }
    
    .rating-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-big .number {
        font-size: 48px;
    }
    
    /* Review card na mobile */
    .review-card {
        padding: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* CTA na mobile */
    .cta-box,
    .add-review-cta {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .section-header h1,
    .opinie-header h1 {
        font-size: 20px;
    }
    
    .rating-big .number {
        font-size: 40px;
    }
    
    .rating-stars {
        font-size: 20px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .breadcrumbs,
    .back-to-main,
    .cta-box,
    .add-review-cta,
    .related-sections,
    .related-info {
        display: none;
    }
    
    .review-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
