/* Custom CSS for SDZONE Minecraft Server Website */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a27 25%, #4a7c23 50%, #2d5a27 75%, #1a472a 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Minecraft Block Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Minecraft Grass Block Pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 32px,
            rgba(34, 197, 94, 0.03) 32px,
            rgba(34, 197, 94, 0.03) 64px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 32px,
            rgba(34, 197, 94, 0.03) 32px,
            rgba(34, 197, 94, 0.03) 64px
        );
    pointer-events: none;
    z-index: 0;
}

/* Animated Floating Blocks */
.floating-blocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.block {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a7c23 0%, #2d5a27 50%, #1a472a 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 10px rgba(74, 124, 35, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
    image-rendering: pixelated;
}

.block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, #5a8c33 0%, #4a7c23 100%);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.block:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; background: linear-gradient(135deg, #4a7c23 0%, #2d5a27 100%); }
.block:nth-child(2) { left: 15%; top: 55%; animation-delay: 2s; background: linear-gradient(135deg, #8B4513 0%, #654321 100%); }
.block:nth-child(3) { left: 25%; top: 35%; animation-delay: 4s; background: linear-gradient(135deg, #808080 0%, #696969 100%); }
.block:nth-child(4) { left: 35%; top: 75%; animation-delay: 6s; background: linear-gradient(135deg, #4a7c23 0%, #2d5a27 100%); }
.block:nth-child(5) { left: 45%; top: 25%; animation-delay: 8s; background: linear-gradient(135deg, #8B4513 0%, #654321 100%); }
.block:nth-child(6) { left: 55%; top: 65%; animation-delay: 10s; background: linear-gradient(135deg, #808080 0%, #696969 100%); }
.block:nth-child(7) { left: 65%; top: 45%; animation-delay: 12s; background: linear-gradient(135deg, #4a7c23 0%, #2d5a27 100%); }
.block:nth-child(8) { left: 75%; top: 20%; animation-delay: 14s; background: linear-gradient(135deg, #8B4513 0%, #654321 100%); }
.block:nth-child(9) { left: 85%; top: 60%; animation-delay: 16s; background: linear-gradient(135deg, #808080 0%, #696969 100%); }
.block:nth-child(10) { left: 95%; top: 80%; animation-delay: 18s; background: linear-gradient(135deg, #4a7c23 0%, #2d5a27 100%); }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-30px) rotate(45deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) rotate(90deg) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(135deg) scale(0.9);
        opacity: 0.6;
    }
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-delay {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 0 40px rgba(34, 197, 94, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.6), 0 0 80px rgba(34, 197, 94, 0.2);
    }
}

@keyframes pixel-glow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(34, 197, 94, 0.5),
            0 0 20px rgba(34, 197, 94, 0.3),
            0 0 30px rgba(34, 197, 94, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(34, 197, 94, 0.8),
            0 0 40px rgba(34, 197, 94, 0.5),
            0 0 60px rgba(34, 197, 94, 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scale-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in-delay 1s ease-out 0.3s backwards;
}

.animate-slide-up {
    animation: slide-up 1s ease-out 0.6s backwards;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-pixel-glow {
    animation: pixel-glow 2s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 3s linear infinite;
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.animate-scale-pulse {
    animation: scale-pulse 2s ease-in-out infinite;
}

.delay-1000 {
    animation-delay: 1s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Glassmorphism */
.glass {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.glass-strong {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

/* FAQ Accordion */
.faq-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-btn:hover {
    background: rgba(34, 197, 94, 0.1);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-btn.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    transition: all 0.3s ease;
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect */
.glow-effect {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Link Styles */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: white;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Spacing */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

/* Border Utilities */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Background Utilities */
.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-green-600 {
    background-color: #16a34a;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-green-400 {
    color: #4ade80;
}

.text-green-500 {
    color: #22c55e;
}

/* Font Size Utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

/* Font Weight Utilities */
.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Padding Utilities */
.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Margin Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Display Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Width/Height Utilities */
.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

.w-40 {
    width: 10rem;
}

.w-48 {
    width: 12rem;
}

.w-64 {
    width: 16rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-24 {
    height: 6rem;
}

.h-32 {
    height: 8rem;
}

.h-48 {
    height: 12rem;
}

.h-64 {
    height: 16rem;
}

.min-h-screen {
    min-height: 100vh;
}

.min-h-[60vh] {
    min-height: 60vh;
}

/* Position Utilities */
.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Overflow Utilities */
.overflow-hidden {
    overflow: hidden;
}

/* Opacity Utilities */
.opacity-20 {
    opacity: 0.2;
}

/* Transform Utilities */
.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

/* Cursor Utilities */
.cursor-pointer {
    cursor: pointer;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
    }
    
    .md\:space-x-8 > * + * {
        margin-left: 2rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:text-6xl {
        font-size: 3.75rem;
    }
    
    .lg\:text-7xl {
        font-size: 4.5rem;
    }
}

/* Gradient Backgrounds */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-gray-900 {
    --tw-gradient-from: #111827;
}

.via-gray-800 {
    --tw-gradient-via: #1f2937;
}

.to-gray-900 {
    --tw-gradient-to: #111827;
}

.from-green-600 {
    --tw-gradient-from: #16a34a;
}

.to-green-800 {
    --tw-gradient-to: #166534;
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
}

.to-blue-800 {
    --tw-gradient-to: #1e40af;
}

.from-red-600 {
    --tw-gradient-from: #dc2626;
}

.to-red-800 {
    --tw-gradient-to: #991b1b;
}

.from-purple-600 {
    --tw-gradient-from: #9333ea;
}

.to-purple-800 {
    --tw-gradient-to: #6b21a8;
}

.from-yellow-600 {
    --tw-gradient-from: #ca8a04;
}

.to-yellow-800 {
    --tw-gradient-to: #854d0e;
}

.from-pink-600 {
    --tw-gradient-from: #db2777;
}

.to-pink-800 {
    --tw-gradient-to: #9d174d;
}

/* Blur Utilities */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

/* Border Color Utilities */
.border-green-500\/20 {
    border-color: rgba(34, 197, 94, 0.2);
}

.border-green-500\/30 {
    border-color: rgba(34, 197, 94, 0.3);
}

.border-green-500\/50 {
    border-color: rgba(34, 197, 94, 0.5);
}

.hover\:border-green-500\/50:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Background Color with Opacity */
.bg-gray-800\/50 {
    background-color: rgba(31, 41, 55, 0.5);
}

.bg-gray-900\/50 {
    background-color: rgba(17, 24, 39, 0.5);
}

.bg-gray-900\/90 {
    background-color: rgba(17, 24, 39, 0.9);
}

.bg-gray-900\/95 {
    background-color: rgba(17, 24, 39, 0.95);
}

.bg-green-500\/20 {
    background-color: rgba(34, 197, 94, 0.2);
}

.bg-green-500\/50 {
    background-color: rgba(34, 197, 94, 0.5);
}

/* Hover States */
.hover\:text-green-300:hover {
    color: #86efac;
}

.hover\:text-green-400:hover {
    color: #4ade80;
}

.hover\:bg-green-600:hover {
    background-color: #16a34a;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

/* Transition Utilities */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Shadow Utilities */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-green-500\/50 {
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.5);
}

/* List Utilities */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

/* Flex Item Utilities */
.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Max Width Utilities */
.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* Text Decoration */
.no-underline {
    text-decoration: none;
}

.underline {
    text-decoration: underline;
}
