/* Sanctuary Shop Styles */

/* Shop Button */
.shop-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.shop-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Shop Panel */
.shop-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    color: white;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.shop-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.shop-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 500;
}

.close-shop {
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-shop:hover {
    opacity: 1;
}

/* Shop Points */
.shop-points {
    margin-bottom: 20px;
    font-size: 1.2em;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Shop Categories */
.shop-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px;
    padding: 8px 15px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.category-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.category-button.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

/* Shop Items */
.shop-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

.shop-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s, background-color 0.3s;
}

.shop-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.shop-item.purchased {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-cost {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.9em;
}

.item-description {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.buy-button {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    padding: 8px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1em;
}

.buy-button:hover:not([disabled]) {
    background-color: rgba(255, 255, 255, 0.3);
}

.buy-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Zen Garden Elements */
.zen-element {
    position: absolute;
    font-size: 2em;
    z-index: 1;
    pointer-events: none;
}

/* Auto-Click Indicator */
.auto-click-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: hidden;
}

.auto-click-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(100%);
    animation: progress-animation 5s linear infinite;
}

@keyframes progress-animation {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0%); }
}

.auto-click-indicator.flash {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Color Palette */
.color-palette {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10;
}

.palette-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.palette-button:hover {
    transform: scale(1.1);
}

.palette-options {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.palette-options.show {
    opacity: 1;
    pointer-events: auto;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.color-option:hover {
    transform: scale(1.2);
}

/* Particle Selector */
.particle-selector {
    position: fixed;
    top: 70px;
    right: 70px;
    z-index: 10;
}

.particle-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.particle-button:hover {
    transform: scale(1.1);
}

.particle-options {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.particle-options.show {
    opacity: 1;
    pointer-events: auto;
}

.particle-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.particle-option:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Glow Effect for Tranquility Boost */
.main-icon.glow-effect {
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

/* Critical Click Effect */
.critical-particle {
    animation: critical-rise 1.5s forwards;
    font-size: 2em !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes critical-rise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(1.5) rotate(360deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .shop-panel {
        width: 90%;
        padding: 15px;
    }
    
    .shop-header h2 {
        font-size: 1.5em;
    }
    
    .shop-button {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .auto-click-indicator {
        width: 30px;
        height: 30px;
    }
    
    .color-palette {
        top: auto;
        bottom: 80px;
        right: 20px;
    }
    
    .particle-selector {
        top: auto;
        bottom: 80px;
        right: 70px;
    }
    
    .palette-button, .particle-button {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .palette-options, .particle-options {
        bottom: 50px;
        top: auto;
    }
    
    .zen-element {
        font-size: 1.5em;
    }
}
/* Purchased Upgrades Display */
.purchased-upgrades {
    position: fixed;
    left: 20px;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}

.upgrade-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    animation: appear 0.5s forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.upgrade-icon:hover {
    transform: scale(1.1);
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tooltip for upgrade icons */
.upgrade-icon .tooltip {
    position: absolute;
    left: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.upgrade-icon:hover .tooltip {
    opacity: 1;
}
/* Level Progress Bars */
.level-progress-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    z-index: 5;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Mobile adjustments for progress bars */
@media (max-width: 768px) {
    .level-progress-container {
        width: 150px;
        padding: 8px;
    }
    
    .progress-bar {
        height: 5px;
    }
}
