/*
 * Synthix AI - Design System Reference
 * (Extracted from /css/styles.css for easier maintenance)
 * ---------------------------------------------------------------
 * Colors:
 *   --primary-color: #00BFFF    Electric Blue, main accent
 *   --secondary-color: #009ACD  Darker blue
 *   --dark-bg: #101010          Page background (near black)
 *   --light-bg: #1a1a1a         Alt sections, navbar bg
 *   --text-dark: #f5f5f5        Primary text (light on dark)
 *   --text-light: #B0B0B0       Secondary text
 *   --accent: #00BFFF           Hover effects
 *   --white: #ffffff
 *   --shadow: 0 10px 30px rgba(0,0,0,0.5)
 *
 * Fonts:
 *   'Segoe UI', Tahoma, Geneva, Verdana, sans-serif (system stack)
 *
 * Breakpoints:
 *   992px  tablet, 2-col to 1-col
 *   768px  mobile, hamburger nav
 *   480px  small mobile
 *
 * Card pattern:
 *   Background: rgba(16, 16, 16, 0.85)
 *   Border-radius: 15px
 *   Shadow: var(--shadow)
 *   Hover: translateY(-5px)
 *
 * Button classes (defined in base CSS):
 *   .btn            base padding 14px 30px, 8px radius, transition
 *   .btn-primary    #0066cc background, white text
 *   .btn-secondary  transparent, white border
 *   .btn-light      white bg, dark text, 16px 40px padding
 * ---------------------------------------------------------------
 */

/* Skip-to-content */
.skip-link {
    position: absolute;
    top: -50px;
    left: 16px;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 100000;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
}

/* ---- Problem Section ---- */
.problem-section {
    background: transparent;
}

.problem-list {
    list-style: none;
    counter-reset: problem-counter;
    max-width: 800px;
    margin: 0 auto;
}

.problem-item {
    counter-increment: problem-counter;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 20px 20px 60px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-item::before {
    content: counter(problem-counter);
    position: absolute;
    left: 0;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: 16px;
}

.problem-item strong {
    color: var(--text-dark);
    font-size: 18px;
}

.problem-item span {
    color: var(--text-light);
    line-height: 1.6;
}

/* ---- Diagnosis Section ---- */
.diagnoses-section {
    background: transparent;
}

.diagnosis-subsection {
    margin-bottom: 60px;
}

.diagnosis-category {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 20px;
    padding-left: 10px;
}

.diagnosis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.diagnosis-card {
    background: rgba(16, 16, 16, 0.85);
    border-radius: 12px;
    border-left: 4px solid #7f8c8d;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    overflow: hidden;
    min-width: 0;
}

.diagnosis-card:hover {
    transform: translateX(5px);
}

.diagnosis-card img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.diagnosis-card-content {
    padding: 20px 25px 25px;
}

.diagnosis-card h4 {
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 8px;
}

.diagnosis-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

.diagnosis-acute { border-left-color: #e74c3c; }
.diagnosis-chronic { border-left-color: #f39c12; }
.diagnosis-diagnostic { border-left-color: #3498db; }
.diagnosis-special { border-left-color: #7f8c8d; }

/* ---- Outcome Section ---- */
.outcome-section {
    background: transparent;
}

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.outcome-card {
    background: rgba(16, 16, 16, 0.85);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 3px solid var(--primary-color);
}

.outcome-card:hover {
    transform: translateY(-5px);
}

.outcome-icon {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.outcome-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.outcome-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ---- Treatment Section ---- */
.treatment-section {
    background: transparent;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.treatment-card {
    background: rgba(16, 16, 16, 0.85);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.treatment-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.treatment-featured {
    border-color: var(--primary-color);
}

.treatment-header {
    padding: 30px 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.treatment-header h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.treatment-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.treatment-note {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 4px;
}

.treatment-features {
    list-style: none;
    padding: 25px;
    flex: 1;
}

.treatment-features li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 25px;
    position: relative;
}

.treatment-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.treatment-features li:last-child {
    border-bottom: none;
}

.treatment-cta {
    margin: 0 25px 25px;
    text-align: center;
}

/* ---- Doctor Section ---- */
.doctor-section {
    background: transparent;
}

.doctor-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(16, 16, 16, 0.85);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.doctor-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.doctor-text p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* ---- Episodes Section ---- */
.episodes-section {
    background: transparent;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.episode-card {
    background: rgba(16, 16, 16, 0.85);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.episode-card:hover {
    transform: translateY(-3px);
}

.episode-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.episode-card p {
    color: var(--text-light);
}

/* ---- Hero image placeholder fallback ---- */
.hero-image img[src*="klinik"] {
    background: var(--light-bg);
    min-height: 300px;
    border-radius: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .doctor-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctor-photo {
        display: flex;
        justify-content: center;
    }

    .treatment-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .problem-item {
        padding-left: 50px;
    }

    .problem-item::before {
        width: 34px;
        height: 34px;
        font-size: 14px;
        line-height: 34px;
    }

    .diagnosis-grid,
    .outcome-grid,
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}
