/* Base Styles */
@font-face {
    font-family: 'Geist Mono';
    src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #FF9900;
    --secondary-color: #FFB700;
    --bg-color: #000000;
    --card-bg: rgba(17, 17, 17, 0.6);
    --border-color: rgba(75, 75, 75, 0.5);
}

.font-geist-mono {
    font-family: 'Geist Mono', monospace;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Loader */
.loader-container {
    background-color: #000;
}

.loader svg {
    animation: rotate 2s linear infinite;
}

.loader svg circle {
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Mining Progress */
.mining-progress-container {
    position: relative;
    overflow: hidden;
}

.mining-light {
    position: absolute;
    top: 0;
    left: -100px;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: mining-light 3s infinite;
    transform: skewX(-20deg);
}

@keyframes mining-light {
    0% {
        left: -100px;
    }
    100% {
        left: 100%;
    }
}

/* Mining Animation */
.mining-animation-container {
    position: relative;
    overflow: hidden;
}

.mining-coin {
    filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

.mining-circle {
    animation: spin 20s linear infinite;
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.mining-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    background: #FF9900;
    border-radius: 50%;
    opacity: 0;
    animation: particle-animation 2s ease-out;
}

@keyframes particle-animation {
    0% {
        transform: translate(0, 0);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* Mining Wave */
.mining-wave {
    animation: wave-animation 10s linear infinite;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Modal Animation */
#mining-modal, #success-modal {
    transition: opacity 0.3s ease-in-out;
}

.show-modal {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Release Curve Animation */
.release-curve-container path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s ease-in-out forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 153, 0, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 153, 0, 0.8);
}

/* Specific Animations */
#earnings-progress {
    position: relative;
}

#earnings-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
    background: rgba(255, 255, 255, 0.6);
    animation: sweep 2s linear infinite;
}

@keyframes sweep {
    from { left: -5px; }
    to { left: 100%; }
}

/* Selection Style */
::selection {
    background-color: rgba(255, 153, 0, 0.3);
    color: white;
}

/* Focus Styles for Better Accessibility */
button:focus, a:focus, input:focus, select:focus {
    outline: 2px solid rgba(255, 153, 0, 0.5);
    outline-offset: 2px;
}
