body{
    margin:0;
    background:#111;
    color:white;
    font-family:Arial, sans-serif;
}

.header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#1a1a1a;
    padding:15px 30px;
    border-bottom:1px solid #333;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:80px;
    height:auto;
}

.logo h1{
    margin:0;
    font-size:32px;
}

.menu{
    display:flex;
    gap:25px;
}

.menu a{
    color:white;
    text-decoration:none;
    font-size:18px;
}

.menu a:hover{
    color:#ff8800;
}

.search-box input{
    width:220px;
    padding:10px;
    background:#222;
    border:1px solid #444;
    color:white;
}

.main-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    padding:20px;
    box-sizing:border-box;
}

.hero{
    width:800px;
    max-width:100%;
}

.hero img{
    width:100%;
    height:auto;
    display:block;
    border-radius:10px;
}

.latest-section{
    width:100%;
    max-width:1400px;
    margin-top:40px;
}

.latest-section h2{
    font-size:32px;
    margin-bottom:20px;
}

.mods-grid{
    gap:5px;
}

.home-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(350px, 1fr));
    gap:25px;
}

.category-page .mods-grid{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.mod-card{
    display:flex;
    align-items:flex-start;
    background:#1a1a1a;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #333;
}

.mod-card > img{
    width:350px;
    height:220px;
    object-fit:cover;
    flex-shrink:0;
}

.home-grid .mod-card{
    flex-direction:column;
}

.home-grid .mod-card > img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.home-grid .mod-info{
    padding:15px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.mod-info{
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    width:100%;
}

.mod-info h3{
    margin-top:0;
    margin-bottom:15px;
    font-size:22px;
}

.category-layout{
    flex-direction:row;
    justify-content:space-between;
    gap:20px;
}

.mod-content{
    flex:1;
    display:flex;
    flex-direction:column;
    height:100%;
}

.mod-side{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:15px;
    min-width:140px;
}

.mod-date{
    color:#999;
    font-size:14px;
    margin-bottom:10px;
}

.mod-description{
    color:#ccc;
    font-size:15px;
    line-height:1.5;
    overflow-y:auto;
    max-height:140px;
    padding-right:10px;
}

.download-btn{
    display:inline-block;
    background:#ff8800;
    color:white;
    text-decoration:none;
    padding:10px 20px;
    border-radius:5px;
    width:fit-content;
}

.download-btn:hover{
    background:#ff6600;
}

.pagination{
    width:100%;
    clear:both;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:20px;
    margin-bottom:40px;
}

.page-btn{
    display:inline-block;
    padding:10px 15px;
    background:#1a1a1a;
    border:1px solid #333;
    color:white;
    text-decoration:none;
    border-radius:5px;
}

.page-btn:hover{
    background:#ff8800;
}

.active-page{
    background:#ff8800;
}

.category-page .header{
    position:relative;
}

.category-page .menu{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

.admin-mods{
    margin-top:40px;
}

.admin-mod{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#1a1a1a;
    border:1px solid #333;
    padding:15px;
    margin-bottom:10px;
    border-radius:8px;
}

.admin-buttons{
    display:flex;
    gap:10px;
}

.delete-btn{
    background:#cc0000;
}

.delete-btn:hover{
    background:#aa0000;
}

.admin-search input{
    width:300px;
    padding:12px;
    background:#222;
    border:1px solid #444;
    color:white;
    border-radius:5px;
}

.back-btn{
    display:inline-block;
    margin-bottom:20px;
    color:white;
    text-decoration:none;
    background:#1a1a1a;
    border:1px solid #333;
    padding:10px 15px;
    border-radius:5px;
}

.back-btn:hover{
    background:#ff8800;
}

@media screen and (max-width: 900px){

    .header{
        flex-direction:column;
        gap:20px;
        padding:20px;
    }

    .menu{
        flex-wrap:wrap;
        justify-content:center;
    }

    .search-box input{
        width:100%;
        max-width:300px;
    }

    .hero{
        width:100%;
    }

    .home-grid{
        grid-template-columns:1fr;
    }

    .mod-card{
        flex-direction:column;
    }

    .mod-card > img{
        width:100%;
        height:auto;
    }

    .category-layout{
        flex-direction:column;
    }

    .mod-side{
        align-items:flex-start;
        margin-top:20px;
    }

    .category-page .menu{
        position:static;
        transform:none;
    }

}