:root {
    --hytale-bg: #15243a;
    --hytale-bg-dark: #0f1c30;
    --hytale-bg-light: #1c2e4a;
    --hytale-gold: #ecbc62;
    --hytale-gold-light: #ffe98d;
    --hytale-gold-dark: #e19f27;
    --hytale-blue: #3bc1f0;
    --hytale-border: #2f3a4e;
    --hytale-divider: #443e30;
    --text-primary: #ffffff;
    --text-secondary: #a1b0c3;
    --hytale-text-primary: #ffffff;
    --hytale-text-secondary: #a1b0c3;
    --hytale-text-dim: #8a9cb3;
    --success: #72aa5e;
    --danger: #b74545;
    --warning: #f4a926;
    --info: #4a9eff;
    --hytale-red: #ef4444;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    overflow-x: hidden;
    height: 100%;
}
body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    background-color: var(--hytale-bg);
    background-image: url('https://www.hytale.com/static/images/backgrounds/content-lower-480.jpg');
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}


/* --- DYNAMIC COMPONENTS --- */

/* Comparison Mode */
.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--hytale-bg-light);
    border-top: 2px solid var(--hytale-gold);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-bar.active { transform: translateY(0); }

.comparison-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.comparison-items {
    display: flex;
    gap: 1rem;
    flex: 1;
    overflow-x: auto;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--hytale-bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--hytale-divider);
    white-space: nowrap;
}

.comparison-item-image {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
}

.comparison-item-remove {
    background: none;
    border: none;
    color: var(--hytale-text-dim);
    cursor: pointer;
    transition: color 0.2s;
}

.comparison-item-remove:hover { color: var(--hytale-red); }

.comparison-actions { display: flex; gap: 1rem; }
/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--hytale-gold), var(--hytale-gold-dark));
    color: var(--hytale-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(227, 190, 90, 0.4);
}

/* Shortcuts Modal */
.shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shortcuts-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.shortcuts-content {
    background: var(--hytale-bg-light);
    border: 2px solid var(--hytale-gold);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--hytale-shadow);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcuts-modal.active .shortcuts-content {
    transform: scale(1);
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--hytale-divider);
    padding-bottom: 1rem;
}

.shortcuts-header h2 {
    color: var(--hytale-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.shortcuts-close {
    background: none;
    border: none;
    color: var(--hytale-text-dim);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.shortcuts-close:hover {
    color: var(--hytale-gold);
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shortcut-key {
    background: var(--hytale-bg-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--hytale-divider);
    font-family: monospace;
    color: var(--hytale-gold);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--hytale-bg-light);
    border-left: 4px solid var(--hytale-blue);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: var(--hytale-text-primary);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    min-width: 250px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: #22c55e; }
.toast.warning { border-left-color: var(--hytale-gold); }
.toast.error { border-left-color: #ef4444; }

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-content i {
    font-size: 1.25rem;
}

.toast.success i { color: #22c55e; }
.toast.warning i { color: var(--hytale-gold); }
.toast.error i { color: #ef4444; }

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--hytale-gold);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s;
}

/* Tooltip */
.tooltip {
    position: fixed;
    background: var(--hytale-bg-dark);
    color: var(--hytale-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10000;
    border: 1px solid var(--hytale-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tooltip.show { opacity: 1; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--hytale-gold);
    cursor: pointer;
    font-weight: 600;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* FAB Menu */
.fab-menu {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.fab-main {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--hytale-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.fab-main.active {
    transform: rotate(45deg);
    background: var(--hytale-gold);
}

.fab-options {
    position: absolute;
    bottom: 4rem;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-menu.active .fab-options {
    opacity: 1;
    pointer-events: auto;
    bottom: 4.5rem;
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fab-option-label {
    background: var(--hytale-bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--hytale-divider);
}

.fab-option-btn {
    width: 3rem;
    height: 3rem;
    background: var(--hytale-bg-light);
    color: var(--hytale-gold);
    border: 2px solid var(--hytale-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.fab-option-btn:hover {
    background: var(--hytale-gold);
    color: var(--hytale-bg);
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--hytale-bg-light);
    border: 1px solid var(--hytale-gold);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 11000;
    display: none;
}

.context-menu.active { display: block; }

.context-menu-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--hytale-text-primary);
}

.context-menu-item:hover {
    background: rgba(227, 190, 90, 0.1);
    color: var(--hytale-gold);
}

.context-menu-divider {
    height: 1px;
    background: var(--hytale-divider);
    margin: 0.5rem 0;
}
/* Material Symbols Wrapper */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    vertical-align: middle;
}

.dashboard-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 100vh;
}
.sidebar-nav {
    width: 80px;
    background: linear-gradient(to bottom, #0f1c30, #0a1420);
    border-right: 2px solid var(--hytale-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}
.sidebar-header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--hytale-divider);
}
.sidebar-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--hytale-gold), var(--hytale-gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(236, 188, 98, 0.3);
}
.sidebar-logo .material-symbols-outlined {
    font-size: 2rem;
    color: var(--hytale-bg-dark);
}
.sidebar-items {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sidebar-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    border-left: 3px solid transparent;
    text-decoration: none;
}
.sidebar-item:hover {
    background: rgba(236, 188, 98, 0.1);
    color: var(--hytale-gold);
}
.sidebar-item.active {
    background: rgba(236, 188, 98, 0.15);
    color: var(--hytale-gold);
    border-left-color: var(--hytale-gold);
}
.sidebar-item .material-symbols-outlined {
    font-size: 1.75rem;
}
.sidebar-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sidebar-footer {
    padding: 1rem 0;
    border-top: 2px solid var(--hytale-divider);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-version {
    font-size: 0.625rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sidebar-author {
    width: 36px;
    height: 36px;
    background: rgba(236, 188, 98, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hytale-gold);
    text-decoration: none;
    overflow: visible;
    position: relative;
}
.sidebar-author:hover {
    background: rgba(236, 188, 98, 0.2);
    box-shadow: 0 4px 12px rgba(236, 188, 98, 0.3);
}
.sidebar-author:hover::after {
    content: 'Patrick Jr.';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(26, 45, 74, 0.98), rgba(15, 28, 48, 0.98));
    color: var(--hytale-gold);
    padding: 0.625rem 1rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid #4e5765;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(78, 87, 101, 0.5);
    z-index: 1000;
    animation: tooltipFadeIn 0.15s ease;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.sidebar-author:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #4e5765;
    z-index: 999;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.sidebar-author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-author .material-symbols-outlined {
    font-size: 1.25rem;
}
.main-content {
    margin-left: 80px;
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    width: calc(100% - 80px);
    min-height: 100vh;
}
.dashboard-footer {
    padding: 2rem 2.5rem;
    border-top: 2px solid var(--hytale-divider);
    background: rgba(15, 28, 48, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    margin-top: auto;
}
.footer-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.footer-link {
    color: var(--hytale-gold);
    text-decoration: none;
}
.footer-link:hover {
    color: var(--hytale-gold-light);
}
.footer-divider {
    color: var(--hytale-divider);
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hytale-panel {
    border-top: 2px solid #15243a;
    border-right: 2px solid #15243a;
    border-bottom: 2px solid #15243a;
    border-left: 2px solid #15243a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #4e5765;
    position: relative;
    margin-bottom: 2rem;
    border-width: 1px;
    background: linear-gradient(to bottom, #1a2d4a, #0f1c30);
}
.hytale-panel:hover {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #4e5765, 0 0 15px rgba(236, 188, 98, 0.08);
}
.hytale-panel::before, 
.hytale-panel::after {
    position: absolute;
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    background: url("https://www.hytale.com/static/images/container-corner.png") no-repeat 0 0;
    background-size: 14px;
}
.hytale-panel::before {
    top: 0;
    left: 0;
    transform: rotate(180deg);
}
.hytale-panel::after {
    top: 0;
    right: 0;
    transform: rotate(270deg);
}
.hytale-panel-inner {
    position: relative;
    padding: 1.5rem;
}
.hytale-panel-inner::before,
.hytale-panel-inner::after {
    position: absolute;
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    background: url("https://www.hytale.com/static/images/container-corner.png") no-repeat 0 0;
    background-size: 14px;
}
.hytale-panel-inner::before {
    bottom: 0;
    left: 0;
    transform: rotate(90deg);
}
.hytale-panel-inner::after {
    bottom: 0;
    right: 0;
}
h1, h2, h3 {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    background: linear-gradient(#ffe98d, #e19f27);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
h3 {
    font-size: 1.125rem;
}
p {
    color: var(--text-secondary);
    line-height: 1.5em;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stat-card {
    text-align: center;
}
.stat-card:hover .hytale-panel {
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.7), inset 0 0 0 2px #4e5765, 0 0 20px rgba(236, 188, 98, 0.15);
}
.stat-card .hytale-panel-inner {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem;
}
.stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stat-label .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--hytale-gold);
}
.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ebf7ff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 5px;
    border: 0;
    background: #816632;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: #d1dde4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn:hover {
    box-shadow: 0 3px 12px rgba(236, 188, 98, 0.25);
    transform: translateY(-2px);
}
.btn-primary {
    background: linear-gradient(to bottom, var(--hytale-gold), var(--hytale-gold-dark));
    color: var(--hytale-bg-dark);
}
.search-input {
    background: #000000;
    border: 1px solid var(--hytale-border);
    border-radius: 4px;
    padding: 0.6rem 1rem;
    color: white;
    font-size: 0.875rem;
    width: 100%;
}
.search-input:focus {
    border-color: var(--hytale-gold);
    box-shadow: 0 0 0 3px rgba(236, 188, 98, 0.15);
    outline: none;
}

/* Mod Card Styles */
.mods-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mod-card {
    background: var(--hytale-bg-light);
    border: 1px solid var(--hytale-divider);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mod-card:hover {
    transform: translateY(-5px);
    border-color: var(--hytale-gold);
    box-shadow: 0 8px 25px rgba(227, 190, 90, 0.15);
}

.mod-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid var(--hytale-gold);
}

.mod-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.mod-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    color: var(--hytale-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    border: 1px solid rgba(59, 193, 240, 0.3);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    color: var(--hytale-text-dim);
    border: 1px solid var(--hytale-divider);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.favorite-btn:hover, .favorite-btn.active {
    color: var(--hytale-red);
    border-color: var(--hytale-red);
    transform: scale(1.1);
}

.mod-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mod-badge.new { background: #22c55e; color: white; }
.mod-badge.updated { background: var(--hytale-blue); color: white; }

.mod-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mod-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    color: var(--hytale-gold);
    margin: 0 0 0.75rem 0;
    transition: color 0.2s;
}

.mod-card:hover .mod-title { color: #fff; }

.mod-description {
    font-size: 0.9rem;
    color: var(--hytale-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List View Overrides */
.mods-grid-modern.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mods-grid-modern.list-view .mod-card {
    flex-direction: row;
    height: 120px;
}

.mods-grid-modern.list-view .mod-card-image {
    width: 200px;
    height: 100%;
    border-bottom: none;
    border-right: 2px solid var(--hytale-gold);
}

.mods-grid-modern.list-view .mod-card-content {
    padding: 1rem 1.5rem;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.mods-grid-modern.list-view .mod-title {
    margin: 0;
    flex: 0 0 250px;
}

.mods-grid-modern.list-view .mod-description {
    margin: 0;
    flex: 1;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.mods-grid-modern.list-view .mod-card-footer {
    padding: 0;
    border: none;
    margin: 0;
    flex: 0 0 200px;
}

@media (max-width: 900px) {
    .mods-grid-modern.list-view .mod-card {
        height: auto;
        flex-direction: column;
    }
    .mods-grid-modern.list-view .mod-card-image {
        width: 100%;
        height: 150px;
        border-right: none;
        border-bottom: 2px solid var(--hytale-gold);
    }
    .mods-grid-modern.list-view .mod-card-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.mod-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--hytale-divider);
    margin-top: auto;
}

.mod-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--hytale-text-dim);
}

.mod-meta-item i { color: var(--hytale-gold); }

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--hytale-bg-dark);
    border: 1px solid var(--hytale-divider);
    border-radius: 6px;
    padding: 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.category-card:hover, .category-card.active {
    background: rgba(227, 190, 90, 0.05);
    border-color: var(--hytale-gold);
    transform: translateY(-3px);
}

.category-card.active {
    background: rgba(227, 190, 90, 0.1);
    box-shadow: inset 0 0 15px rgba(227, 190, 90, 0.1);
}

.category-card i {
    font-size: 1.5rem;
    color: var(--hytale-blue);
    margin-bottom: 0.75rem;
}

.category-card h3 {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.category-count {
    font-size: 0.8rem;
    color: var(--hytale-text-dim);
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        flex-direction: row;
        border-right: none;
        border-top: 2px solid var(--hytale-border);
        z-index: 1001;
    }
    .sidebar-header {
        display: none;
    }
    .sidebar-items {
        flex-direction: row;
        padding: 0;
        width: 100%;
        justify-content: space-around;
    }
    .sidebar-item {
        flex: 1;
        padding: 0.75rem 0.5rem;
        border-left: none;
        border-top: 3px solid transparent;
    }
    .sidebar-item.active {
        border-left: none;
        border-top-color: var(--hytale-gold);
    }
    .main-content {
        margin-left: 0;
        margin-bottom: 80px;
        padding: 1.5rem;
    }
    .dashboard-footer {
        margin-left: 0;
        margin-bottom: 80px;
        padding: 1rem 1.5rem;
    }
}

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
    background: var(--hytale-gold-dark);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}
