.modpack-main {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.modpack-container {
    background: var(--ore-card-bg);
    border: 3px solid var(--ore-card-border);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px 50px;
    margin-top: 20px;
}

.modpack-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(44, 76, 102, 0.15);
}

.modpack-icon {
    flex-shrink: 0;
}

.modpack-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid var(--ore-card-border);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.modpack-title-block {
    flex: 1;
}

.modpack-name {
    margin: 0 0 8px 0;
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--ore-card-border);
    font-family: 'Metamorphous', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modpack-tagline {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Sections */
.modpack-section {
    margin-bottom: 50px;
}

.modpack-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Metamorphous', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--am-gold);
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--am-gold);
    display: inline-block;
}

.modpack-content .wiki-text {
    margin-top: 0;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.modpack-content .wiki-text + .wiki-text {
    margin-top: 15px;
}

.modpack-content code {
    background: #1a1a1a;
    color: var(--ore-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    border: 1px solid var(--ore-card-border);
    font-size: 0.95em;
}

.modpack-content blockquote {
    margin: 20px 0;
}

.mod-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.mod-item {
    background: rgba(44, 76, 102, 0.04);
    border: 1px solid rgba(44, 76, 102, 0.12);
    border-left: 4px solid var(--am-gold);
    border-radius: 6px;
    padding: 16px 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mod-item:hover {
    border-color: var(--am-gold);
    box-shadow: 0 0 10px rgba(176, 141, 85, 0.1);
}

.mod-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.mod-item h3 {
    margin: 0;
    font-family: 'Metamorphous', serif;
    color: var(--ore-card-border);
    font-size: 1.1rem;
}

.mod-item p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 0.95rem;
    opacity: 0.85;
}

.mod-item strong {
    color: var(--am-gold);
}

.mod-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Metamorphous', serif;
    background: rgba(176, 141, 85, 0.15);
    color: var(--am-gold);
    border: 1px solid var(--am-gold);
    white-space: nowrap;
}

.mod-badge-slate {
    background: rgba(91, 124, 153, 0.15);
    color: var(--ore-slate);
    border-color: var(--ore-slate);
}

.mod-item-note {
    border-left-color: var(--ore-slate);
    background: rgba(91, 124, 153, 0.04);
}

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

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--ore-card-bg);
    border: 3px solid var(--ore-card-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--am-gold);
}

.download-card.modrinth::before {
    background: linear-gradient(180deg, #00AF5C 0%, #00D66C 100%);
}

.download-card.curseforge::before {
    background: linear-gradient(180deg, #F16436 0%, #FF8C5A 100%);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
    border-color: var(--am-gold);
}

.platform-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.download-card.modrinth .platform-icon {
    color: #00AF5C;
    background: rgba(0, 175, 92, 0.1);
}

.download-card.curseforge .platform-icon {
    color: #F16436;
    background: rgba(241, 100, 54, 0.1);
}

.platform-info {
    flex: 1;
}

.platform-info h3 {
    margin: 0 0 5px 0;
    font-family: 'Metamorphous', serif;
    font-size: 1.3rem;
    color: var(--ore-card-border);
}

.download-card.modrinth .platform-info h3 {
    color: #00AF5C;
}

.download-card.curseforge .platform-info h3 {
    color: #F16436;
}

.platform-desc {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    opacity: 0.75;
}

.platform-desc strong {
    color: var(--am-gold);
}

.platform-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Metamorphous', serif;
}

.download-card.modrinth .platform-badge {
    background: rgba(0, 175, 92, 0.15);
    color: #00AF5C;
    border: 1px solid #00AF5C;
}

.download-card.curseforge .platform-badge {
    background: rgba(241, 100, 54, 0.15);
    color: #F16436;
    border: 1px solid #F16436;
}

.download-arrow {
    font-size: 1.4rem;
    color: var(--am-gold);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.download-card:hover .download-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Installation Tabs */
.install-tabs {
    margin-top: 10px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(44, 76, 102, 0.15);
    padding-bottom: 8px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: 2px solid transparent;
    border-bottom: none;
    font-family: 'Metamorphous', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
    opacity: 0.5;
}

.tab-btn:hover {
    opacity: 1;
    background: rgba(44, 76, 102, 0.05);
}

.tab-btn.active {
    opacity: 1;
    border-color: rgba(44, 76, 102, 0.2);
    border-bottom: 2px solid var(--ore-card-bg);
    background: var(--ore-card-bg);
    color: var(--am-gold);
    margin-bottom: -2px;
    z-index: 1;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.install-steps {
    margin: 0;
    padding-left: 25px;
    line-height: 2.2;
}

.install-steps li {
    color: var(--text-dark);
    font-size: 1rem;
}

.install-steps code {
    background: #1a1a1a;
    color: var(--ore-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    border: 1px solid var(--ore-card-border);
    font-size: 0.95em;
}

.install-steps strong {
    color: var(--am-gold);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.support-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: rgba(44, 76, 102, 0.04);
    border: 1px solid rgba(44, 76, 102, 0.12);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.support-card:hover {
    border-color: var(--am-gold);
    box-shadow: 0 0 12px rgba(176, 141, 85, 0.15);
    transform: translateY(-2px);
}

.support-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.1);
    color: var(--discord-blurple);
}

.support-card:last-child .support-icon {
    background: rgba(241, 100, 54, 0.1);
    color: #F16436;
}

.support-info {
    flex: 1;
}

.support-info h3 {
    margin: 0 0 4px 0;
    font-family: 'Metamorphous', serif;
    color: var(--ore-card-border);
    font-size: 1.1rem;
}

.support-info p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.75;
}

@media (max-width: 900px) {
    .modpack-container {
        padding: 25px 20px;
    }

    .modpack-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .modpack-name {
        font-size: 1.8rem;
    }

    .modpack-logo {
        width: 80px;
        height: 80px;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-card::before {
        display: none;
    }

    .download-card:hover {
        transform: translateY(-2px);
    }

    .tab-buttons {
        justify-content: center;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .support-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .modpack-main {
        padding: 20px 15px;
    }

    .modpack-name {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .download-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}