/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --r-background-color: #000000;
    --r-main-color: #ffffff;
    --r-heading-color: #ffffff;
    --r-link-color: #ff6600;
    --r-link-color-hover: #ff8833;

    /* Extended color palette */
    --color-primary: #f59e0b;
    --color-secondary: #2dd4bf;
    --color-accent: #8b5cf6;
    --color-danger: #ef4444;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
}

.reveal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reveal h1, .reveal h2, .reveal h3 {
    text-transform: none;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.reveal h1 {
    font-size: 3.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.reveal h2 {
    font-weight: 500;
}

.reveal .orange {
    color: #ff6600;
}

.reveal .subtitle {
    font-size: 1.2em;
    color: #999;
    font-weight: 300;
}

.reveal ul {
    list-style: none;
}

.reveal ul li:before {
    content: "▸";
    color: #ff6600;
    margin-right: 15px;
    font-weight: bold;
}

.reveal .feature-box {
    background: rgba(255, 102, 0, 0.1);
    border: 2px solid #ff6600;
    padding: 30px;
    margin: 20px;
    border-radius: 10px;
}

.reveal .stat {
    font-size: 4em;
    color: #ff6600;
    font-weight: bold;
    margin: 20px 0;
}

.reveal .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.reveal .problem-badge {
    background: #ff6600;
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    margin: 10px;
}

.reveal .cta-button {
    background: #ff6600;
    color: #000;
    padding: 20px 40px;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    font-size: 1.3em;
    margin-top: 30px;
    text-decoration: none;
    transition: transform 0.3s;
}

.reveal .cta-button:hover {
    transform: scale(1.1);
}

.reveal .fragment.highlight-current-orange.visible:not(.current-fragment) {
    opacity: 0.3;
}

.reveal .fragment.highlight-current-orange.current-fragment {
    color: #ff6600;
}

/* Title Slide Components */
.title-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    margin-bottom: 15px;
}

.title-slide-header img {
    height: 35px;
    width: auto;
}

.title-slide-header img:first-child {
    height: 25px;
}

.author-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px 25px;
    background: rgba(255, 102, 0, 0.05);
    border-radius: 12px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ff6600;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.75em;
    color: #ff6600;
    margin-bottom: 2px;
}

.author-company {
    font-size: 0.65em;
    color: #999;
}

/* Unused legacy styles - can be removed later */
.threat-matrix {
    margin-top: 50px;
    position: relative;
}

.attacker-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    align-items: flex-end;
}

.attacker-card {
    text-align: center;
    padding: 20px;
    width: 200px;
}

.attacker-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.attacker-label {
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 5px;
}

.attacker-desc {
    font-size: 0.65em;
    color: #999;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.target-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.target-name {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
}

.target-budget {
    font-size: 0.7em;
    color: #ff6600;
    margin-bottom: 10px;
}

.threat-level {
    font-size: 0.75em;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 5px;
}

.threat-high {
    background: rgba(255, 102, 0, 0.3);
    border: 1px solid #ff6600;
}

.threat-medium {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #ffa500;
}

.threat-low {
    background: rgba(100, 100, 100, 0.2);
    border: 1px solid #666;
}

.arrow-indicator {
    font-size: 1.5em;
    color: #ff6600;
    margin: 0 10px;
}

.economics-chart {
    position: relative;
    width: 800px;
    height: 500px;
    margin: 40px auto;
}

.chart-axes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.axis-line {
    stroke: #666;
    stroke-width: 2;
}

.axis-label {
    fill: #999;
    font-size: 14px;
}

.target-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7em;
    font-weight: 500;
    text-align: center;
    border: 2px solid;
    transition: all 0.5s ease;
}

.attacker-zone {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.15;
    transition: all 0.5s ease;
}

.zone-amateur {
    border-color: #ff6600;
    background: #ff6600;
}

.zone-criminal {
    border-color: #ffaa00;
    background: #ffaa00;
}

.zone-state {
    border-color: #ff0000;
    background: #ff0000;
}

.zone-label {
    position: absolute;
    font-size: 0.75em;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    border: 2px solid;
}

.label-amateur {
    background: rgba(255, 102, 0, 0.2);
    border-color: #ff6600;
    color: #ff6600;
}

.label-criminal {
    background: rgba(255, 170, 0, 0.2);
    border-color: #ffaa00;
    color: #ffaa00;
}

.label-state {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

.shift-arrow {
    position: absolute;
    font-size: 2em;
    color: #ff6600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Slide vertical centering and containment */
.reveal .slides section {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px 40px !important;
    box-sizing: border-box;
}

/* Compact list styling for content-heavy slides */
.reveal .compact-list .remediation-item,
.reveal .compact-list .trigger-item {
    margin-bottom: 12px !important;
}

.reveal .compact-list h3 {
    font-size: 0.95em !important;
}

.reveal .compact-list p {
    font-size: 0.75em !important;
    margin: 3px 0 0 0 !important;
}

/* Extra compact for very dense slides */
.reveal .extra-compact .trigger-item {
    margin-bottom: 10px !important;
    padding: 10px 12px !important;
}

.reveal .extra-compact h3 {
    font-size: 0.9em !important;
}

.reveal .extra-compact p {
    font-size: 0.72em !important;
}

/* Reduce margins on slide content */
.reveal section h2 {
    margin-bottom: 5px;
}

.reveal section .subtitle {
    margin-top: 5px !important;
    margin-bottom: 15px;
}

/* Utility classes for cards and surfaces */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
}

.card-elevated {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.badge-primary {
    background: var(--color-primary);
    color: #000;
}

.badge-secondary {
    background: var(--color-secondary);
    color: #000;
}

.badge-accent {
    background: var(--color-accent);
    color: #fff;
}

/* Custom range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Custom select styling */
select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--color-border) !important;
    transition: border-color 0.2s ease;
}

select:focus {
    border-color: var(--color-primary) !important;
    outline: none;
}

/* Number badge for step indicators */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: 600;
    color: var(--color-primary);
}

/* Flip card animation */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}
