@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

/* Apply font globally */
body {
    font-family: 'Fredoka', sans-serif;
    background-color: #f7fafc;
    color: #2d3748;
}

/* Glassmorphic Rounded Floating Navbar */
.glass-navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease;
}

/* Floating animation for game mascot */
@keyframes game-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
    }
}

.mascot-bounce {
    animation: game-bounce 4s infinite ease-in-out;
}

/* Playful 3D claim buttons */
.claim-btn-3d {
    background: linear-gradient(to bottom, #ffb300, #ff8000);
    border: none;
    border-bottom: 4px solid #cc5200;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px rgba(255, 128, 0, 0.25);
    transition: all 0.15s ease;
}

.claim-btn-3d:hover {
    transform: translateY(1px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px rgba(255, 128, 0, 0.35);
}

.claim-btn-3d:active {
    transform: translateY(3px);
    border-bottom-width: 0px;
    box-shadow: 0 0 2px rgba(255, 128, 0, 0.4);
}

/* Secondary 3D buttons (Join Telegram / Share) */
.btn-tg-3d {
    background: linear-gradient(to bottom, #00b0ff, #0080ff);
    border: none;
    border-bottom: 4px solid #0059b3;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 10px rgba(0, 128, 255, 0.2);
    transition: all 0.15s ease;
}

.btn-tg-3d:hover {
    transform: translateY(1px);
    border-bottom-width: 2px;
}

.btn-tg-3d:active {
    transform: translateY(3px);
    border-bottom-width: 0px;
}

.btn-share-3d {
    background: linear-gradient(to bottom, #a0aec0, #718096);
    border: none;
    border-bottom: 4px solid #4a5568;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(113, 128, 150, 0.15);
    transition: all 0.15s ease;
}

.btn-share-3d:hover {
    transform: translateY(1px);
    border-bottom-width: 2px;
}

.btn-share-3d:active {
    transform: translateY(3px);
    border-bottom-width: 0px;
}

/* Custom cards */
.cm-card {
    background: #ffffff;
    border: 2px solid #edf2f7;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.cm-featured-card {
    background: linear-gradient(135deg, #fffaf0, #fff);
    border: 2px solid #fbd38d !important;
    box-shadow: 0 4px 20px rgba(221, 107, 32, 0.06);
}

.cm-featured-card:hover {
    border-color: #f6ad55 !important;
    box-shadow: 0 12px 30px rgba(221, 107, 32, 0.12);
}

/* Custom TinyMCE inline spin card classes */
.redirect-card-wrapper {
    margin: 1.5rem 0;
    width: 100%;
}

.redirect-card {
    display: block;
    position: relative;
    border-radius: 20px;
    padding: 1.25rem;
    background: #ffffff;
    border: 2px solid #ffb300;
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.redirect-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 179, 0, 0.2);
}

.redirect-card .card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffb300;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.85rem;
    border-bottom-left-radius: 12px;
    text-transform: uppercase;
}

.redirect-card .card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.redirect-card .card-icon img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.redirect-card .card-title {
    color: #2d3748;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Task button styling */
.task-btn-game {
    background: #edf2f7;
    color: #4a5568;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    border-bottom: 3px solid #cbd5e0;
    transition: all 0.15s ease;
}

.task-btn-game:hover {
    background: #e2e8f0;
}

.task-btn-game.active-loading {
    background: #ebf8ff;
    color: #2b6cb0;
    border-bottom-color: #bee3f8;
}

.task-btn-game.done {
    background: #c6f6d5;
    color: #22543d;
    border-bottom-color: #9ae6b4;
}
