* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

header {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

h1 {
    font-size: 3rem;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.mod-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

    .mod-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px rgba(0,0,0,0.3);
    }

.mod-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

.mod-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.mod-icon {
    font-size: 2rem;
    color: #4CAF50;
}

.mod-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
}

.mod-box.expanded .mod-content {
    max-height: 500px;
    padding: 20px;
}

.mod-description {
    margin-bottom: 15px;
    line-height: 1.5;
}

.mod-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: .9rem;
}

.mod-detail {
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .3s ease;
}

    .download-btn:hover {
        background: #3e8e41;
    }

.password-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #FF5722;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform .3s ease;
    z-index: 1000;
}

    .password-btn:hover {
        transform: scale(1.1);
    }

.admin-panel {
    background: rgba(0,0,0,0.8);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
    display: none;
}

    .admin-panel h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #4CAF50;
    }

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .form-group label {
        font-weight: 600;
    }

    .form-group input, .form-group textarea, .form-group select {
        padding: 12px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.1);
        color: white;
    }

.admin-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.submit-btn {
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.cancel-btn {
    padding: 12px 25px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
}

.admin-only {
    display: none;
}

.authenticated .admin-only {
    display: block;
}

.add-mod-btn {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: #FF5722;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease;
}

    .add-mod-btn:hover {
        background: #E64A19;
    }

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: .9rem;
    opacity: .8;
}

body, html {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    margin-top: auto;
}


@media(max-width:768px) {
    .mods-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
}
