/* ========== RESET & GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Comic Relief", system-ui;
    font-style: normal;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url("../img/background.jpgroom.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.15) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: -1;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.95) 0%,
        rgba(178, 34, 34, 0.95) 100%
    );
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ========== MINECRAFT FOX ========== */
.minecraft-fox {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    animation: foxBounce 3s ease-in-out infinite;
}

@keyframes foxBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fox-image {
    width: 150px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.fox-image:hover {
    transform: scale(1.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

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

    .nav-menu li a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .minecraft-fox {
        bottom: 10px;
        left: 10px;
    }

    .fox-image {
        width: 100px;
    }

    header h1 {
        font-size: 36px;
    }

    .container {
        margin: 20px auto 30px auto;
        padding: 0 15px;
    }
}

.container {
    max-width: 800px;
    margin: 30px auto 50px auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    color: white;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 20px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #f0f0f0;
}

.blog-form {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-form h2 {
    margin-top: 0;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: "Comic Relief", system-ui;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff69b4;
}

.submit-button {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Comic Relief", system-ui;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #ff1493;
}

.blog-posts h2 {
    margin-bottom: 20px;
    color: white;
}

.no-posts {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}

.blog-post {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.post-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.post-date {
    color: #999;
    font-size: 14px;
}

.post-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.delete-button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    font-family: "Comic Relief", system-ui;
    transition: background-color 0.3s;
}

.delete-button:hover {
    background-color: #cc0000;
}
