/**
 * Custom Theme for Fibroids During Pregnancy Presentation
 * Built on Reveal.js framework
 */

/* ===== CSS Variables ===== */
:root {
    --background-color: #1e3c72;
    --background-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --text-color: #ffffff;
    --primary-color: #5ed4ff;
    --secondary-color: #a8d5ff;
    --tertiary-color: #7cc8ff;
    --highlight-color: #5ed4ff;
    --reassurance-color: #4caf50;
    --action-color: #ff9800;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
}

/* ===== Base Styles ===== */
.reveal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 32px;
    font-weight: normal;
    color: var(--text-color);
}

.reveal .slides {
    text-align: center;
}

/* ===== Background ===== */
.reveal-viewport {
    background: var(--background-gradient);
}

/* ===== Typography ===== */
.reveal h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.reveal h2 {
    font-size: 2.8em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.7em;
    line-height: 1.3;
}

.reveal h3 {
    font-size: 2em;
    font-weight: 500;
    color: var(--tertiary-color);
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.reveal h4 {
    font-size: 1.5em;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.reveal p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 0 1em 0;
}

/* ===== Subtitle ===== */
.reveal .subtitle {
    font-size: 1.3em;
    color: #c8e6ff;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5em;
}

/* ===== Special Text Styles ===== */
.reveal .highlight {
    color: var(--highlight-color);
    font-weight: 600;
}

/* ===== Reassurance Box ===== */
.reveal .reassurance {
    background: rgba(76, 175, 80, 0.2);
    border-left: 5px solid var(--reassurance-color);
    padding: 1.5em;
    margin: 1.5em auto;
    border-radius: 8px;
    font-size: 1em;
    max-width: 900px;
    text-align: left;
}

.reveal .reassurance strong {
    color: #81c784;
}

/* ===== Action Box ===== */
.reveal .action-box {
    background: rgba(255, 152, 0, 0.2);
    border-left: 5px solid var(--action-color);
    padding: 1.5em;
    margin: 1.5em auto;
    border-radius: 8px;
    max-width: 900px;
    text-align: left;
}

.reveal .action-box h3 {
    font-size: 1.5em;
    margin-bottom: 1em;
    color: #ffb74d;
}

/* ===== Lists ===== */
.reveal ul,
.reveal ol {
    text-align: left;
    margin: 0 auto;
    max-width: 900px;
    font-size: 1em;
}

.reveal ul {
    list-style-type: none;
    padding-left: 0;
}

.reveal li {
    margin-bottom: 0.8em;
    padding-left: 1.5em;
    position: relative;
    line-height: 1.7;
}

.reveal ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Info Grid ===== */
.reveal .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    margin: 2em auto;
    max-width: 1000px;
}

.reveal .info-card {
    background: var(--card-bg);
    padding: 2em;
    border-radius: 12px;
    border: 2px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reveal .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(94, 212, 255, 0.2);
}

.reveal .info-card h3 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.reveal .info-card p {
    font-size: 1em;
    margin: 0;
}

/* ===== Statistic ===== */
.reveal .statistic {
    font-size: 4em;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin: 0.5em 0;
    text-shadow: 0 2px 10px rgba(94, 212, 255, 0.3);
}

/* ===== Icon ===== */
.reveal .icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    display: block;
    line-height: 1;
}

/* ===== Timeline ===== */
.reveal .timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 3em auto;
    position: relative;
    padding: 2em 0;
}

.reveal .timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
    transform: translateY(-50%);
}

.reveal .timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.reveal .timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1em;
    box-shadow: 0 0 10px rgba(94, 212, 255, 0.5);
}

.reveal .timeline-item h4 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.reveal .timeline-item p {
    font-size: 0.9em;
    margin: 0;
}

/* ===== Fragment Animations ===== */
.reveal .fragment {
    transition: all 0.3s ease;
}

/* ===== Progress Bar ===== */
.reveal .progress {
    background: rgba(0, 0, 0, 0.3);
    height: 4px;
}

.reveal .progress span {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* ===== Controls ===== */
.reveal .controls {
    color: var(--primary-color);
}

.reveal .controls button {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.reveal .controls button:hover {
    opacity: 1;
}

/* ===== Slide Number ===== */
.reveal .slide-number {
    color: var(--primary-color);
    background: rgba(30, 60, 114, 0.8);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.7em;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 768px) {
    .reveal h1 {
        font-size: 2.5em;
    }
    
    .reveal h2 {
        font-size: 2em;
    }
    
    .reveal h3 {
        font-size: 1.6em;
    }
    
    .reveal p {
        font-size: 1em;
    }
    
    .reveal .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .reveal .timeline {
        flex-direction: column;
        gap: 2em;
    }
    
    .reveal .timeline::before {
        width: 3px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
    
    .reveal .statistic {
        font-size: 3em;
    }
}

/* ===== Print Styles ===== */
@media print {
    .reveal {
        background: white;
        color: black;
    }
    
    .reveal h1,
    .reveal h2,
    .reveal h3 {
        color: #333;
    }
    
    .reveal .progress,
    .reveal .controls,
    .reveal .slide-number {
        display: none;
    }
}

/* ===== Accessibility Enhancements ===== */
.reveal :focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.reveal a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.reveal a:hover {
    color: var(--secondary-color);
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
    :root {
        --background-color: #000000;
        --text-color: #ffffff;
        --primary-color: #00d4ff;
        --secondary-color: #a8d5ff;
    }
}

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal .fragment,
    .reveal .timeline-item,
    .reveal .info-card,
    .reveal .controls button {
        transition: none;
    }
    
    .reveal .slides section {
        transition: none !important;
    }
}
