/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    /* Subtle background pattern */
    background-image:
        radial-gradient(circle at 25% 25%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(74, 124, 89, 0.03) 0%, transparent 50%);
    background-size: 100px 100px, 150px 150px;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--gold-color) 0%,
        var(--diamond-color) 25%,
        var(--emerald-color) 50%,
        var(--iron-color) 75%,
        var(--coal-color) 100%);
    opacity: 0.8;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    /* Subtle glow effect */
    text-shadow: 0 0 4px var(--accent-secondary);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-secondary);
    /* Subtle icon glow */
    filter: drop-shadow(0 0 2px var(--accent-secondary));
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    /* Subtle active glow */
    text-shadow: 0 0 2px var(--accent-secondary);
}

.nav-link i {
    font-size: 1.1rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    /* Subtle background pattern */
    background-image:
        linear-gradient(135deg, var(--primary-color), var(--secondary-color)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-blend-mode: overlay;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0.5;
}

.search-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.search-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Subtle title glow */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 4px var(--accent-secondary);
}

.search-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Search Box Styles */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    z-index: 3;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.search-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.theme-light .stat-item .stat-number,
.theme-dark .stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /* Subtle number glow */
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.3),
        0 0 4px var(--accent-secondary);
}

.theme-light .stat-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    /* Subtle icon glow */
    filter: drop-shadow(0 0 2px var(--accent-secondary));
}

.theme-dark .stat-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    /* Subtle icon glow */
    filter: drop-shadow(0 0 2px var(--accent-secondary));
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    /* Subtle icon glow */
    filter: drop-shadow(0 0 2px var(--accent-secondary));
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    /* Subtle title glow */
    text-shadow: 0 0 4px var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg,
        var(--gold-color) 0%,
        var(--diamond-color) 25%,
        var(--emerald-color) 50%,
        var(--iron-color) 75%,
        var(--coal-color) 100%);
    border-radius: 2px;
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Subtle header pattern */
    background-image:
        linear-gradient(135deg, var(--primary-color), var(--secondary-color)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-blend-mode: overlay;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0.5;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    /* Subtle title glow */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 4px var(--accent-secondary);
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Filters Section */
.filters-section {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 3px solid var(--border-color);
}

.filters-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.filters-content .search-box {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

.filters-content .search-box input {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
}

.filters-content .search-box input:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.filters-content .search-box input::placeholder {
    color: var(--text-muted);
}

.filters-content .search-box i {
    font-size: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.filter-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(92, 140, 62, 0.2);
}

.filter-select option {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.5rem;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Subtle hover glow */
    text-shadow: 0 0 2px var(--accent-secondary);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    position: relative;
    /* Subtle footer border */
    border-top: 2px solid var(--primary-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--gold-color) 0%,
        var(--diamond-color) 25%,
        var(--emerald-color) 50%,
        var(--iron-color) 75%,
        var(--coal-color) 100%);
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-title {
        font-size: 2rem;
    }

    .search-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .filters-content {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-content .search-box {
        min-width: auto;
    }

    .filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Results Section */
.search-results-section {
    padding: 2rem 0;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--text-muted);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-results p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Search Result Cards */
.search-result-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.search-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-secondary));
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.result-content {
    flex: 1;
}

.result-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.result-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.result-code {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.result-type {
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.download-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.view-btn {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.view-btn:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive design for search results */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-result-card {
        margin: 0 1rem;
    }

    .result-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .result-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .view-btn {
        order: -1;
    }
}

/* Info Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.info-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.info-content {
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    padding: 1.5rem;
    border-radius: 13px 13px 0 0;
    position: relative;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--accent-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.info-body {
    padding: 1.5rem;
}

.info-description {
    margin-bottom: 1.5rem;
}

.info-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.info-description p {
    color: var(--text-muted);
    line-height: 1.6;
}

.info-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-meta div {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-meta div:last-child {
    grid-column: 1 / -1;
}

.info-tags {
    margin-bottom: 1.5rem;
}

.info-tags h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.info-tags .mod-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.25rem;
    font-weight: 500;
}

.info-requirements {
    margin-bottom: 1.5rem;
}

.info-requirements h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.info-requirements ul {
    list-style: none;
    padding: 0;
}

.info-requirements li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.info-requirements li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.info-installation {
    margin-bottom: 1.5rem;
}

.info-installation h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.info-installation h4::before {
    content: '📋';
    position: absolute;
    left: 0;
    top: 0;
}

.info-installation ol {
    list-style: none;
    padding: 0;
    counter-reset: installation-step;
}

.info-installation li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    position: relative;
    padding-left: 2rem;
    counter-increment: installation-step;
}

.info-installation li:before {
    content: counter(installation-step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.info-installation li:last-child {
    border-bottom: none;
}

.info-installation li:hover {
    background: var(--bg-secondary);
    margin: 0 -1.5rem;
    padding-left: 3.5rem;
    padding-right: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.info-actions .download-btn {
    background: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.info-actions .download-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-btn {
    padding: 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 0 0 auto;
}

.info-btn:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .info-content {
        width: 95%;
        margin: 1rem;
    }

    .info-header {
        padding: 1rem;
    }

    .info-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .info-content {
        width: 98%;
        margin: 0.5rem;
    }

    .info-title {
        font-size: 1.2rem;
    }
}

/* Minecraft-style slide up animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom Scrollbar Styles for Modals */
.info-content::-webkit-scrollbar,
.preview-content::-webkit-scrollbar {
    width: 8px;
}

.info-content::-webkit-scrollbar-track,
.preview-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
    margin: 4px;
}

.info-content::-webkit-scrollbar-thumb,
.preview-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-content::-webkit-scrollbar-thumb:hover,
.preview-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(1.2);
}

.info-content::-webkit-scrollbar-corner,
.preview-content::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
    border-radius: 4px;
}

/* Firefox scrollbar styles */
.info-content,
.preview-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Enhanced modal animations */
.info-modal.active .info-content,
.preview-modal.active .preview-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal backdrop enhancement */
.info-modal.active,
.preview-modal.active {
    animation: backdropFadeIn 0.3s ease;
}

@keyframes backdropFadeIn {
    0% {
        backdrop-filter: blur(0px);
        background: rgba(0, 0, 0, 0);
    }
    100% {
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Popular Content Section */
.popular-content-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.content-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--gold-color) 0%,
        var(--diamond-color) 25%,
        var(--emerald-color) 50%,
        var(--iron-color) 75%,
        var(--coal-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-secondary);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-stats i {
    color: var(--accent-secondary);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.features-section .section-title {
    color: var(--accent-color);
    text-align: center;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.feature-item {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-secondary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .content-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 1rem;
    }

    .category-stats {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        padding: 1rem;
    }
}
