/* Quest System Styles */
#quests-panel {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    overflow-y: auto;
}

#quest-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

#main-quest-list,
#repeatable-quest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-quests {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

.quest-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
}

.quest-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.quest-card.ready {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.1);
}

.quest-info {
    flex: 1;
    margin-right: 15px;
}

.quest-info h3 {
    margin: 0 0 5px 0;
    color: var(--accent-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quest-info p {
    margin: 0 0 15px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quest-objectives-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.quest-objective {
    font-size: 0.8rem;
}

.obj-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #eee;
}

.obj-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.obj-progress-fill {
    height: 100%;
    background: var(--accent-secondary);
    transition: width 0.3s ease;
}

.quest-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.reward-tag {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: help;
}

.quest-action {
    min-width: 100px;
    display: flex;
    justify-content: center;
}

.claim-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.claim-btn:hover:not(:disabled) {
    background: #219150;
}

.claim-btn.disabled {
    background: #555;
    cursor: default;
    opacity: 0.6;
}

/* Mobile Specific Tweaks */
@media screen and (max-width: 768px) {
    .quest-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .quest-action {
        width: 100%;
        margin-top: 15px;
    }

    .claim-btn {
        width: 100%;
        padding: 12px;
    }
}

.quest-section-header {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    opacity: 0.8;
    text-transform: uppercase;
}

.quest-cancel-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s, transform 0.2s;
}

.quest-cancel-btn:hover {
    color: #ff5e5e;
    transform: scale(1.2);
}

.quest-card.available:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}