/* ===== QUESTS HERO SECTION ===== */
#quests-hero {
    background: linear-gradient(rgba(11, 11, 18, 0.9), rgba(11, 11, 18, 0.5)),
                url('../images/background.jpg') center/cover no-repeat;
    padding: 4rem 0;
}

#quests-hero img {
    max-width: 300px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== SPOILER TOGGLE STYLES ===== */
.spoiler-toggle-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spoiler-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.spoiler-toggle .form-check-input {
    width: 3rem;
    height: 1.5rem;
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.spoiler-toggle .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.spoiler-toggle .form-check-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    margin-left: 1rem;
}

.toggle-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.toggle-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.spoiler-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.spoiler-note i {
    margin-right: 0.5rem;
}

/* ===== SPOILER CONTENT STYLES ===== */
.spoiler-content {
    transition: all 0.3s ease;
}

.spoiler-warning {
    background-color: rgba(250, 73, 73, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
}

.spoiler-warning i {
    margin-right: 0.5rem;
}

/* Hide spoiler content when toggle is active */
body.spoilers-hidden .spoiler-content {
    display: none;
}

body.spoilers-hidden .spoiler-toggle .toggle-status::before {
    content: "Spoilers Hidden";
}

body:not(.spoilers-hidden) .spoiler-toggle .toggle-status::before {
    content: "Spoilers Visible";
}

/* ===== TRADER HEADER STYLES ===== */
.trader-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.trader-info {
    flex: 1;
}

.trader-name {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.trader-description {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 1.1rem;
    max-width: 600px;
}

.trader-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.main-trader {
    background-color: var(--primary-color);
    color: white;
}

.hunting-trader {
    background-color: #8B4513;
    color: white;
}

.fishing-trader {
    background-color: #1E90FF;
    color: white;
}

.blackmarket-trader {
    background-color: #2F4F4F;
    color: white;
}

.drug-trader {
    background-color: #8A2BE2;
    color: white;
}

.bitcoin-trader {
    background-color: #FF9900;
    color: white;
}

.boat-trader {
    background-color: #00BFFF;
    color: white;
}

/* ===== QUESTS CONTENT STYLES ===== */
.quest-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.quest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.quest-card-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quest-card-body {
    padding: 1.5rem;
}

.quest-card-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.quest-card-subtitle {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quest-card-text {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quest-card-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.quest-card-list li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.quest-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-daily {
    background-color: #663399;
    color: white;
}

.type-week {
    background-color: #4169E1;
    color: white;
}

.type-rep {
    background-color: #DC143C;
    color: white;
}

.quest-difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-easy {
    background-color: #2E8B57;
    color: white;
}

.difficulty-medium {
    background-color: #FF8C00;
    color: white;
}

.difficulty-hard {
    background-color: #FF0000;
    color: white;
}

.difficulty-veryhard {
    background-color: #8B0000;
    color: white;
}

.difficulty-legendary {
    background-color: #FFD700;
    color: white;
}

.quest-rewards {
    background-color: rgba(8, 183, 133, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
}

.quest-rewards-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quest-rewards-list {
    margin: 0;
    padding-left: 1.5rem;
}

.quest-rewards-list li {
    color: var(--text-primary);
}

.quest-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quest-category-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.quest-category-item:hover {
    transform: translateY(-3px);
}

.quest-category-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.quest-search {
    margin-bottom: 2rem;
}

.quest-search input {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
}

.quest-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quest-sidebar {
    position: sticky;
    top: 100px;
}

.quest-nav {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quest-nav-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quest-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quest-nav-list li {
    margin-bottom: 0.5rem;
}

.quest-nav-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quest-nav-list a:hover {
    color: var(--primary-color);
}

.quest-nav-list a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.quest-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.quest-section-title {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.quest-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.quest-badge-primary {
    background-color: var(--primary-color);
}

.quest-progress {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.quest-progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
}

.quest-progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.quest-progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== MULTI-PART QUEST STYLES ===== */
.quest-series {
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.quest-series-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quest-series-title {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.8rem;
}

.quest-series-progress {
    display: flex;
    align-items: center;
}

.quest-series-progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.quest-series-parts {
    padding: 1.5rem;
}

.quest-series .quest-card {
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.quest-series .quest-card:last-child {
    margin-bottom: 0;
}

.quest-series-badges {
    display: flex;
    gap: 0.5rem;
}

.quest-series-part {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quest-series-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quest-series-prev,
.quest-series-next {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quest-series-prev:hover,
.quest-series-next:hover {
    color: var(--secondary-color);
}

.quest-series-current {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
    .quest-sidebar {
        position: static;
        margin-bottom: 3rem;
    }
    
    .quest-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .quest-series-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .trader-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .spoiler-toggle-container {
        margin: 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .quest-category-grid {
        grid-template-columns: 1fr;
    }
    
    #quests-hero img {
        max-width: 200px;
    }
    
    .quest-series-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .quest-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .quest-series-badges {
        width: 100%;
        justify-content: flex-start;
    }
    
    .spoiler-toggle .form-check-label {
        margin-left: 0.5rem;
    }
}

/* ===== HERO SECTION STYLES (from stats.css) ===== */
.stats-hero {
    background: linear-gradient(135deg, rgba(11, 11, 18, 0.9) 0%, rgba(11, 11, 18, 0.7) 100%), 
                url('images/background.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stats-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(46, 139, 87, 0.1) 0%, transparent 50%);
}

.stats-logo {
    animation: float 6s ease-in-out infinite;
    font-size: 5rem;
    color: var(--primary-color);
}

.stats-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.stats-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ===== SECTION STYLES (from stats.css) ===== */
.stats-section {
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(230, 57, 70, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(42, 157, 143, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== SPOILER TOGGLE STYLES ===== */
.spoiler-toggle-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10; /* Add this to ensure it's clickable */
}

.spoiler-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 11; /* Add this to ensure it's clickable */
}

.spoiler-toggle .form-check-input {
    width: 3rem;
    height: 1.5rem;
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
    position: relative;
    z-index: 12; /* Add this to ensure it's clickable */
}

.spoiler-toggle .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.spoiler-toggle .form-check-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    margin-left: 1rem;
    position: relative;
    z-index: 12; /* Add this to ensure it's clickable */
}

.toggle-label {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 12; /* Add this to ensure it's clickable */
}

.toggle-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 12; /* Add this to ensure it's clickable */
}

.spoiler-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 12; /* Add this to ensure it's clickable */
}

.spoiler-note i {
    margin-right: 0.5rem;
}

/* ===== SPOILER CONTENT STYLES ===== */
.spoiler-content {
    transition: all 0.3s ease;
}

.spoiler-warning {
    background-color: rgba(250, 73, 73, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    z-index: 5; /* Lower z-index for content */
}

.spoiler-warning i {
    margin-right: 0.5rem;
}

/* Hide spoiler content when toggle is active */
body.spoilers-hidden .spoiler-content {
    display: none;
}

body.spoilers-hidden .spoiler-toggle .toggle-status::before {
    content: "Spoilers Hidden";
}

body:not(.spoilers-hidden) .spoiler-toggle .toggle-status::before {
    content: "SPOILERS VISIBLE";
}