
/* Global Styles */
body {
    background-color: #FFF9F0;
    background-image: radial-gradient(#FF90BC 1.5px, transparent 1.5px), radial-gradient(#8ACDD7 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: #2D334A;
    scroll-behavior: smooth;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animations */
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    position: absolute;
    inset: 0;
    z-index: 10;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.img-loaded { opacity: 1 !important; }
.img-loading { opacity: 0; transition: opacity 0.3s; }

/* Mobile Optimization: Hide scroll arrows */
/* Prevents horizontal overflow caused by negative positioning on small screens */
/* Mobile users should simply swipe to scroll */
@media (max-width: 768px) {
    #daily-left, #daily-right,
    #screen-left, #screen-right {
        display: none !important;
    }
}

/* Daily Updates: Adjust icon size */
/* Reduce the size of the app icon container and center it */
#dailyScroll .aspect-square {
    width: 100px !important;
    margin-left: auto;
    margin-right: auto;
}

/* --- Fixed Category Selected State (Override Holiday Themes) --- */
.category-selected {
    background-color: #FF90BC !important; /* Fixed Pink */
    color: #ffffff !important;
    border: 2px solid #2D334A !important;
    box-shadow: 4px 4px 0 0 #2D334A !important;
}

.category-selected:hover {
    background-color: #FFC0D9 !important; /* Light Pink Hover */
    box-shadow: 4px 4px 0 0 #2D334A !important; /* Keep shadow consistent or adjust if needed */
    transform: none; /* Reset standard transforms if necessary, or customize */
}

/* Active state simulation to replace tailwind utilities */
.category-selected:active {
    box-shadow: none !important;
    transform: translate(2px, 2px) !important;
}

/* --- Lucky Wheel Styles --- */
.wheel-segments {
    /* Uses CSS variables to adapt to themes automatically if variables are redefined */
    background: conic-gradient(
        var(--pop-pink, #FF90BC) 0deg 60deg,
        var(--pop-blue, #8ACDD7) 60deg 120deg,
        var(--pop-yellow, #F9F871) 120deg 180deg,
        var(--pop-purple, #D291BC) 180deg 240deg,
        var(--pop-pink, #FF90BC) 240deg 300deg,
        var(--pop-blue, #8ACDD7) 300deg 360deg
    );
}

.clip-triangle {
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* --- Search Input Clear Button --- */
.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    display: none; /* Hidden by default */
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s;
}
.search-clear:hover {
    color: #2D334A; /* pop-text color */
    background-color: rgba(0,0,0,0.05);
}
/* When input has content, show button */
.search-input-wrapper.has-text .search-clear {
    display: flex;
}

/* --- Empty State --- */
.empty-state-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}
.empty-state-container.active {
    display: flex;
}
