/* Diablo 4 Season 10 Tracker Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 48, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    width: 120px;
    background: rgba(0, 0, 0, 0.6);
    border-right: 1px solid #333333;
    padding: 8px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333333;
}

.sidebar-header h3 {
    color: #ff771f;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 119, 31, 0.3);
    margin: 0;
}

.season-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.season-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    backdrop-filter: blur(5px);
}

.season-btn:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.3);
    border-color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.season-btn.active {
    background: rgba(0, 0, 0, 0.6);
    border-color: #ff771f;
    box-shadow: 0 0 15px rgba(255, 119, 31, 0.3);
}

.season-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.1);
}

.season-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #7877c6;
    text-shadow: 0 0 5px rgba(120, 119, 198, 0.3);
}

button.season-btn.active span.season-number {
    color: #ff771f !important;
    text-shadow: 0 0 10px rgba(255, 119, 31, 0.3) !important;
}

.season-name {
    font-size: 0.75rem;
    color: #cccccc;
    margin-top: 1px;
}

.season-btn.active .season-name {
    color: #ffffff;
}

/* Main Content Wrapper */
.main-wrapper {
    flex: 1;
    padding: 20px;
    overflow-x: auto;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #4a4a4a;
}

.header h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff771f;
    text-shadow: 0 0 20px rgba(255, 119, 31, 0.3);
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ff771f 0%, #ffaa44 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.season-subtitle {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    margin: 0;
}

.season-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown {
    background: rgba(120, 119, 198, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #7877c6;
    color: #7877c6;
}

/* Navigation Styles */
.navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(120, 119, 198, 0.2);
    border-color: #7877c6;
    box-shadow: 0 0 20px rgba(120, 119, 198, 0.2);
}

.nav-btn.active {
    background: #7877c6;
    border-color: #7877c6;
    color: white;
    box-shadow: 0 0 20px rgba(120, 119, 198, 0.3);
}

/* Chapter Navigation Styles */
.chapter-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #333333;
    backdrop-filter: blur(10px);
}

.chapter-btn {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 100px;
}

.chapter-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chapter-btn.active {
    background: rgba(0, 0, 0, 0.6);
    border-color: #ff771f;
    color: #ff771f;
    box-shadow: 0 0 15px rgba(255, 119, 31, 0.3);
}

.chapter-btn.completed {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    color: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.chapter-btn.completed:hover {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.chapter-btn.completed.active {
    background: rgba(74, 222, 128, 0.3);
    border-color: #4ade80;
    color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Chapter Styles */
.chapter {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333333;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: none;
    backdrop-filter: blur(10px);
}

.chapter.active {
    display: block;
    background: rgba(0, 0, 0, 0.6);
    border-color: #ff771f;
    box-shadow: 0 0 20px rgba(255, 119, 31, 0.15);
}

.chapter:hover {
    border-color: #555555;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chapter-header {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2) 0%, rgba(255, 119, 31, 0.1) 100%);
    padding: 20px;
    border-bottom: 1px solid #333333;
}

.chapter-header h2 {
    font-size: 1.5rem;
    color: #ff771f;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 119, 31, 0.3);
}

.chapter-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.status-text {
    font-weight: 600;
    color: #7877c6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.progress-text {
    color: #cccccc;
    font-size: 0.9rem;
}

.chapter-rewards {
    margin-top: 10px;
}

.reward-text {
    color: #ff771f;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 119, 31, 0.3);
}

.reward-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.14);
    border: 2px solid #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
    vertical-align: text-bottom;
    margin-left: 4px;
    font-size: 0.9rem;
}

/* no nested img needed; using same emoji as chapter award */

/* simple tooltip using data-attribute */
.reward-inline-icon[data-tooltip] {
    position: relative;
}

.reward-inline-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75rem;
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 10;
}

.reward-inline-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    z-index: 10;
}

/* Chapter Rewards Styles */
.chapter-rewards {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #333333;
}

.chapter-rewards h3 {
    color: #ff771f !important;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 119, 31, 0.3);
}


.chapter-rewards .reward-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 10px 15px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.chapter-rewards .reward-item:hover {
    border-color: #555555;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.chapter-rewards .reward-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.14);
    border-radius: 50%;
    border: 2px solid #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.chapter-rewards .reward-info h4 {
    color: #ff771f;
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(255, 119, 31, 0.3);
}

.chapter-rewards .reward-info p {
    color: #cccccc;
    font-size: 0.8rem;
    margin: 0;
}



.completion-status {
    color: #4ade80;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    white-space: nowrap;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Objectives Styles */
.objectives {
    padding: 20px;
}

.objective-group {
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.objective-group:hover {
    border-color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

.objective-group h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.objective-group h3.completed {
    color: #4ade80;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.objective-description {
    margin-bottom: 12px;
    padding-left: 5px;
}

.objective-description p {
    color: #cccccc;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.objective-description strong {
    color: #ff771f;
    font-weight: 600;
}

.objective-description.completed {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.objective-description.completed p {
    color: #4ade80;
}

.objective-description.completed strong {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
    font-weight: 600;
}

.reward-text {
    color: #ff771f;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 119, 31, 0.3);
    background: rgba(255, 119, 31, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ff771f;
}

.objective-list {
    display: grid;
    gap: 8px;
    /* Dynamic grid will be set by JavaScript based on item count */
}

/* Default grid layouts for different item counts */
.objective-list[data-items="1"] {
    grid-template-columns: 1fr;
}

.objective-list[data-items="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.objective-list[data-items="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.objective-list[data-items="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.objective-list[data-items="5"] {
    grid-template-columns: repeat(3, 1fr);
}

.objective-list[data-items="6"] {
    grid-template-columns: repeat(3, 1fr);
}

.objective-list[data-items="7"] {
    grid-template-columns: repeat(4, 1fr);
}

.objective-list[data-items="8"] {
    grid-template-columns: repeat(4, 1fr);
}

/* For more than 8 items, use 4 columns */
.objective-list[data-items="9"],
.objective-list[data-items="10"],
.objective-list[data-items="11"],
.objective-list[data-items="12"] {
    grid-template-columns: repeat(4, 1fr);
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(5px);
}

.objective-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: #555555;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.objective-item.completed {
    background: rgba(120, 119, 198, 0.2);
    border-color: #7877c6;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.2);
}

.objective-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7877c6;
    cursor: pointer;
}

.objective-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ffffff;
}

.objective-item.completed .objective-text {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* Rewards Tab Styles */
.rewards-container {
    max-width: 800px;
    margin: 0 auto;
}

.rewards-container h2 {
    text-align: center;
    color: #ff771f;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(255, 119, 31, 0.3);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.reward-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reward-item:hover {
    border-color: #7877c6;
    box-shadow: 0 4px 20px rgba(120, 119, 198, 0.2);
}

.reward-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(120, 119, 198, 0.1);
    border-radius: 50%;
    border: 2px solid #7877c6;
}

.reward-info h3 {
    color: #ff771f;
    margin-bottom: 5px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 119, 31, 0.3);
}

.reward-info p {
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.reward-amount {
    color: #7877c6;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(120, 119, 198, 0.3);
}

/* Progress Tab Styles */
.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-container h2 {
    text-align: center;
    color: #ff771f;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(255, 119, 31, 0.3);
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333333;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    border-color: #7877c6;
    box-shadow: 0 4px 20px rgba(120, 119, 198, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    color: #ffffff;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7877c6;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

/* Footer Styles */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333333;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #7877c6;
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(120, 119, 198, 0.3);
}

.btn-primary:hover {
    background: #6b6bb8;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(120, 119, 198, 0.4);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: 1px solid #333333;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(120, 119, 198, 0.2);
    border-color: #7877c6;
    box-shadow: 0 0 15px rgba(120, 119, 198, 0.2);
}

.footer p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .objective-list[data-items="4"],
    .objective-list[data-items="5"],
    .objective-list[data-items="6"],
    .objective-list[data-items="7"],
    .objective-list[data-items="8"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #333333;
    }
    
    .season-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .season-btn {
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .main-wrapper {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .season-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .chapter-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .chapter-btn {
        width: 100%;
        min-width: auto;
    }
    
    .chapter-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .objective-list[data-items="3"],
    .objective-list[data-items="4"],
    .objective-list[data-items="5"],
    .objective-list[data-items="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .objective-list[data-items="1"],
    .objective-list[data-items="2"] {
        grid-template-columns: 1fr;
    }
    
    .objective-group {
        padding: 12px;
    }
    
    .objective-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .objective-description p {
        font-size: 1rem;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-item {
        flex-direction: column;
        text-align: center;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .chapter-header {
        padding: 15px;
    }
    
    .objectives {
        padding: 15px;
    }
    
    .objective-item {
        padding: 10px;
    }
    
    .reward-item {
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}
