/**
 * Demo Mode Styling for Kukudushi Animal Tracker
 */

/* Demo badge in header */
.demo-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    margin-left: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Donate tab overlay in demo mode */
.dashboard-tab-content.demo-disabled {
    position: relative !important;
}

.demo-disabled .demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.demo-overlay-message {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.demo-lock-icon {
    width: 60px;
    height: 60px;
    color: #999;
    margin-bottom: 20px;
}

.demo-overlay-message h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

.demo-overlay-message p {
    color: #666;
    font-size: 1em;
    margin: 0;
}

/* Demo mode buy button styling - removed DEMO tag to enable purchases */

/* Demo mode footer indicator */
.demo-mode-footer-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Demo mode points display */
.demo-mode .kukus-amount::after {
    content: " (Demo)";
    font-size: 0.8em;
    opacity: 0.8;
}

/* Demo mode purchase status message */
.demo-purchase-message {
    background-color: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Demo mode reset button */
.demo-reset-button {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    transition: background-color 0.3s;
}

.demo-reset-button:hover {
    background-color: #ff5252;
}

/* Demo mode info tooltip */
.demo-info-tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.demo-info-tooltip.show {
    opacity: 1;
}

/* Demo mode overlay for disabled features */
.demo-disabled-overlay {
    position: relative;
}

.demo-disabled-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* Animal info window ocean overlay for demo mode */
.tabcontentContainer.demo-mode-tabs {
    position: relative !important;
}

.demo-mode-tabs .tabcontent {
    overflow: hidden !important;
    max-height: 400px !important;
    position: relative !important;
}

.demo-mode-tabs .demo-ocean-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100 !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.demo-ocean-overlay .ocean-wave {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.demo-ocean-overlay .demo-tab-message {
    position: relative !important;
    z-index: 2 !important;
    background: linear-gradient(to bottom, transparent 0%, #1F58AE99 50%, #1F58AE99 100%) !important;
    padding: 40px 20px 20px !important;
    text-align: center !important;
}

.demo-tab-message p {
    color: white !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
}

/* Gradient overlay to fade content */
.demo-mode-tabs .tabcontent::before {
    content: '' !important;
    position: absolute !important;
    top: 25% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.8) 60%,
        rgba(255, 255, 255, 0.95) 80%,
        white 100%
    ) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Ensure tab content is scrollable but hidden */
.demo-mode-tabs .tabcontent > * {
    position: relative !important;
    z-index: 0 !important;
}

/* Mobile responsive demo badge */
@media (max-width: 768px) {
    .demo-badge {
        font-size: 0.6em;
        padding: 1px 6px;
        margin-left: 4px;
    }
    
    .demo-mode-footer-indicator {
        font-size: 0.8em;
        padding: 6px 12px;
        bottom: 5px;
        right: 5px;
    }
    
    .demo-reset-button {
        top: 70px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.9em;
    }
}