/* seekrankheit-tipps.css – Styles for ratgeber/seekrankheit-tipps.html */

:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background: var(--light-bg);
    border-radius: 5px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* TOC */
.toc {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.toc h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.35rem;
}

.toc a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s;
}

.toc a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Quick Tips Cards */
.quick-tip {
    background: var(--light-bg);
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.quick-tip:hover {
    transform: translateX(5px);
}

.quick-tip-title {
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Alert Boxes */
.alert-custom {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 5px solid;
}

.alert-danger-custom {
    background: #fff5f5;
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-success-custom {
    background: #f0fff4;
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.alert-info-custom {
    background: #e7f5ff;
    border-left-color: var(--info-color);
    color: #0c63e4;
}

/* Medicine Cards */
.medicine-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.medicine-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.medicine-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.badge-prescription {
    background: #fee2e2;
    color: #dc2626;
}

.badge-otc {
    background: #d1fae5;
    color: #065f46;
}

.badge-natural {
    background: #fef3c7;
    color: #92400e;
}

/* Effectiveness Meter */
.effectiveness-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.meter-bar {
    flex: 1;
    height: 8px;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.5s ease;
}

/* Ship Diagram */
.ship-diagram {
    background: var(--light-bg);
    padding: 2rem 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    position: relative;
}

.ship-outline {
    border: 3px solid var(--primary-color);
    border-radius: 50px 50px 20px 20px;
    padding: 1rem;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.deck-label {
    background: white;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    font-size: 0.875rem;
    text-align: center;
}

.best-spot {
    background: var(--success-color);
    color: white;
}

.okay-spot {
    background: var(--warning-color);
    color: white;
}

.bad-spot {
    background: var(--danger-color);
    color: white;
}

/* Image figure */
.content-image {
    margin: 1.5rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-image figcaption {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* FAQ Section */
.faq-section details {
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-section summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-section summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-section details[open] summary::after {
    content: '−';
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section .faq-answer {
    padding: 0 1.25rem 1rem;
    color: #555;
    line-height: 1.7;
}

/* CTA Buttons */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--primary-color);
}

/* Related Links */
.related-links {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.related-links h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.link-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Desktop */
@media (min-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 2.5rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .link-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ship-outline {
        max-width: 500px;
    }
}

@media (min-width: 992px) {
    .medicine-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Print */
@media print {
    .navbar, footer, .cta-section, .skip-link, .toc {
        display: none;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
}
