/* AgenCross - Main Styles */

/* Tailwind CSS CDN directives are in HTML */

/* Oxanium Font Face */
@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Oxanium', sans-serif;
    background-color: #000000;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Font utility class */
.font-oxanium {
    font-family: 'Oxanium', sans-serif;
}

/* Primary color utilities */
.text-primary {
    color: #1976D2;
}

.bg-primary {
    background-color: #1976D2;
}

.border-primary {
    border-color: #1976D2;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Pulse animation for buttons */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

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

/* Glow effect */
.glow-primary {
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.5), 
                0 0 40px rgba(25, 118, 210, 0.3),
                0 0 60px rgba(25, 118, 210, 0.1);
}

.text-glow-primary {
    text-shadow: 0 0 10px rgba(25, 118, 210, 0.8),
                 0 0 20px rgba(25, 118, 210, 0.5),
                 0 0 30px rgba(25, 118, 210, 0.3);
}

/* Canvas z-index */
canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #app-title {
        font-size: 2rem;
    }
    
    #app-tagline {
        font-size: 0.875rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #app-title {
        font-size: 3rem;
    }
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

/* Prevent text selection during gameplay */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Button hover effects */
.btn-3d {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.btn-3d:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
}

/* Transition utilities */
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-500 {
    transition-duration: 500ms;
}

/* Screen safe areas for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    #app {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}
