/* ============================================================
   Pirate Win — Daily Task Widget
   Matches the main Pirate Win page design (dark navy + gold),
   same tokens as survey.css
   ============================================================ */

:root {
    --dailytask-bg: #0f1729;
    --dailytask-card: #18243b;
    --dailytask-card-light: #1e2a45;

    --dailytask-border: rgba(255, 255, 255, 0.07);

    --dailytask-gold: #f5a623;
    --dailytask-gold-light: #ffc861;

    --dailytask-green: #22c55e;
    --dailytask-red: #ef4444;

    --dailytask-text: #ffffff;
    --dailytask-muted: #94a3b8;
    --dailytask-text-light: #cbd5e1;

    --dailytask-radius: 18px;
    --dailytask-radius-lg: 24px;
}

.dailytask-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 0 20px;
    color: var(--dailytask-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* ============================================================
   INTRODUCTION
   ============================================================ */

.dailytask-intro {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    border-radius: var(--dailytask-radius-lg);
    background: linear-gradient(135deg, rgba(30, 42, 69, 0.9), rgba(24, 36, 59, 0.9));
    border: 1px solid var(--dailytask-border);
    overflow: hidden;
}

.dailytask-intro::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.08);
    filter: blur(40px);
    pointer-events: none;
}

.dailytask-intro-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.25);
    font-size: 25px;
}

.dailytask-intro-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.dailytask-intro-title {
    margin: 0 0 5px;
    color: var(--dailytask-text);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.dailytask-intro-text {
    margin: 0;
    max-width: 700px;
    color: var(--dailytask-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   TASK CARD
   ============================================================ */

.dailytask-card {
    padding: 22px 24px;
    background: linear-gradient(145deg, rgba(30, 42, 69, 0.95), rgba(24, 36, 59, 0.95));
    border: 1px solid var(--dailytask-border);
    border-radius: var(--dailytask-radius);
}

.dailytask-header {
    margin-bottom: 10px;
}

.dailytask-category {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.1);
    color: var(--dailytask-gold);
}

.dailytask-category-survey { background: rgba(88, 166, 255, 0.12); color: #7fb8ff; }
.dailytask-category-xp     { background: rgba(245, 166, 35, 0.12); color: var(--dailytask-gold); }
.dailytask-category-game   { background: rgba(255, 99, 132, 0.12); color: #ff8fa3; }

.dailytask-goal {
    margin: 6px 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dailytask-text);
}

.dailytask-game-link {
    color: var(--dailytask-gold-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dailytask-game-link:hover {
    color: var(--dailytask-gold);
}

.dailytask-progress-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.dailytask-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dailytask-gold), var(--dailytask-gold-light));
    transition: width 0.3s ease;
}

.dailytask-progress-label {
    font-size: 12.5px;
    color: var(--dailytask-muted);
    margin: 0 0 16px;
}

.dailytask-reward {
    font-size: 14px;
    color: var(--dailytask-text-light);
    margin-bottom: 18px;
}

.dailytask-reward strong {
    color: var(--dailytask-gold-light);
}

.dailytask-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dailytask-btn--claim {
    color: #1a1206;
    background: linear-gradient(135deg, var(--dailytask-gold-light), var(--dailytask-gold));
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.2);
}

.dailytask-btn--claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3);
}

.dailytask-btn--locked,
.dailytask-btn--claimed {
    background: rgba(255, 255, 255, 0.06);
    color: var(--dailytask-muted);
    cursor: not-allowed;
}

/* ============================================================
   EMPTY / LOADING / ERROR STATES
   ============================================================ */

.dailytask-empty,
.dailytask-loading,
.dailytask-error {
    padding: 60px 25px;
    text-align: center;
    background: linear-gradient(145deg, rgba(30, 42, 69, 0.7), rgba(24, 36, 59, 0.7));
    border: 1px solid var(--dailytask-border);
    border-radius: var(--dailytask-radius-lg);
    color: var(--dailytask-muted);
}

.dailytask-empty h3 {
    margin: 0 0 8px;
    color: var(--dailytask-text);
    font-size: 19px;
    font-weight: 800;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    .dailytask-intro {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 15px;
        padding: 18px;
    }
}