/**
* DADA Coins Dashboard CSS - Glassmorphism High-End Redesign (Option A)
*/

/* General Container */
.dada-dashboard-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Glassmorphism Background */
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f5f9;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* Background Accents (Subtle Glows) */
.dada-dashboard-container::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: dadaPulseGradient 10s ease-in-out infinite alternate;
}

.dada-dashboard-container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: dadaPulseGradient 12s ease-in-out infinite alternate-reverse;
}

/* Coin Header & Animation */
.dada-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    animation: dadaSlideDown 0.8s ease-out;
    position: relative;
    padding: 25px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: dadaShimmerBg 8s infinite linear;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Tabs Navigation */
.dada-dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

.dada-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.dada-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dada-tab-btn.active {
    background: rgba(233, 30, 99, 0.2); /* Soft Pink/Red Glass */
    border-color: rgba(233, 30, 99, 0.4);
    color: #fda4af;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.2), inset 0 0 20px rgba(233, 30, 99, 0.1);
    text-shadow: 0 0 8px rgba(233, 30, 99, 0.4);
}

/* Mobile Scrollable Tabs - Fixed & Wrapped (User Request) */
@media screen and (max-width: 768px) {
    .dada-dashboard-container {
        padding: 15px; /* Reduce padding to avoid squeezing */
    }

    .dada-quests-grid {
        /* Force single column that fills available space, allowing cards to shrink naturally */
        grid-template-columns: 1fr;
    }

    .dada-dashboard-tabs {
        justify-content: center;
        flex-wrap: wrap; /* Stack tabs */
        overflow-x: visible; /* No scroll */
        padding-bottom: 15px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .dada-dashboard-tabs::-webkit-scrollbar {
        display: none;
    }

    .dada-tab-btn {
        margin: 4px; /* Even spacing for stacked tabs */
        font-size: 0.85em;
        padding: 10px 16px;
        flex: 1 1 auto; /* Grow to fill space but allow wrapping */
        text-align: center;
    }
}

/* Content Area & Transitions */
.dada-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    position: relative;
    z-index: 2;
}

.dada-tab-content.active {
    display: block;
    animation: dadaFadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Streak Section */
.dada-streak-container {
    text-align: center;
    margin-bottom: 30px;
}

.dada-streak-container h3 {
    margin-top: 0;
    color: #f43f5e; /* Vibrant Red/Pink */
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.dada-streak-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.dada-streak-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #94a3b8;
    transition: all 0.4s ease;
    position: relative;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.dada-streak-circle .day-label {
    font-size: 0.7em;
    margin-top: 4px;
    opacity: 0.8;
}

.dada-streak-circle.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.dada-streak-circle.passed {
    opacity: 0.7;
    transform: scale(0.95);
}

.dada-streak-circle.current {
    transform: scale(1.2);
    z-index: 5;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.dada-streak-circle.current:not(.claimed) {
    animation: dadaPulse 2s infinite;
}

.dada-streak-circle.current.claimed {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: none;
}

.streak-timer {
    font-size: 0.95em;
    color: #cbd5e1;
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
}

#dada-countdown { font-family: 'Courier New', monospace; font-weight: bold; color: #f1f5f9; }
#dada-countdown.urgent { color: #f87171; animation: dadaShake 0.5s ease-in-out infinite; }

/* QUESTS SECTION */
.dada-quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    perspective: 1200px;
}

.dada-quest-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
    border-radius: 20px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: dadaCardEnter 0.7s forwards;
}

/* Staggered Entry */
.dada-quest-card:nth-child(1) { animation-delay: 0.1s; }
.dada-quest-card:nth-child(2) { animation-delay: 0.2s; }
.dada-quest-card:nth-child(3) { animation-delay: 0.3s; }
.dada-quest-card:nth-child(4) { animation-delay: 0.4s; }
.dada-quest-card:nth-child(5) { animation-delay: 0.5s; }

.dada-quest-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(40, 50, 70, 0.7);
}

/* Shine Effect on Hover */
.dada-quest-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: none;
}
.dada-quest-card:hover::after {
    left: 200%;
    transition: left 0.6s ease-in-out;
}

.dada-quest-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(6, 78, 59, 0.5);
}

.dada-quest-card.wide-card {
    grid-column: 1 / -1;
}

.quest-icon {
    font-size: 3.5em;
    margin-bottom: 25px;
    text-align: center;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.15));
    transition: transform 0.3s;
}
.dada-quest-card:hover .quest-icon {
    transform: scale(1.1) rotate(5deg);
}

.quest-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.quest-content h4 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    color: #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.coin-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #fff;
    font-size: 0.75em;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

.quest-desc {
    color: #cbd5e1;
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-weight: 300;
}

.quest-meta {
    font-size: 0.85em;
    color: #94a3b8;
    margin-bottom: 15px;
    font-style: italic;
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid rgba(255,255,255,0.1);
}

/* Status Badges */
.quest-status {
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.quest-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
.quest-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Social Tool */
.dada-social-tool {
    background: rgba(15, 23, 42, 0.5);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 20px;
}

/* Raid Actions */
.dada-raid-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.raid-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    transition: all 0.2s;
}

.raid-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.dada-social-tool label {
    display: block;
    font-size: 0.85em;
    color: #e2e8f0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.dada-select {
    width: 100%;
    padding: 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dada-select:hover, .dada-select:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.dada-referral-option {
    margin: 20px 0;
    background: rgba(233, 30, 99, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(233, 30, 99, 0.25);
    transition: background 0.3s;
}

.dada-referral-option:hover {
    background: rgba(233, 30, 99, 0.15);
}

.dada-referral-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #fda4af;
    font-weight: bold;
    text-transform: none;
    font-size: 1em;
    margin: 0;
}

.text-reroll-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#dada-share-text {
    flex: 1;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    padding: 18px;
    border-radius: 12px;
    resize: none;
    height: 180px;
    font-size: 1.1em;
    transition: all 0.3s;
    font-family: 'Segoe UI', sans-serif;
    backdrop-filter: blur(4px);
}

#dada-share-text:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
    outline: none;
    background: rgba(15, 23, 42, 0.9);
}

#dada-share-text.flash {
    background: rgba(51, 65, 85, 0.9);
    transform: scale(1.02);
}

/* Buttons (Modern Glass Style) */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0.5px;
}

.button-primary {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9) 0%, rgba(190, 24, 93, 0.9) 100%);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    position: relative;
    overflow: hidden;
}

.button-primary:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #be185d 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.5);
    border-color: rgba(255,255,255,0.3);
}

/* Ripple effect via JS or subtle CSS glow */
.button-primary:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    100% { transform: scale(40, 40); opacity: 0; }
}
.button-primary.clicking::after {
    animation: ripple 0.6s ease-out;
}

.button-secondary {
    background: rgba(159, 18, 57, 0.2);
    color: #fda4af;
    border: 1px solid rgba(190, 24, 93, 0.5);
    backdrop-filter: blur(4px);
}

.button-secondary:hover {
    background: rgba(190, 24, 93, 0.4);
    color: #fff;
    border-color: #be185d;
    box-shadow: 0 0 15px rgba(190, 24, 93, 0.3);
    transform: translateY(-2px);
}

.dada-verify-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.button-small {
    background: rgba(29, 161, 242, 0.8);
    color: #fff;
    font-size: 0.9em;
    margin-bottom: 15px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.button-small:hover {
    background: #0c85d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 133, 208, 0.3);
}

input[type="url"], input[type="text"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

input[type="url"]:focus, input[type="text"]:focus {
    border-color: #e91e63;
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

/* Modal - Enhanced */
.dada-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px); /* Strong blur for background */
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: dadaFadeIn 0.3s ease-out;
}

.dada-modal-content {
    background: rgba(30, 41, 59, 0.8);
    background-image: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    color: #fff;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    animation: dadaScaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dada-modal-close {
    color: #94a3b8;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.dada-modal-close:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

.dada-modal-icon {
    font-size: 6em;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
    animation: dadaBounce 1.5s infinite alternate;
}

.dada-modal-btn {
    background: linear-gradient(135deg, #e91e63 0%, #be185d 100%);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 1.1em;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 30px;
    font-weight: 800;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.dada-modal-btn:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #db2777 100%);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.6);
}

/* Floating Text (Option A) */
.dada-floating-text {
    position: absolute;
    font-size: 2rem;
    font-weight: 800;
    color: #34d399;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
    pointer-events: none;
    animation: floatUp 1.5s ease-out forwards;
    z-index: 2000; /* High z-index */
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { transform: translateY(-20px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-80px) scale(1); opacity: 0; }
}

/* Animations Keyframes */
@keyframes dadaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dadaSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dadaFadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dadaCardEnter {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dadaScaleUp {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes dadaBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

@keyframes dadaPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

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

@keyframes dadaPulseGradient {
    0% { opacity: 0.15; transform: scale(1); }
    100% { opacity: 0.25; transform: scale(1.15); }
}

@keyframes dadaShimmerBg {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#dada-twitter-share-btn {
    color: #fff !important; /* Ensure readable on dark button */
    font-weight: bold;
}

/* Info Icon Tooltip Style */
.dada-info-icon {
    cursor: help;
    font-size: 0.8em;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.dada-info-icon:hover {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}
