/* achievements.css */

.ach-container {
    animation: fadeIn var(--transition-smooth);
    margin-top: 2rem;
    color: var(--text-primary);
}

/* Header section inside the custom content */
.ach-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.ach-title {
    font-family: 'Cinzel', var(--font-heading);
    font-size: 2.2rem;
    color: #d4af37; /* Gold accent */
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ach-title img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

/* Language Toggle */
.lang-toggle-wrapper {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.lang-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 26px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.lang-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* Tabs */
.ach-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ach-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.ach-tab:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.ach-tab.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Content Sections */
.ach-section {
    display: none;
    animation: fadeIn var(--transition-smooth);
}

.ach-section.active {
    display: block;
}

/* Info Box */
.ach-info-box {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border-left: 4px solid #d4af37;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ach-info-box h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ach-info-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Config Section */
.code-block {
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    color: #aee8ff;
    overflow-x: auto;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.config-step {
    margin-bottom: 2rem;
}

.config-step h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.config-step ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}
.config-step ul li {
    margin-bottom: 0.5rem;
}
.config-step code {
    background: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e2e8f0;
}

/* Rewards Grid */
.rewards-category {
    margin-bottom: 2.5rem;
}

.rewards-category-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #d4af37;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rewards-count {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.reward-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #d4af37;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s ease;
}

.reward-card:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.reward-icon {
    font-size: 1.5rem;
}

.reward-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* Commands styling */
.command-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.command-box code {
    background: #0f172a;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: monospace;
    font-size: 1rem;
    color: #fff;
}

.command-desc {
    color: var(--text-secondary);
    margin-top: 0.8rem;
}

/* Screenshots styling */
.ach-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    display: block;
    border-radius: 6px;
    border: 1px solid #5c4e43;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
    position: relative;
    cursor: zoom-in;
    background-color: #16120e;
    text-decoration: none;
}

.gallery-item::after {
    content: "🔍 View";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    pointer-events: none;
    background: rgba(0,0,0,0.6);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #d4af37;
    z-index: 10;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.9);
    border-color: #d4af37;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover .gallery-img {
    filter: brightness(0.7) blur(1px);
}

.ach-screenshot-desc {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.9);
    position: relative;
    z-index: 2;
}

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

/* Spoiler details */
.reward-spoiler {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.reward-spoiler summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    outline: none;
    transition: color 0.2s ease;
}

.reward-spoiler summary:hover {
    color: #aee8ff;
}

.reward-content {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.reward-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid #d4af37;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.reward-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 4px 25px rgba(0,0,0,1);
    border: 2px solid #5c4e43;
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 20px;
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    font-family: var(--font-heading);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #d4af37;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
    transform: translateY(-50%);
    padding: 20px;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.lightbox-nav:hover {
    color: #d4af37;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
