.updates-container {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    padding-bottom: 5rem;
    color: white;
    font-family: "Courier New", Courier, monospace;
}

.updates-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-out forwards;
}

.updates-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.updates-header p {
    color: #888;
    font-size: 1.1rem;
}

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.log-entry {
    background-color: #080808;
    border: 1px solid #222;
    padding: 2rem;
    position: relative;
    animation: fadeIn 1s ease-out forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.log-entry:hover {
    border-color: #444;
}

.entry-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

.entry-date {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.entry-title {
    font-size: 1.6rem;
    color: #eee;
    letter-spacing: 1px;
}

.entry-content p {
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.media-item {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #111;
    border: 1px dashed #333;
    cursor: pointer;
    overflow: hidden;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-box {
    display: none;
}

.image-slot .placeholder-box::after { content: " [IMG]"; }
.video-slot .placeholder-box::after { content: " [VID]"; }

/* Hover effect: small box with text */
.hover-box {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 8px 12px;
    font-size: 0.85rem;
    max-width: 80%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif; /* Cleaner font for the info box */
}

.media-item:hover .hover-box {
    opacity: 1;
    transform: translateY(0);
}

.media-item:hover {
    border-color: #666;
}

/* Audio Player Styling */
.audio-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #111;
    padding: 1rem;
    border-radius: 4px;
}

.audio-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

audio {
    width: 100%;
    height: 32px;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5); /* Make standard audio player look better on black */
}

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

@media (max-width: 600px) {
    .updates-header h1 { font-size: 2rem; }
    .log-entry { padding: 1.5rem; }
}

/* Image Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid white;
}

.close-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.close-overlay:hover {
    color: #ff0000;
}
