body {
    background: #3d3d35;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.08) 2px, rgba(0,0,0,.08) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.08) 2px, rgba(0,0,0,.08) 4px),
        repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.15) 1px, transparent 1px, transparent 2px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e8e6e1;
    padding-bottom: 80px;
}

.header-section {
    background: #2f2f27;
    padding: 40px 20px;
    text-align: center;
    color: #e8e6e1;
    margin-bottom: 30px;
    border-bottom: 2px solid #1a1a15;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../files/images/vintagestory_landscape.png') center/cover no-repeat;
    filter: blur(8px) brightness(0.4);
    z-index: 0;
}

.header-section > * {
    position: relative;
    z-index: 1;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.server-info-card {
    background: #2f2f27;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #1a1a15;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #1a1a15;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #c9b896;
}

.info-value {
    font-family: 'Courier New', monospace;
    background: #1a1a15;
    padding: 8px 12px;
    border-radius: 5px;
    color: #8b7355;
    font-weight: 500;
}

.mods-section {
    flex: 1;
    padding: 40px 20px;
    background: #3d3d35;
}

.content-section {
    flex: 1;
    padding: 20px 20px;
}

.mods-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1a1a15;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: none;
    color: #c9b896;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #d4a574;
}

.tab-button.active {
    color: #d4a574;
    border-bottom-color: #d4a574;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    padding-top: 20px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-title {
    text-align: center;
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.search-box {
    margin-bottom: 20px;
}

.instructions-box {
    background: #2f2f27;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid #1a1a15;
    border-left: 4px solid #d4a574;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instructions-list li:last-child {
    margin-bottom: 0;
}

.instruction-title {
    color: #d4a574;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.instruction-text {
    color: #e8e6e1;
    font-size: 1rem;
    line-height: 1.6;
}

.detail-list {
    margin-top: 12px;
    padding-left: 20px;
}

.detail-item {
    color: #c9b896;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.detail-item strong {
    color: #d4a574;
}

.search-box input {
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid #1a1a15;
    background: #2f2f27;
    color: #e8e6e1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

.search-box input::placeholder {
    color: #8b7b6b;
}

.search-box input:focus {
    box-shadow: 0 5px 20px rgba(139, 115, 85, 0.4);
    outline: none;
    border-color: #8b7355;
    background: #2f2f27;
}

.alpha-section {
    background: #2f2f27;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #1a1a15;
}

.alpha-letter {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4a574;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a574;
}

.mod-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.mod-item {
    background: #3d3d35;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #d4a574;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.mod-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.2);
    background: #2f2f27;
}

.mod-preview {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #2f2f27;
    border: 1px solid #1a1a15;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 300px;
    max-width: 90vw;
    pointer-events: none;
}

.mod-item:hover .mod-preview {
    opacity: 1;
    visibility: visible;
}

.mod-preview-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 3px;
    background: #1a1a15;
    margin-bottom: 10px;
}

.mod-preview-title {
    color: #e8e6e1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    word-break: break-word;
}

.mod-preview-loading {
    color: #8b7b6b;
    font-size: 0.85rem;
    text-align: center;
    padding: 40px 10px;
}

.mod-name {
    font-weight: 600;
    color: #e8e6e1;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
}

.mod-name:hover {
    color: #d4a574;
    text-decoration: underline;
}

.mod-note {
    font-size: 0.85rem;
    color: #c9b896;
    display: inline-block;
    background: #1a1a15;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #8b7b6b;
    font-size: 1.1rem;
}

.footer {
    background: #2f2f27;
    color: #e8e6e1;
    text-align: center;
    padding: 8px 15px;
    border-top: 2px solid #1a1a15;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-link {
    color: #43b581;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3a9970;
    text-decoration: underline;
}

.footer-button {
    display: inline-block;
    background: transparent;
    color: #d4a574 !important;
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 3px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #d4a574;
    transition: all 0.3s ease;
}

.footer-button:hover {
    background: rgba(212, 165, 116, 0.1);
    text-decoration: none;
}

.round {
    border-radius: 10px;
}

/* CONTENT */
.tab-cont{
    width: 60%;
    background-color: rgb(63, 105, 129);
}

.header-cont {
    width: 60%;
    text-align: center;
    margin: -1px auto 0 auto;
}

.body-cont {
    width: 60%;
    padding: 35px;
}

.list-cont {
    width: 95%;
    margin: auto;
}

.list-item li {
    padding-top: 10px;
}

.helpful-info-box {
    display: grid;
    gap: 20px;
}

.info-section {
    background: #2f2f27;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d4a574;
}

.info-section h3 {
    color: #d4a574;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.info-section p {
    color: #e8e6e1;
    margin-bottom: 0;
    line-height: 1.6;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    color: #8b7355;
    font-weight: 500;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #888;
    animation: pulse 1.5s infinite;
}

.status-dot.online {
    background: #43b581;
}

.status-dot.offline {
    background: #ff6b6b;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}