/* widgets.css - All Widgets & Interactive Elements */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.zen-loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.zen-circle {
    width: 100%;
    height: 100%;
    border: 3px solid var(--light-sage);
    border-top-color: var(--olive);
    border-radius: 50%;
    animation: zenRotate 1.5s linear infinite;
}

@keyframes zenRotate {
    to { transform: rotate(360deg); }
}

.zen-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--sage);
    border-radius: 50%;
    animation: zenPulse 1.5s ease-in-out infinite;
}

@keyframes zenPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.8); }
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sage);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100001;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    display: none;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--olive);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100001;
    transform: translate(-50%, -50%);
    display: none;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(168, 183, 158, 0.1);
}

/* Leaf particle trail */
.leaf-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 10px;
    height: 10px;
    background: var(--sage);
    border-radius: 0 100% 0 100%;
    animation: leafFall 2s ease-out forwards;
    opacity: 0.6;
}

@keyframes leafFall {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) scale(0) translateY(20px);
        opacity: 0;
    }
}

/* Weather Widget */
.weather-widget {
    position: fixed;
    top: 80px;
    right: 30px;
    background: white;
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.weather-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.weather-icon {
    font-size: 2rem;
}

.weather-info {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-olive);
}

.weather-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Social Proof Ticker */
.social-proof-ticker {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: white;
    border-radius: 15px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInLeft 0.5s ease;
    transition: all 0.3s ease;
}

.ticker-icon {
    width: 35px;
    height: 35px;
    background: var(--light-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ticker-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.ticker-name {
    font-weight: 600;
    color: var(--olive);
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.exit-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.exit-popup-content {
    background: white;
    border-radius: 30px;
    padding: 50px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s ease;
}

.exit-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--light-sage);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.exit-popup-close:hover {
    background: var(--sage);
    transform: rotate(90deg);
}

.exit-popup h3 {
    color: var(--deep-olive);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.exit-popup p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.exit-popup-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.exit-popup-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--light-sage);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.exit-popup-input:focus {
    outline: none;
    border-color: var(--sage);
}

.exit-popup-btn {
    padding: 12px 30px;
    background: var(--olive);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exit-popup-btn:hover {
    background: var(--deep-olive);
    transform: translateY(-2px);
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 90px;
    left: 30px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.accessibility-widget.active {
    display: flex;
}

.accessibility-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(124, 132, 113, 0.3);
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    background: var(--deep-olive);
}

.accessibility-toggle.active {
    z-index: 10000;
}

.accessibility-btn {
    padding: 8px 15px;
    background: var(--light-sage);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.accessibility-btn:hover {
    background: var(--sage);
    color: white;
}

/* Live Availability Widget */
.availability-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 280px;
    opacity: 1;
    visibility: visible;
}

.availability-widget.hidden {
    transform: translateX(350px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.availability-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
}

.widget-header {
    background: linear-gradient(135deg, var(--olive), var(--deep-olive));
    color: white;
    padding: 15px 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.widget-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.widget-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.widget-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1;
}

.widget-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.widget-reopen {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--olive);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(124, 132, 113, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.widget-reopen.show {
    display: flex;
}

.widget-reopen:hover {
    background: var(--deep-olive);
    transform: scale(1.1);
}

.widget-reopen-icon {
    font-size: 1.5rem;
}

.widget-content {
    padding: 20px;
}

.widget-actions {
    margin-bottom: 10px;
}

.availability-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.spots-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--olive);
}

.spots-text {
    color: var(--text-dark);
    font-size: 1rem;
}

.availability-month {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.widget-btn {
    width: 100%;
    padding: 10px;
    background: var(--light-sage);
    color: var(--deep-olive);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget-btn:hover {
    background: var(--sage);
    color: white;
}

.widget-btn.primary {
    background: var(--olive);
    color: white;
}

.widget-btn.primary:hover {
    background: var(--deep-olive);
}

.availability-details {
    display: none;
    padding: 0 20px 20px;
    animation: slideDownDetails 0.3s ease;
}

.availability-details.active {
    display: block;
}

@keyframes slideDownDetails {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-mini {
    margin-bottom: 15px;
}

.calendar-week {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.day {
    flex: 1;
    padding: 8px;
    background: var(--soft-gray);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.day.available {
    background: var(--light-sage);
    color: var(--deep-olive);
    cursor: pointer;
}

.day small {
    display: block;
    font-size: 0.7rem;
    margin-top: 2px;
}