/* Custom CSS for Pal Legends */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px #ffd700; }
    100% { text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

@keyframes slideUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
}

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

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Component Styles */
.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff6f00);
    color: #0a0a0a;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    border: 2px solid #ffd700;
    color: #ffd700;
    background: transparent;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.btn-secondary:hover {
    background: #ffd700;
    color: #0a0a0a;
    transform: scale(1.05);
}

.btn-secondary:active {
    transform: scale(0.95);
}

.card {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(74, 20, 140, 0.2));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

/* Removed glow animation - keeping only basic animations */

/* Loading Screen Styles */
.loading-logo {
    animation: float 6s ease-in-out infinite;
}

/* Header Hide/Show */
.header-hidden {
    transform: translateY(-100%);
}

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Cards */
.feature-card {
    transform: scale(1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-card:active {
    transform: scale(0.95);
}

.feature-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-details.show {
    max-height: 200px;
}

/* Resource and Gacha Cards */
.resource-card {
    transform: scale(1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: scale(1.1);
    animation: pulse-glow 1s ease-in-out infinite;
}

.gacha-card {
    transform: scale(1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gacha-card:hover {
    transform: scale(1.05);
    animation: pulse-glow 2s ease-in-out infinite;
}

.gacha-card:active {
    transform: scale(0.95);
}

.gacha-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.gacha-card:hover::before {
    animation: rotate 2s linear infinite;
    opacity: 1;
}

/* Scroll to top button */
#scroll-top-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#scroll-top-btn:hover {
    animation: bounce-in 0.6s ease-out;
}

/* Enhanced card animations */
.card:hover {
    animation: float 2s ease-in-out infinite;
}

/* Pet and character cards enhanced effects */
.pet-card:hover, .character-card:hover {
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    transform: translateY(-10px);
}

/* Feature cards enhanced */
.feature-card:hover {
    animation: shake 0.5s ease-in-out;
}

/* Tab Styles */
.tab-btn.active {
    background: linear-gradient(135deg, #ffd700, #ff6f00);
    color: #0a0a0a;
}

/* Modal Styles */
.modal-backdrop {
    backdrop-filter: blur(12px);
}

/* Responsive */
@media (max-width: 768px) {
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-8xl {
        font-size: 4rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Smooth Scroll */
@media (prefers-reduced-motion: no-preference) {
    .smooth-scroll {
        scroll-behavior: smooth;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700, #ff6f00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6f00, #ffd700);
}