/*
 * style-pages.css
 * Shared styles for visitor and exhibitor pages.
 * Page-specific rules live in style-visitor.css and style-exhibitor.css.
 * All tokens inherited from style.css.
 */

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.rs-hero {
    position: relative;
    min-height: 80svh;
    min-height: 80vh;
    display: flex;
    overflow: hidden;
    background-color: var(--ed-bg);
}

.rs-hero__bg {
    position: absolute;
    inset: 0;
}

.rs-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rs-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 43, 58, 0.78) 0%,
        rgba(28, 43, 58, 0.55) 50%,
        rgba(180, 138, 60, 0.15) 100%
    );
}

.rs-hero__content {
    position: relative;
    z-index: 1;
    padding-top: var(--ed-space-8);
    padding-bottom: var(--ed-space-20);
    color: var(--ed-ink);
    animation: rs-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.rs-hero__intro {
    font-family: var(--ed-font-body);
    font-size: var(--ed-text-sm);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ed-ink);
    margin-bottom: var(--ed-space-4);
}

.rs-intro__highlight {
    background-image: linear-gradient(to right, rgba(255,255,255,0) 50%, #db520f 50%);
    background-position: 0% 0;
    background-size: 200% auto;
    color: var(--ed-ink);
    font-style: italic;
    font-size: var(--ed-text-lg);
    text-decoration: none;
    animation: highlightSweep 1s ease-out forwards;
}

@keyframes highlightSweep {
    from { background-position: 0% 0; }
    to   { background-position: -100% 0; }
}

@media (min-width: 768px) {
    .rs-hero__intro     { font-size: var(--ed-text-xl); }
    .rs-intro__highlight { font-size: var(--ed-text-2xl); }
}

@keyframes rs-hero-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .rs-hero__content { animation: none; }
    .rs-intro__highlight { animation: none; }
}


/* --------------------------------------------------
   HERO — BUTTONS
-------------------------------------------------- */
.rs-hero__buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--ed-space-4);
    margin-top: var(--ed-space-6);
    isolation: isolate;
}

@media (min-width: 768px) {
    .rs-hero__buttons { flex-direction: row; }
}

.rs-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: var(--ed-space-2);
    padding: var(--ed-space-3) var(--ed-space-8);
    border-radius: var(--ed-space-8);
    border: 1px solid transparent;
    font-family: var(--ed-font-body);
    font-size: var(--ed-text-base);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background-color: var(--ed-contrast);
    color: var(--ed-ink);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        outline 0.02s ease;
    transform-origin: center;
    will-change: transform;
}

.rs-btn:hover,
.rs-btn:focus {
    color: var(--ed-ink);
    text-decoration: none;
    transform: scale(1.03);
    outline: 2px solid var(--ed-ink);
    outline-offset: 2px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.rs-btn:active {
    color: var(--ed-ink);
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* --------------------------------------------------
   HERO — SCROLL HINT
-------------------------------------------------- */
.rs-hero__scroll-hint {
    position: absolute;
    bottom: var(--ed-space-8);
    left: 52.2%;
    transform: translateX(-50%);
    z-index: 1;
}

.rs-hero__scroll-hint span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.rs-hero__scroll-hint span::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: rs-scroll-hint 1.8s var(--ed-ease) infinite;
}

@keyframes rs-scroll-hint {
    0%   { top: 6px;  opacity: 1; }
    80%  { top: 20px; opacity: 0; }
    100% { top: 6px;  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rs-hero__scroll-hint span::after { animation: none; }
}


/* --------------------------------------------------
   SHARED — LABEL + SECTION HEADER + DIVIDER
-------------------------------------------------- */
.rs-label {
    display: inline-block;
    font-family: var(--ed-font-body);
    font-size: var(--ed-text-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ed-contrast);
    margin: 0;
}

.rs-section__header {
    margin-bottom: var(--ed-space-8);
}

.rs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 80%;
    margin: 1rem auto;
}

.rs-divider__line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.rs-divider__badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ed-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.rs-divider__badge svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .rs-divider           { width: 90%; margin: 2rem auto; }
    .rs-divider__badge    { width: 40px; height: 40px; }
    .rs-divider__badge svg { width: 20px; height: 20px; }
}


/* --------------------------------------------------
   WHY EXHIBIT / WHY VISIT — CARDS
-------------------------------------------------- */
.rs-why-exhibit__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ed-space-6);
}

@media (min-width: 600px) {
    .rs-why-exhibit__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .rs-why-exhibit__grid { grid-template-columns: 1fr 1fr 1fr; }
}

.rs-why-exhibit__card {
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(244, 135, 104, 0.12);
    border-radius: 10px;
    padding: var(--ed-space-8) var(--ed-space-6);
    transition: box-shadow var(--ed-duration) var(--ed-ease),
                background var(--ed-duration) var(--ed-ease);
}

.rs-why-exhibit__card:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.rs-why-exhibit__num {
    font-family: var(--ed-font-body);
    font-size: var(--ed-text-xs);
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--ed-contrast);
    margin-bottom: var(--ed-space-4);
}

.rs-why-exhibit__title {
    font-family: var(--ed-font-title);
    font-size: var(--ed-text-xl);
    font-weight: 500;
    color: var(--ed-ink);
    margin-bottom: var(--ed-space-3);
    line-height: 1.2;
}

.rs-why-exhibit__text {
    font-size: var(--ed-text-base);
    color: var(--ed-ink-muted);
    line-height: 1.7;
    margin: 0;
}


/* --------------------------------------------------
   GALLERY
-------------------------------------------------- */
.rs-gallery {
    overflow: hidden;
    padding-bottom: var(--ed-space-8);
}

.rs-gallery__title {
    margin-bottom: var(--ed-space-8);
    color: #F3F3E0;
}

.rs-gallery__track-wrap {
    overflow: hidden;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.rs-gallery__track-wrap:active { cursor: grabbing; }

.rs-gallery__track {
    display: flex;
    gap: var(--ed-space-4);
    width: max-content;
    animation: rs-gallery-scroll var(--ed-gallery-speed) linear infinite;
}

.rs-gallery__track:hover,
.rs-gallery__track.is-paused {
    animation-play-state: paused;
}

.rs-gallery__item {
    flex-shrink: 0;
    width: 280px;
    overflow: hidden;
    border-radius: 2px;
}

.rs-gallery__item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.5s var(--ed-ease);
}

.rs-gallery__item:hover img { transform: scale(1.04); }

@media (min-width: 768px) {
    .rs-gallery__item     { width: 360px; }
    .rs-gallery__item img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    .rs-gallery__track {
        animation: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: var(--ed-space-3);
        padding-bottom: var(--ed-space-2);
    }

    .rs-gallery__track-wrap {
        -webkit-mask-image: none;
                mask-image: none;
    }
}

@keyframes rs-gallery-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.rs-gallery__pause {
    display: inline-flex;
    align-items: center;
    gap: var(--ed-space-2);
    margin-top: var(--ed-space-6);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #966B9D;
    font-family: var(--ed-font-body);
    font-size: var(--ed-text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--ed-space-2) var(--ed-space-4);
    border-radius: 2px;
    cursor: pointer;
    transition: color var(--ed-duration), border-color var(--ed-duration);
}

.rs-gallery__pause:hover,
.rs-gallery__pause:focus-visible {
    color: var(--ed-contrast);
    border-color: var(--ed-contrast);
}

.rs-gallery__pause .icon-play                                { display: none; }
.rs-gallery__pause[aria-pressed="true"] .icon-pause          { display: none; }
.rs-gallery__pause[aria-pressed="true"] .icon-play           { display: block; }
.rs-gallery__pause[aria-pressed="true"] .pause-label::before { content: "Resume"; }
