/* Codedas Theme - Vermillion */
:root {
    /* Gradient colors */
    --gradient-1: #121212;
    --gradient-2: #1b1b1b;
    --gradient-3: #262626;

    /* Particle effects */
    --particle-1: rgba(255, 255, 255, 0.04);
    --particle-2: rgba(255, 255, 255, 0.03);
    --particle-3: rgba(255, 255, 255, 0.02);

    /* Glow effects */
    --glow-1: rgba(224, 80, 60, 0.5);
    --glow-2: rgba(224, 80, 60, 0.3);
    --glow-1-hover: rgba(224, 80, 60, 0.8);
    --glow-2-hover: rgba(224, 80, 60, 0.5);
    --glow-1-mid: rgba(224, 80, 60, 0.7);
    --glow-2-mid: rgba(224, 80, 60, 0.4);

    /* Subtitle */
    --subtitle-color: #f3a596;
    --subtitle-glow: rgba(243, 165, 150, 0.3);

    /* Links */
    --link-glow: rgba(224, 80, 60, 0.15);
    --icon-glow: rgba(224, 80, 60, 0.5);
    --icon-glow-hover: rgba(224, 80, 60, 0.8);

    /* Hover states */
    --hover-bg: rgba(224, 80, 60, 0.2);
    --hover-gradient: linear-gradient(135deg, rgba(224, 80, 60, 0.2), rgba(203, 62, 44, 0.15));
    --hover-border: rgba(224, 80, 60, 0.6);
    --hover-shadow: rgba(224, 80, 60, 0.4);
    --hover-text: #e0503c;

    /* Accent colors */
    --accent-color: #e0503c;
    --accent-glow: rgba(224, 80, 60, 0.3);

    /* Selection */
    --selection-bg: rgba(224, 80, 60, 0.3);
}

/* Support page: section headings, answers and inline links.
   shared.css styles every <a> as a full-width button, so links inside
   running text need to be put back inline. */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 3rem 0 0.5rem;
    text-align: center;
    text-shadow: 0 0 30px var(--glow-2);
    position: relative;
    z-index: 1;
}

.lead {
    text-align: center;
}

p a,
li a {
    display: inline;
    width: auto;
    padding: 0;
    gap: 0;
    font-size: inherit;
    font-weight: 600;
    color: var(--accent-color);
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

p a::before,
li a::before {
    display: none;
}

p a:hover,
li a:hover {
    transform: none;
    background: none;
    box-shadow: none;
    text-decoration: underline;
}

/* Answers sit in the same card as their question, so the question needs
   less space above it than a standalone <strong> gets from shared.css. */
.faq p {
    margin: 0.75rem 0;
}

.faq p strong {
    margin: 0 0 0.5rem;
}

.faq ul {
    margin: -0.5rem 0 1rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* The container is the positioning box for the language switch in its
   top right corner. */
.container {
    position: relative;
}

.lang-switch {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.lang-switch a {
    display: inline-flex;
    width: auto;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

/* Screenshots, side by side. Narrow screens scroll the row sideways
   rather than stacking, so the shots stay the same size everywhere. */
.shots {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin: 2.5rem 0 3rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.45s backwards;
}

.shots .shot {
    padding: 0;
    border: 0;
    background: none;
    flex: 0 0 auto;
    cursor: zoom-in;
    line-height: 0;
    border-radius: 24px;
}

.shots .shot:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.shots img {
    width: 220px;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
    .shots img {
        width: 170px;
    }
}

/* The enlarged screenshot. Click anywhere, or press Escape, to close. */
.shot-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.shot-overlay[hidden] {
    display: none;
}

.shot-overlay img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
