/* style.css */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #05040a 0%, #150a21 30%, #29114d 70%, #0d1b2a 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- New Logo Header Styles --- */
.site-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.logo-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    animation: text-twinkle 2s infinite alternate;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.5));
}

.center-icon {
    width: 44px;
    height: 44px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #4da8da, #8a2be2, #d156eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-twinkle 2s infinite alternate;
    word-wrap: break-word;
}

/* Mobile Responsiveness for Header */
@media (max-width: 500px) {
    .logo-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    .center-icon {
        width: 32px;
        height: 32px;
    }
}

@keyframes text-twinkle {
    0% { filter: drop-shadow(0 0 2px rgba(138, 43, 226, 0.3)); opacity: 0.8; }
    100% { filter: drop-shadow(0 0 15px rgba(209, 86, 235, 0.8)); opacity: 1; }
}

/* --- Main Layout --- */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
    flex: 1;
}

.post {
    background: rgba(15, 10, 35, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.post-date {
    font-size: 0.85rem;
    color: #a0a0b5;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.post-media img, .post-media video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.pills {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pill {
    background: linear-gradient(90deg, #4b0082, #2b00ff);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- Admin Styles --- */
.admin-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(5px);
}
.admin-form h2 {
    margin-top: 0;
    text-align: center;
}
.admin-form input[type="text"], .admin-form input[type="date"], .admin-form input[type="password"], .admin-form input[type="file"], .admin-form button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: inherit;
    color-scheme: dark; /* Helps native date picker fit dark theme */
}
.admin-form button {
    background: linear-gradient(90deg, #4b0082, #2b00ff);
    color: white;
    cursor: pointer;
    font-weight: bold;
    border: none;
    margin-top: 20px;
}
.edit-btn {
    background: #4da8da;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    margin-right: 5px;
}
.delete-btn {
    background: #ff3366;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header-btns {
    display: flex;
    gap: 10px;
}

/* Fixed Navigation Buttons */
.nav-btn {
    background: linear-gradient(90deg, #4b0082, #2b00ff);
    color: white;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: opacity 0.2s;
    text-align: center;
}
.nav-btn:hover {
    opacity: 0.8;
}

/* Custom Radio Button Container */
.radio-group {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
}
.radio-group p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #a0a0b5;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}
.radio-label:last-of-type {
    margin-bottom: 0;
}

/* Shooting Stars Background */
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, -20px 20px 20px rgba(255, 255, 255, 0.5);
    animation: shoot 2s linear infinite;
    opacity: 0;
}

@keyframes shoot {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(-300px, 300px); opacity: 0; }
}

/* --- Footer Styles --- */
.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #a0a0b5;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    z-index: 10;
    background: rgba(15, 10, 35, 0.6);
    backdrop-filter: blur(5px);
}
.site-footer a {
    color: #4da8da;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: bold;
}
.site-footer a:hover {
    color: #d156eb;
}

/* --- Popup Styles --- */
.popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #4b0082, #d156eb);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
