/* Third View Project - Shared Interactive Element Styles */
/* Place in: assets/00_global/css/buttons.css */
/* AUTHORITATIVE SOURCE Ã¢â‚¬â€ see DESIGN_SYSTEM.md */
/* This file owns APPEARANCE. Module CSS files own LAYOUT only. */


/* ==========================================================================
   STANDARD BUTTON (.btn)
   ========================================================================== */

.btn {
    background: transparent;
    border: 1px solid transparent;
    color: #999999;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 13px;
    padding: 5px 13px;
    cursor: url('../png/HandPoint.png') 5 1, pointer;
    border-radius: 13px;
    transition: color 0.15s ease, background-color 0.15s ease, border 0.15s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn:hover,
.btn.btn-hover {
    color: #ffffff;
    background-color: #333333;
    border: 1px solid #666666;
}

.btn:active {
    transform: translate(1px, 1px);
}

.btn .red {
    color: #cc0000;
}

.btn:hover .red {
    color: #ff3333;
}


/* ==========================================================================
   TOGGLE BUTTON (.btn-toggle)
   Sound ON/OFF, Color ON/OFF
   ========================================================================== */

.btn-toggle {
    min-width: 85px;
}

.btn-toggle.active {
    color: #ffffff;
    background-color: #333333;
    border: 1px solid #666666;
}


/* ==========================================================================
   VIEW BUTTON (.btn-view)
   First View, Second View, Third View
   ========================================================================== */

.btn-view {
    min-width: 90px;
    padding: 5px 10px;
}


/* ==========================================================================
   CIRCLE BUTTON (.btn-circle)
   Base for +, -, ?, link
   ========================================================================== */

.btn-circle {
    width: 25px;
    height: 25px;
    min-width: 25px;
    padding: 0;
    border-radius: 50%;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.btn-circle:hover {
    border: 1px solid #666666;
}

.btn-circle:active {
    transform: translate(1px, 1px);
}

/* Minus sign using span */
.btn-circle .minus {
    display: inline-block;
    width: 8px;
    height: 2px;
    background-color: #999999;
}

.btn-circle:hover .minus {
    background-color: #ffffff;
}


/* --------------------------------------------------------------------------
   Help Button (.btn-circle.btn-help) Ã¢â‚¬â€ SVG question mark
   -------------------------------------------------------------------------- */

.btn-circle.btn-help svg {
    width: 13px;
    height: 13px;
}

.btn-circle.btn-help svg path,
.btn-circle.btn-help svg line {
    stroke: #999999;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

.btn-circle.btn-help svg .dot {
    fill: #999999;
}

.btn-circle.btn-help:hover svg path,
.btn-circle.btn-help:hover svg line {
    stroke: #ffffff;
}

.btn-circle.btn-help:hover svg .dot {
    fill: #ffffff;
}


/* --------------------------------------------------------------------------
   Link/Share Button (.btn-circle.btn-link) Ã¢â‚¬â€ SVG chain-link icon
   -------------------------------------------------------------------------- */

.btn-circle.btn-link {
    position: relative;
}

.btn-circle.btn-link svg {
    width: 13px;
    height: 13px;
}

.btn-circle.btn-link svg path {
    stroke: #999999;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

.btn-circle.btn-link:hover svg path {
    stroke: #ffffff;
}

.btn-link-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: #ffffff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.btn-link-tooltip.visible {
    opacity: 1;
}


/* --------------------------------------------------------------------------
   Speaker/Mute Button (.btn-circle.btn-speaker) â€” SVG speaker icon
   Two states: default (unmuted, shows waves) and .muted (shows red X)
   Option C: Larger 19Ã—17 icon, red X for muted state
   -------------------------------------------------------------------------- */

.btn-circle.btn-speaker svg {
    width: 19px;
    height: 17px;
}

.btn-circle.btn-speaker svg path,
.btn-circle.btn-speaker svg polygon {
    stroke: #999999;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.btn-circle.btn-speaker svg .speaker-cone {
    fill: #999999;
    stroke: none;
}

.btn-circle.btn-speaker:hover svg path,
.btn-circle.btn-speaker:hover svg polygon {
    stroke: #ffffff;
}

.btn-circle.btn-speaker:hover svg .speaker-cone {
    fill: #ffffff;
}

/* Muted X â€” red, unaffected by hover */
.btn-circle.btn-speaker svg .mute-x {
    stroke: #cc0000;
    stroke-width: 2;
    stroke-linecap: round;
}

/* State toggles */
.btn-circle.btn-speaker .speaker-on {
    display: block;
}

.btn-circle.btn-speaker .speaker-off {
    display: none;
}

.btn-circle.btn-speaker.muted .speaker-on {
    display: none;
}

.btn-circle.btn-speaker.muted .speaker-off {
    display: block;
}


/* ==========================================================================
   SLIDESHOW ARROWS (.slideshow-arrow)
   SVG triangles Ã¢â‚¬â€ #555 fill, #888 stroke
   HTML: <div class="slideshow-arrow slideshow-arrow-left">
           <svg width="12" height="21" viewBox="0 0 12 21">
             <polygon class="arrow-shape" points="11,1 1,10.5 11,20"/>
           </svg>
         </div>
   Right arrow points: "1,1 11,10.5 1,20"
   ========================================================================== */

.slideshow-arrow {
    cursor: url('../png/HandPoint.png') 5 1, pointer;
    opacity: 1;
    transition: opacity 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-arrow:active {
    transform: translate(1px, 1px);
}

.slideshow-arrow.disabled {
    opacity: 0.3;
    cursor: default;
}

.slideshow-arrow.disabled:active {
    transform: none;
}

.slideshow-arrow svg {
    display: block;
}

.slideshow-arrow .arrow-shape {
    fill: #555555;
    stroke: #888888;
    stroke-width: 1;
    stroke-linejoin: round;
}

.slideshow-arrow:hover:not(.disabled) .arrow-shape {
    fill: #777777;
}


/* ==========================================================================
   SLIDER BUTTON (.slider-button)
   Universal slider button appearance Ã¢â‚¬â€ used in slideshow, rephoto, home, notes
   Uses SliderButton.svg background image
   Module CSS handles positioning; this file handles appearance + cursor
   ========================================================================== */

.slider-button {
    background-image: url('../svg/SliderButton.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: url('../png/HandOpen.png') 12 8, grab;
    user-select: none;
}

.slider-button:active,
.slider-button.dragging {
    cursor: url('../png/HandGrab.png') 12 8, grabbing;
}

/* Legacy class support Ã¢â‚¬â€ maps to same appearance */
.slider-button-el {
    position: absolute;
    z-index: 2;
    background-image: url('../svg/SliderButton.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: url('../png/HandOpen.png') 12 8, grab;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-button-el:active,
.slider-button-el.dragging {
    cursor: url('../png/HandGrab.png') 12 8, grabbing;
}


/* ==========================================================================
   COMPOUND BUTTONS (.compound-container)
   Graphic + label pairs: Journey, Field Notes, Start Over
   ========================================================================== */

.compound-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: url('../png/HandPoint.png') 5 1, pointer;
}

.compound-graphic {
    position: relative;
    overflow: hidden;
}

.compound-graphic img {
    display: block;
}

/* Dark overlay at rest */
.compound-graphic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.20);
    transition: background-color 0.2s ease;
    pointer-events: none;
}

/* Linked hover Ã¢â‚¬â€ overlay clears + button highlights */
.compound-container:hover .compound-graphic::after {
    background-color: rgba(0, 0, 0, 0);
}

.compound-container:hover .compound-button {
    color: #ffffff;
    background-color: #333333;
    border: 1px solid #666666;
}

.compound-button {
    margin-top: 4px;
}

/* When label is above graphic (Start Over) */
.compound-container .compound-button:first-child {
    margin-top: 0;
    margin-bottom: 4px;
}

.compound-container:active {
    transform: translate(1px, 1px);
}


/* ==========================================================================
   NAV HELP GROUP (.nav-help-group)
   Large ? character above "How to Navigate" button
   ========================================================================== */

.nav-help-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: url('../png/HandPoint.png') 5 1, pointer;
}

.nav-help-qmark {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 58px;
    font-weight: 300;
    color: #999999;
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: 2px;
    transform: scaleX(1.3);
    transition: color 0.15s ease;
}

.nav-help-group:hover .nav-help-qmark {
    color: #ffffff;
}

.nav-help-group:hover .btn {
    color: #ffffff;
    background-color: #333333;
    border: 1px solid #666666;
}

.nav-help-group:active {
    transform: translate(1px, 1px);
}


/* ==========================================================================
   COMPASS ROSE (.compass-rose)
   Reusable compass component with SliderButton center
   Position with left/top on container; internal layout is self-contained
   Module CSS files set position: absolute and coordinates only
   ========================================================================== */

.compass-rose {
    position: absolute;
    width: 90px;
    height: 90px;
    z-index: 25;
}

/* SVG structure: circle, crosshairs, north arrow */
.compass-rose svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.compass-rose .compass-circle {
    fill: none;
    stroke: #666666;
    stroke-width: 1;
}

.compass-rose .compass-crosshair {
    stroke: #666666;
    stroke-width: 1;
}

.compass-rose .compass-north-arrow {
    stroke: #666666;
    stroke-width: 1;
}

/* Center button - static SliderButton.svg graphic, no interaction */
.compass-rose .compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background-image: url('../svg/SliderButton.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* Direction letters */
.compass-rose .compass-n,
.compass-rose .compass-s,
.compass-rose .compass-e,
.compass-rose .compass-w {
    position: absolute;
    color: #b0b0b0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 11px;
    font-weight: normal;
}

.compass-rose .compass-n {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.compass-rose .compass-s {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.compass-rose .compass-w {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.compass-rose .compass-e {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}


/* ==========================================================================
   DRAG STATE Ã¢â‚¬â€ Body cursor override during any slider drag
   ========================================================================== */

body.dragging,
body.dragging *,
body.slideshow-dragging,
body.slideshow-dragging * {
    cursor: url('../png/HandGrab.png') 12 8, grabbing !important;
}


/* ==========================================================================
   INFO BUTTON (.btn-circle.btn-info) — "i" icon, auto-created by buttons.js
   ========================================================================== */

.btn-circle.btn-info {
    position: absolute;
    z-index: 50;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: normal;
    font-size: 16px;
    color: #999999;
    font-style: italic;
}

.btn-circle.btn-info:hover {
    color: #ffffff;
}


/* --------------------------------------------------------------------------
   Info Overlay Panel
   -------------------------------------------------------------------------- */

.info-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.info-overlay-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.info-overlay-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 28px 32px 24px;
    color: #cccccc;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.info-overlay-panel p {
    margin: 0 0 12px 0;
}

.info-overlay-panel p:last-of-type {
    margin-bottom: 0;
}

.info-overlay-panel a {
    color: #e87f2a;
    text-decoration: none;
}

.info-overlay-panel a:hover {
    text-decoration: underline;
}

.info-overlay-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #666666;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}

.info-overlay-close:hover {
    color: #ffffff;
}

/* ============================================
   BUTTON FADE-IN ANIMATION
   ============================================ */
