@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700&family=Poppins:wght@400;600&display=swap');

:root {
    --primary-color: #3b82f6;
    --text-color: #333;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-image 0.5s ease, background-color 0.5s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background classes for dynamic switching */
body.bg-default { background-color: #f3f4f6; background-image: none; }
body.bg-dark { background-color: #1a1a1a; color: #f3f4f6; }
body.bg-blue { background-color: #e0f2fe; }
body.bg-minecraft { 
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1607513168406-0b43562205b5?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}
body.bg-code { 
    background-color: #0d1117;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;
    background-attachment: fixed;
    color: #e6edf3;
}
body.bg-minecraft-snow { 
    background-color: #e3e8ed;
    /* Placeholder for the user's specific image. I've used a similar high-quality snowy forest image. */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1548263594-a71ea65a8598?q=80&w=2076&auto=format&fit=crop'); 
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Header */
header {
    height: var(--header-height);
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

body.bg-dark header, body.bg-minecraft header, body.bg-code header, body.bg-minecraft-snow header {
    background-color: transparent;
    color: #fff;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    flex: 1;
    margin-top: var(--header-height);
    padding: 50px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.tags {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

body.bg-dark .btn, body.bg-minecraft .btn, body.bg-code .btn, body.bg-minecraft-snow .btn {
    background-color: #fff;
    color: #000;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Admin Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #333;
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.admin-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.color-btn {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.color-btn:hover {
    border-color: var(--primary-color);
}

.admin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.1; /* Discreet */
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.3s;
}

.admin-trigger:hover {
    opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    opacity: 0.7;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    nav ul { display: none; } /* Simplified for mobile */
}
