/**
 * TTPA Transparensmeddelande Styles
 * Legal, professional design with political TTPA theming
 */

/* Theme palette (match skillingaryd.nu) */
.ttpa-transparensmeddelande {
    --ttpa-primary: #5f9cd3; /* borders / dividers */
    --ttpa-success: #57ad7a; /* site footer green */
    --ttpa-accent: #e67e22;  /* CTA / search orange */
    --ttpa-primary-contrast: #ffffff;
}

/* Container */
.ttpa-transparensmeddelande {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fafafa;
}

.ttpa-transparens-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fafafa;
}

.ttpa-transparens-container {
    background: #ffffff;
    border: 2px solid #2c3e50;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Hero Header - matching form and report pages */
.ttpa-transparensmeddelande .ttpa-form-header {
    position: relative;
    color: #ffffff;
    padding: 3.25rem 2rem;
    text-align: center;
    overflow: hidden;
    background-color: #0b1220; /* fallback while image loads */
    background-image:
        linear-gradient(180deg, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0.5) 100%),
        url('../img/illustration_transparensmeddelande.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: -48px -20px 2rem -20px;
    border-radius: 16px 16px 0 0;
}

@media (min-width: 768px) {
    .ttpa-transparensmeddelande .ttpa-form-header {
        background-position: center 30%;
        padding: 4rem 2rem;
    }
}

.ttpa-transparensmeddelande .ttpa-form-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: inline-block;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}

.ttpa-transparensmeddelande .ttpa-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.75),
        0 0 2px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    line-height: 1.2;
}

.ttpa-transparensmeddelande .ttpa-form-description {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7),
        0 0 2px rgba(0, 0, 0, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.75);
    color: #ffffff;
    line-height: 1.6;
}

/* Header Actions - CTA Buttons */
.ttpa-transparens-header-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.ttpa-transparens-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.ttpa-transparens-cta-button:hover {
    transform: translateY(-2px);
    background: #ffffff !important;
    color: #1a1a1a !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.ttpa-transparens-cta-button--report {
    background: rgba(230, 126, 34, 0.95);
    color: #ffffff !important;
    border-color: rgba(230, 126, 34, 0.5);
}

.ttpa-transparens-cta-button--report:hover {
    background: #e67e22 !important;
    color: #ffffff !important;
    border-color: rgba(230, 126, 34, 0.8);
}

/* Content */
.ttpa-transparens-content {
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    margin: 0 -20px;
    position: relative;
    z-index: 1;
}

/* Sections - more compact */
.ttpa-transparens-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.ttpa-transparens-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ttpa-transparens-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    font-family: 'Arial', sans-serif;
}

.ttpa-transparens-section-content {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ttpa-transparens-section-content p {
    margin: 0.4rem 0;
}

.ttpa-transparens-section-content strong {
    color: #2c3e50;
    font-weight: 700;
}

.ttpa-transparens-section-content em {
    color: #7f8c8d;
    font-style: italic;
}

/* Numbered list styling */
.ttpa-transparens-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.ttpa-transparens-content ol li {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}

.ttpa-transparens-content ol li strong {
    display: inline-block;
    min-width: 80px;
    color: #2c3e50;
}

/* Subsections */
.ttpa-transparens-subsection {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #2c3e50;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.ttpa-transparens-subsection h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-family: 'Arial', sans-serif;
}

.ttpa-transparens-subsection p {
    margin: 0.4rem 0;
    padding-left: 0;
}

/* Divider */
.ttpa-transparens-divider {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid #2c3e50;
    border-bottom: 2px solid #2c3e50;
    text-align: center;
    background: #f8f9fa;
}

.ttpa-transparens-main-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Arial', sans-serif;
}

/* Links */
.ttpa-transparens-section-content a {
    color: #2c3e50;
    text-decoration: underline;
    text-decoration-color: #7f8c8d;
    transition: color 0.2s ease;
}

.ttpa-transparens-section-content a:hover {
    color: #e74c3c;
    text-decoration-color: #e74c3c;
}

/* Legal notice box */
.ttpa-legal-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-left: 5px solid #e74c3c;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.ttpa-legal-notice strong {
    display: block;
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.ttpa-legal-notice p {
    margin: 0.3rem 0;
    color: #856404;
    font-size: 0.9rem;
}

/* Print styles */
@media print {
    .ttpa-transparens-wrapper {
        padding: 0;
        background: #ffffff;
    }
    
    .ttpa-transparens-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .ttpa-transparens-header {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .ttpa-transparens-section {
        page-break-inside: avoid;
    }
    
    .ttpa-transparens-header::before {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ttpa-transparens-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .ttpa-transparensmeddelande {
        padding: 1rem 0.5rem;
    }
    
    .ttpa-transparens-content {
        padding: 1.5rem;
        margin: 0 -10px;
        border-radius: 0 0 8px 8px;
    }
    
    .ttpa-transparens-section-title {
        font-size: 1rem;
    }
    
    .ttpa-transparens-section-content {
        font-size: 0.9rem;
    }
}

/* Compact text styling */
.ttpa-transparens-content p,
.ttpa-transparens-content li {
    margin: 0.3rem 0;
}

/* Legal document feel */
.ttpa-transparensmeddelande {
    counter-reset: section;
}

.ttpa-transparens-section {
    counter-increment: section;
}

/* Report CTA Button - in content sections */
.ttpa-report-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--ttpa-accent, #e67e22);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin-top: 0.5rem;
}

.ttpa-report-cta-button:hover {
    transform: translateY(-2px);
    background: #d46a1a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.4);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .ttpa-transparensmeddelande .ttpa-form-header {
        padding: 2.5rem 1.5rem;
        margin: -20px -10px 1.5rem -10px;
    }
    
    .ttpa-transparensmeddelande .ttpa-form-title {
        font-size: 1.75rem;
    }
    
    .ttpa-transparensmeddelande .ttpa-form-description {
        font-size: 1rem;
    }
    
    .ttpa-transparens-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ttpa-transparens-cta-button {
        width: 100%;
        padding: 12px 20px;
    }
}
