﻿/* Neon Theme */
.blog-main {
    margin: 10px;
    margin-left: 300px; /* Sidebar width + padding */
    width: calc(100% - 520px);
    padding: 20px;
    background: #0a0a0a;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 25px #00eaff;
    position: relative;
    z-index: 1;
}

.blog-header {
    margin-top: 0; /* remove extra spacing */
    padding-top: 10px; /* small breathing room */
}

/* Neon glow */
.neon-glow {
    text-shadow: 0 0 8px #00eaff, 0 0 12px #00eaff;
}

/* Neon buttons */
.neon-btn {
    background: #00eaff;
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 12px #00eaff;
}
.neon-btn:hover {
    box-shadow: 0 0 20px #00eaff;
}

/* Snippet cards */
.blog-snippet {
    background: #111;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #00eaff;
    border-radius: 8px;
    box-shadow: 0 0 12px #00eaff55;
}

/* Image alignment fix */
.blog-image-left {
    float: left;
    margin: 0 20px 10px 0;
}
.blog-image-right {
    float: right;
    margin: 0 0 10px 20px;
}
.blog-image-center {
    display: block;
    margin: 0 auto 20px auto;
}

/* Ensure text starts at top of image */
.blog-snippet img,
.blog-post-full img {
    vertical-align: top;
}

/* Full post */
.blog-post-full {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 12px #00eaff55;
}

/* Sidebar */
.blog-sidebar {
    width: 200px;
    position: fixed;
    right: 20px;
    top: 80px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    background: #0f0f0f;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 12px #00eaff;
    padding: 10px;
}

.page-wrapper {
    position: relative;
    z-index: 0;
}

/* Neon glowing sidebar titles */
.sidebar-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #00eaff;
    text-shadow: 0 0 8px #00eaff, 0 0 12px #00eaff;
}

/* Slim neon sidebar buttons */
.sidebar-btn {
    background: #00eaff;
    color: #000;
    padding: 6px 12px;       /* smaller height */
    margin: 6px 0 20px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 10px #00eaff;
    width: 100%;
    text-align: center;
}

.sidebar-btn:hover {
    box-shadow: 0 0 18px #00eaff;
}

.editor-btn {
    background: #0a0a0a;
    border: 1px solid #00eaff;
    color: #00eaff;
    padding: 6px 10px;
    margin-right: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 10px #00eaff;
}

.editor-btn:hover {
    background: #00eaff;
    color: #000;
    box-shadow: 0 0 18px #00eaff;
}

/* Responsive YouTube embed */
.yt-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 20px 0;
}

.yt-wrap iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

/* Neon glow around YouTube embeds */
.neon-yt {
    box-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff;
    border-radius: 10px;
}

.blog-search {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #0a0a0a;
    border: 1px solid #00eaff;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 0 12px #00eaff;
}
.blog-search:focus {
    outline: none;
    box-shadow: 0 0 20px #00eaff;
}

/* Slim neon buttons */
.small-btn {
    padding: 4px 10px;
    font-size: 12px;
    margin: 4px;
    background: #00eaff;
    color: #000;
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 6px #00eaff;
    cursor: pointer;
}

.small-btn:hover {
    background: #00bcd4;
    box-shadow: 0 0 10px #00eaff;
}

/* Stylish thin silver neon separator */
.snippet-separator {
    width: 100%;
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, #cccccc, #ffffff, #cccccc);
    box-shadow: 0 0 6px #ffffff55;
    animation: shimmer 2s linear infinite;
    opacity: 0.7;
    border-radius: 2px;
}

/* Animated shimmer effect */
@keyframes shimmer {
    0% { filter: brightness(0.8); }
    50% { filter: brightness(1.4); }
    100% { filter: brightness(0.8); }
}

.snippet-separator {
    transition: opacity 0.3s ease;
}

/* Magazine-style images: float left, text wraps on right */
.blog-post-full img,
.blog-snippet img,
.editor-body img {
    max-width: 45%;
    height: auto;
    float: left;                 /* KEY: magazine-style float */
    display: block;
    margin: 0 16px 16px 0;       /* more breathing room */
    padding: 12px;
    background: #0a0a0a;
    border-radius: 6px;
    box-shadow: 0 0 8px #00eaff55;
    vertical-align: top;
}


.blog-snippet p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.snippet-text {
    white-space: normal;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section h3 {
    margin-bottom: 10px;
    color: #00eaff;
}

.tag-item, .category-item {
    display: inline-block;
    background: #0a0a0a;
    color: #00eaff;
    padding: 2px 8px;
    margin: 3px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 4px #00eaff;
    transition: 0.25s ease;
}

.tag-item:hover, .category-item:hover {
    background: #00eaff;
    color: #000;
    transform: scale(1.08);
    box-shadow: 0 0 12px #00eaff;
}

.related-posts {
    margin-top: 20px;
    padding: 10px;
    border-left: 2px solid #00eaff;
}

.related-item {
    margin-bottom: 10px;
}

.calendar-icon {
    font-size: 24px;
    cursor: pointer;
    display: inline-block;
    padding: 6px;
    border-radius: 6px;
    background: #0a0a0a;
    color: #00eaff;
    box-shadow: 0 0 6px #00eaff;
    transition: 0.25s ease;
}

.calendar-icon:hover {
    background: #00eaff;
    color: #000;
    transform: scale(1.15);
    box-shadow: 0 0 12px #00eaff;
}

.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000cc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.calendar-window {
    background: #0a0a0a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px #00eaff;
    width: 320px;
    text-align: center;
    color: #00eaff;
}

#calendarGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 20px 0;
}

.calendar-day {
    padding: 8px;
    background: #111;
    border-radius: 4px;
    cursor: pointer;
    color: #00eaff;
    box-shadow: 0 0 4px #00eaff;
    transition: 0.25s ease;
}

.calendar-day:hover {
    background: #00eaff;
    color: #000;
    transform: scale(1.1);
}

.calendar-active {
    background: #00eaff;
    color: #000;
    box-shadow: 0 0 12px #00eaff;
    animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
    from { box-shadow: 0 0 6px #00eaff; }
    to   { box-shadow: 0 0 18px #00eaff; }
}
