.tiertagger-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(15, 16, 32, 0) 100%);
    border-radius: 20px;
    margin-bottom: 40px;
}

.tiertagger-icon {
    font-size: 80px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tiertagger-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.tiertagger-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.tiertagger-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tiertagger-description,
.tiertagger-features,
.tiertagger-requirements,
.tiertagger-download,
.tiertagger-screenshots {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.tiertagger-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tiertagger-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.feature-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #1a1d2e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
}

.requirement-item i {
    font-size: 1.3rem;
    color: #10b981;
}

.tiertagger-download {
    text-align: center;
}

.tiertagger-download p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.download-button.modrinth {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.download-button.modrinth:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.download-button.direct {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.download-button.direct:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, var(--accent-gold) 100%);
}

.download-button i {
    font-size: 1.2rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshot-item {
    background-color: #1a1d2e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    transform: translateY(-5px);
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.screenshot-caption {
    padding: 15px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 600;
}

/* Download Modal Styles */
.download-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.download-modal-overlay.active {
    display: flex;
}

.download-modal-container {
    background: linear-gradient(135deg, #1a1d2e 0%, #0f1020 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: max-height 0.3s ease, height 0.3s ease;
}

.download-modal-container.expanded {
    max-height: 95vh;
}

.download-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.download-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.download-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.download-modal-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.download-modal-body {
    padding: 30px;
}

.version-selector-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.version-selector-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: #1a1d2e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-selector-btn:hover {
    border-color: var(--accent-gold);
    background-color: rgba(251, 191, 36, 0.05);
}

.version-selector-btn i:first-child {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.version-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.version-selector-btn.active .version-arrow {
    transform: rotate(180deg);
}

.version-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #1a1d2e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    z-index: 100;
    animation: slideDown 0.3s ease;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.version-dropdown.hidden {
    display: none;
}

.version-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
}

.version-search i {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.version-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.version-search input::placeholder {
    color: var(--text-secondary);
}

.version-list {
    overflow-y: auto;
    max-height: 250px;
}

.version-item {
    padding: 12px 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-item:last-child {
    border-bottom: none;
}

.version-item:hover {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
}

.version-item i {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.platform-info i {
    font-size: 1.1rem;
}

.download-section {
    animation: fadeIn 0.3s ease;
}

.download-section.hidden {
    display: none;
}

.mod-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mod-version {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-badge {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.mod-name {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.final-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.final-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.final-download-btn i {
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scaleY(0.8);
    }
    50% {
        transform: translateY(5px) scaleY(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes modalSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-5px) scaleY(0.98);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scaleY(0.8);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-modal-overlay.closing {
    animation: fadeOut 0.3s ease;
}

.download-modal-overlay.closing .download-modal-container {
    animation: modalSlideOut 0.3s ease;
}

@media (max-width: 768px) {
    .tiertagger-title {
        font-size: 2.2rem;
    }

    .tiertagger-subtitle {
        font-size: 1rem;
    }

    .tiertagger-icon {
        font-size: 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .tiertagger-content h3 {
        font-size: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .download-button {
        width: 100%;
        justify-content: center;
    }
}
