/* Custom styles for Pixel Quest Calendar */

.pixel-crisp {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Custom Minecraft-style font styling */
.minecraft-font {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Hover effects for interactive elements */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #57534e;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #78716c;
    border-radius: 6px;
    border: 2px solid #57534e;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Animation for XP gain */
@keyframes xpGain {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

.xp-gain-animation {
    animation: xpGain 1s ease-out forwards;
}

/* Glow effect for completed items */
.quest-complete {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-7 {
        grid-template-columns: 1fr;
    }
}

/* Background texture overlay */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: -1;
}

/* Task completion animation */
@keyframes completeTask {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.task-complete-animation {
    animation: completeTask 0.3s ease-in-out;
}

/* Level up animation */
@keyframes levelUp {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.level-up-animation {
    animation: levelUp 0.6s ease-in-out;
}

/* Pixelated border styles */
.pixel-border {
    border-image: url("data:image/svg+xml,%3csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m0,10 10,0 0,10 10,0 0,-10 10,0 0,10 10,0' fill='%23666'/%3e%3c/svg%3e") 10;
}

/* Progress bar animations */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(2px);
}

/* Minecraft-style button */
.mc-button {
    background: linear-gradient(to bottom, #8e8e8e 0%, #666666 100%);
    border: 2px solid #4a4a4a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.5);
}

.mc-button:hover {
    background: linear-gradient(to bottom, #a0a0a0 0%, #777777 100%);
}

.mc-button:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(1px);
}