/* Custom CSS from App.css */
@layer base {
    * {
        @apply border-border outline-ring/50;
    }
    body {
        @apply bg-background text-foreground;
    }
}

/* Custom Minecraft-themed styles */
.minecraft-font {
    font-family: 'Orbitron', monospace;
}

.hero-title-font {
    font-family: 'Press Start 2P', cursive;
}

.bd-flag-text {
    color: #006A4E; /* Fallback green color for older browsers */
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .bd-flag-text {
        background-image: radial-gradient(circle at center, #F42A41 35%, #006A4E 40%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-size: 150% 150%;
        background-position: center;
    }
}

.pixel-border {
    border: 2px solid;
    border-image: linear-gradient(45deg, #7CB342, #006747) 1;
    box-shadow: 0 0 10px rgba(124, 179, 66, 0.3);
}

.pixel-button {
    background: linear-gradient(135deg, #7CB342, #5a9e2a);
    border: 2px solid #4a7c22;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.pixel-button:hover {
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(124, 179, 66, 0.4);
}

.pixel-button:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

.grass-texture {
    background-image: 
        radial-gradient(circle at 25% 25%, #8BC34A 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #689F38 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

.stone-texture {
    background-color: #3c3c3c;
    background-image: 
        radial-gradient(circle at 30% 30%, #4a4a4a 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, #5a5a5a 1px, transparent 1px);
    background-size: 6px 6px;
    background-position: 0 0, 3px 3px;
}

.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(124, 179, 66, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(124, 179, 66, 0.8);
    }
}

.minecraft-card {
    background-color: #C6C6C6;
    border: 4px solid;
    border-top-color: #7B7B7B;
    border-left-color: #7B7B7B;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    box-shadow: 0 0 0 4px #000000;
    border-radius: 0;
}

.minecraft-card-inner {
    background-color: #C6C6C6;
    border: 4px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #7B7B7B;
    border-bottom-color: #7B7B7B;
}

.minecraft-input {
    background-color: #333;
    border: 2px solid #000;
    color: white;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    box-shadow: inset 2px 2px 0px #00000080;
}
.minecraft-input:focus {
    outline: 2px solid var(--primary);
}

.bd-accent {
    color: var(--bd-green);
}

.bd-accent-bg {
    background-color: var(--bd-green);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

:root {
    --radius: 0.625rem;
    --grass-green: #7CB342;
    --dirt-brown: #8D6E63;
    --stone-gray: #616161;
    --cobblestone: #424242;
    --bd-green: #006747;
    --bd-red: #DA291C;
    --background: oklch(0.08 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.12 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.12 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: #7CB342;
    --primary-foreground: oklch(0.08 0 0);
    --secondary: oklch(0.2 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.2 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: #006747;
    --accent-foreground: oklch(0.985 0 0);
    --destructive: #DA291C;
    --border: oklch(0.3 0 0);
    --input: oklch(0.2 0 0);
    --ring: #7CB342;
    --chart-1: oklch(0.646 0.222 41.116);
    --chart-2: oklch(0.6 0.118 184.704);
    --chart-3: oklch(0.398 0.07 227.392);
    --chart-4: oklch(0.828 0.189 84.429);
    --chart-5: oklch(0.769 0.188 70.08);
    --sidebar: oklch(0.12 0 0);
    --sidebar-foreground: oklch(0.985 0 0);
    --sidebar-primary: #7CB342;
    --sidebar-primary-foreground: oklch(0.08 0 0);
    --sidebar-accent: oklch(0.2 0 0);
    --sidebar-accent-foreground: oklch(0.985 0 0);
    --sidebar-border: oklch(0.3 0 0);
    --sidebar-ring: #7CB342;
}

.dark {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.205 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.269 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.704 0.191 22.216);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --ring: oklch(0.556 0 0);
    --chart-1: oklch(0.488 0.243 264.376);
    --chart-2: oklch(0.696 0.17 162.48);
    --chart-3: oklch(0.769 0.188 70.08);
    --chart-4: oklch(0.627 0.265 303.9);
    --chart-5: oklch(0.645 0.246 16.439);
    --sidebar: oklch(0.205 0 0);
    --sidebar-foreground: oklch(0.985 0 0);
    --sidebar-primary: oklch(0.488 0.243 264.376);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.269 0 0);
    --sidebar-accent-foreground: oklch(0.985 0 0);
    --sidebar-border: oklch(1 0 0 / 10%);
    --sidebar-ring: oklch(0.556 0 0);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float 6s ease-in-out infinite 1s;
}
.minecraft-block {
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.glitch-effect-active {
    animation: glitch-transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    position: relative;
    overflow: hidden;
}

@keyframes glitch-transform {
    0% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }
    20% {
        transform: translate(-5px, 5px);
        clip-path: inset(10% 0 80% 0);
    }
    40% {
        transform: translate(-5px, -5px);
        clip-path: inset(40% 0 30% 0);
    }
    60% {
        transform: translate(5px, 5px);
        clip-path: inset(60% 0 10% 0);
    }
    80% {
        transform: translate(5px, -5px);
        clip-path: inset(30% 0 50% 0);
    }
    100% {
        transform: translate(0, 0);
        clip-path: inset(0 0 0 0);
    }
}

.glitch-text {
    display: inline-block;
    transition: opacity 0.3s ease-out;
}

.glitch-image {
    display: none; /* Initially hidden */
    width: 100%;
    max-width: 500px; /* Adjust as needed */
    height: auto;
    margin: 0 auto;
    transition: opacity 0.3s ease-out;
}

.clickable-author {
    cursor: pointer;
}

.nav-link {
    @apply px-4 py-2 rounded-lg text-sm font-bold transition-all duration-300;
    background-color: transparent;
}
.nav-link:hover {
    @apply bg-white/10 scale-105;
}
.nav-link.active {
    @apply scale-105;
    text-shadow: 0 0 8px currentColor;
}
