@font-face {
    font-family: 'Rubik';
    src: url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&display=swap');
}

body {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgdmlld0JveD0iMCAwIDUwIDUwIj48cmVjdCB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNmOWY1ZTMiLz48cGF0aCBkPSJNMCAwaDI1djI1SDB6TTI1IDI1aDI1djI1SDI1eiIgZmlsbC1vcGFjaXR5PSIwLjEiIGZpbGw9IiMzZDNkM2QiLz48L3N2Zz4=');
    font-family: 'rubik', sans-serif;
}

.pixel-corners {
    clip-path: polygon(
        0% 10px, 10px 10px, 10px 0%, calc(100% - 10px) 0%, 
        calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), 
        calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 
        10px 100%, 10px calc(100% - 10px), 0% calc(100% - 10px)
    );
}

.pixel-btn {
    position: relative;
    border: 3px solid #3D3D3D;
    box-shadow: 5px 5px 0 0 #3D3D3D;
    transition: all 0.1s ease;
}

.pixel-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 0 #3D3D3D;
}

.pixel-btn:active {
    transform: translate(5px, 5px);
    box-shadow: 0px 0px 0 0 #3D3D3D;
}

.content-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #5B8C34, #E9C46A);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.content-card:hover .card-image {
    transform: scale(1.1);
}

.version-badge {
    font-family: 'Minecraftia', monospace;
    position: relative;
    overflow: hidden;
}

.version-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.13);
    transform: rotate(30deg);
    transition: all 0.3s ease;
}

.version-badge:hover::after {
    left: 100%;
}

.minecraft-loader {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjgiIGhlaWdodD0iOCIgZmlsbD0iIzVCQ0MzNCIvPjxyZWN0IHg9IjgiIHk9IjAiIHdpZHRoPSI4IiBoZWlnaHQ9IjgiIGZpbGw9IiM4REM0NEUiLz48cmVjdCB4PSIwIiB5PSI4IiB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjOERDNDRFIi8+PHJlY3QgeD0iOCIgeT0iOCIgd2lkdGg9IjgiIGhlaWdodD0iOCIgZmlsbD0iIzVCQ0MzNCIvPjwvc3ZnPg==');
    background-size: cover;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.download-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5B8C34, #8BC34A);
    width: 0%;
    transition: width 0.5s ease;
}

.category-tag {
    transition: all 0.3s ease;
}

.category-tag:hover {
    transform: scale(1.05);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235B8C34' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tooltip {
    position: relative;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3D3D3D;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #3D3D3D transparent transparent transparent;
}
