/* Spin Wheel - "Can't Decide?" Modal */

/* Trigger button in hero */
.spin-trigger-btn {
    display: inline-block;
    margin-top: 0.75rem;
    background: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(240, 179, 35, 0.3);
}

.spin-trigger-btn:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 179, 35, 0.4);
}

/* Modal overlay */
.spin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.spin-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: spinModalFadeIn 0.3s ease-out;
}

.spin-modal-content {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 50%, var(--navy-dark) 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin: 2rem 1rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.spin-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.spin-modal-close:hover {
    color: #fff;
}

.spin-modal-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.spin-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.spin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.spin-town-filter label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.spin-town-filter select {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
}

.spin-town-filter select option {
    background: var(--navy);
    color: #fff;
}

.spin-town-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 0.25rem;
    width: 100%;
}

.spin-town-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.spin-town-badge:hover {
    border-color: rgba(240, 179, 35, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.spin-town-badge.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
}

.spin-town-badge .badge-abbr {
    display: none;
}

.spin-btn {
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(240, 179, 35, 0.4);
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 179, 35, 0.5);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spin-btn.stop-mode {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.spin-btn.stop-mode:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.spin-wheel-wrapper {
    position: relative;
    display: inline-block;
}

.spin-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid var(--gold);
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#spinCanvas {
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--gold), 0 0 30px rgba(0, 0, 0, 0.3);
    max-width: 340px;
    width: 100%;
    height: auto;
}

/* Results */
.spin-results {
    width: 100%;
    animation: spinFadeIn 0.5s ease-out;
}

.spin-results h3 {
    color: var(--gold);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.spin-results .spin-result-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.spin-result-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: 360px;
    overflow-y: auto;
}

.spin-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.spin-card:hover {
    transform: translateY(-2px);
}

.spin-card h4 {
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.spin-card .spin-card-cuisine {
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.spin-card .spin-card-town {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.3rem;
}

.spin-card .spin-card-address {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.spin-card .spin-card-phone a {
    color: var(--navy-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.spin-card .spin-card-phone a:hover {
    text-decoration: underline;
}

.spin-card .spin-card-website a {
    color: #f0b323;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.spin-card .spin-card-website a:hover {
    text-decoration: underline;
}

.spin-result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.spin-again-btn {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.spin-again-btn:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.spin-no-results {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

@keyframes spinFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spinModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buy This App link */
.spin-buy-app-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.spin-buy-app-link:hover {
    color: #f0b323;
}

/* Mobile */
@media (max-width: 768px) {
    .spin-modal-content {
        padding: 2rem 1rem;
        margin: 1rem 0.5rem;
    }

    .spin-modal-content h2 {
        font-size: 1.6rem;
    }

    #spinCanvas {
        max-width: 280px;
    }

    .spin-controls {
        flex-direction: column;
    }

    .spin-town-badge .badge-full {
        display: none;
    }

    .spin-town-badge .badge-abbr {
        display: inline;
    }

    .spin-town-badge {
        padding: 0.3rem 0.55rem;
        font-size: 0.8rem;
    }

    .spin-trigger-btn {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }
}
