/**
 * Frontend Styles for Groovy Scrapbook Hotspot Navigation System
 */

.groovy-scrapbook-outer-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #050505;
    border: 1px solid #1a1a1a;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    user-select: none;
    -webkit-user-select: none;
}

.groovy-scrapbook-image {
    width: 100%;
    display: block;
    height: auto;
    pointer-events: none;
    opacity: 0.95;
    transition: opacity 0.3s ease-in-out;
}

/* SVG Overlay positioning */
.groovy-scrapbook-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Hotspots default styles */
.groovy-frontend-hotspot {
    fill: rgba(214, 168, 79, 0.0); /* Invisible by default */
    stroke: rgba(214, 168, 79, 0.0); /* Invisible stroke */
    stroke-width: 1.5;
    transition: fill 0.25s cubic-bezier(0.23, 1, 0.32, 1), stroke 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: auto;
    cursor: pointer;
}

/* Hover glowing and golden borders */
.groovy-frontend-hotspot:hover,
.groovy-frontend-hotspot.active-touch {
    stroke: #d6a84f;
    fill: rgba(214, 168, 79, 0.12);
    filter: drop-shadow(0 0 6px rgba(214, 168, 79, 0.85));
    outline: none;
}

/* Special classes for custom styles */
.groovy-frontend-hotspot.pulse-glow {
    animation: groovy-pulse 2s infinite alternate;
}

@keyframes groovy-pulse {
    0% {
        fill: rgba(214, 168, 79, 0.02);
        stroke: rgba(214, 168, 79, 0.1);
    }
    100% {
        fill: rgba(214, 168, 79, 0.08);
        stroke: rgba(214, 168, 79, 0.3);
    }
}

/* Floating Tooltip styling */
.groovy-scrapbook-tooltip {
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1), transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
}

.groovy-scrapbook-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Scrapbook Index grid styling */
.groovy-scrapbook-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.groovy-scrapbook-index-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.groovy-scrapbook-index-card:hover {
    transform: translateY(-5px);
    border-color: #d6a84f;
}

.groovy-scrapbook-index-card a {
    text-decoration: none;
    display: block;
}

.groovy-scrapbook-index-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #222;
    transition: opacity 0.2s ease;
}

.groovy-scrapbook-index-card:hover .groovy-scrapbook-index-thumb {
    opacity: 0.85;
}

.groovy-scrapbook-index-title {
    margin: 0;
    padding: 15px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: color 0.2s ease;
}

.groovy-scrapbook-index-card:hover .groovy-scrapbook-index-title {
    color: #d6a84f;
}
