/* ═══════════════════════════════════════════════════════
   INDEX PAGE STYLESHEET
   Home Page Layout, Sidebars, Spotify Widget, Blog Entries
   ═══════════════════════════════════════════════════════ */

/* ── Container Layout ── */
.diary-shell {
    display: flex;
    align-items: center;
    width: min(92%, 1220px);
    margin: 0 auto 20px;
    padding: 0;
}

.diary-shell .fixed.diary-page {
    flex: 1 1 auto;
    min-width: 0;
}

.diary-grid {
    display: grid;
    grid-template-columns: 24% minmax(0, 1fr) 24%;
    align-items: stretch;
    flex: 1;
}

/* ── Sidebar & Profile ── */
.diary-sidebar {
    padding: 10px;
    background-color: rgba(8, 8, 8, 0.7);
    border-right: 1px solid var(--border-accent);
}

.diary-sidebar-right {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.diary-sidebar img.diary-pfp {
    width: 100%;
    border: 1.5px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: 5px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.diary-sidebar img.diary-pfp:hover {
    border-color: red;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
}

.diary-section {
    margin-bottom: 10px;
    padding: 8px;
    overflow: auto;
    border: 1.5px solid var(--border-accent);
    transition: border-color 0.3s ease;
}

.diary-section:hover {
    border-color: red;
}

.diary-section h3 {
    margin: -5px -8px 8px -8px;
    padding: 4px 8px;
    font-family: 'Old London', serif;
    text-transform: lowercase;
    font-size: 1.1em;
    letter-spacing: 1px;
    color: var(--bone);
    background-color: rgba(20, 0, 20, 0.6);
    border-bottom: 1.5px solid var(--border-accent);
}

.diary-section p {
    font-family: 'Orwell', sans-serif;
    font-size: 0.95em;
    color: var(--bone-dim);
    margin: 6px 0;
    line-height: 1.5;
}

.quick-facts ul,
.diary-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-facts ul li,
.diary-side-list li {
    font-family: 'Orwell', sans-serif;
    font-size: 1.0em;
    color: var(--bone-dim);
    margin: 4px 0;
    position: relative;
    padding-left: 24px;
    display: flex;
    align-items: center;
}

.quick-facts ul li::before,
.diary-side-list li::before {
    content: "✦";
    color: #8c008c;
    position: absolute;
    left: 0;
    font-size: 0.9em;
}

.diary-side-list a {
    color: var(--bone);
    font-family: 'Orwell', sans-serif;
    font-size: 1.6em;
    text-decoration: none;
}

.diary-side-list a:hover {
    color: red;
    text-decoration: underline;
}

/* ── Spotify Widget ── */
.spotify-widget-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#track-art {
    width: 90px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}

.track-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

#track-status {
    font: 18px "Orwell", sans-serif;
    color: #bbb;
}

.scrolling-text-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

#spotify-track {
    display: inline-block;
    white-space: nowrap;
    font: bold 18px "Orwell", sans-serif;
    color: #fff;
    transform: translateX(100%);
    animation: marquee-scroll 8s linear infinite;
}

.scrolling-text-container:hover #spotify-track {
    animation-play-state: paused;
}

#track-artist {
    margin-top: 6px;
    font: 18px "Orwell", sans-serif;
    color: #cfcfcf;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-120%);
    }
}

/* ── Blinkies & Tooltips ── */
.diary-blinkies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.diary-blinkies img {
    margin-bottom: 3px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    max-width: 100%;
    height: auto;
}

.diary-blinkies img:hover {
    transform: scale(1.08);
    border-color: red;
}

.social-link {
    display: inline-block;
}

.hidden-text {
    display: block;
    max-height: 0;
    max-width: 220px;
    overflow: hidden;
    padding: 0 8px;
    color: var(--bone);
    background-color: #000;
    font-family: 'Orwell', sans-serif;
    font-size: 0.85em;
    line-height: 1.35;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease, padding 0.2s ease;
}

.social-link:hover .hidden-text,
.social-link:focus .hidden-text {
    max-height: 60px;
    margin-top: 4px;
    padding: 6px 8px;
    opacity: 1;
}

/* ── Diary Main Center Area ── */
.diary-main {
    position: relative;
    isolation: isolate;
    padding: 12px;
    overflow-y: auto;
    background-image: url('../images/decorative/Stars_Black.gif');
}

.diary-corner {
    position: absolute;
    z-index: 0;
    width: min(38%, 190px);
    height: auto;
    margin: 0 !important;
    border: none !important;
    pointer-events: none;
}

.diary-corner-top-left {
    top: 0;
    left: 0;
}

.diary-corner-top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.diary-corner-bottom-left {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.diary-corner-bottom-right {
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
}

.diary-main > :not(.diary-corner) {
    position: relative;
    z-index: 1;
}

/* ── Blog Entries ── */
.diary-entry {
    margin-bottom: 14px;
    padding: 10px;
    border: 1.5px solid var(--border-accent);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.diary-entry:hover {
    border-color: red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.diary-entry-header {
    margin: -10px -10px 10px -10px;
    padding: 5px 10px;
    background-color: rgba(20, 0, 20, 0.6);
    border-bottom: 1.5px solid var(--border-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.diary-entry-header h3 {
    font-family: 'Old London', serif;
    text-transform: none;
    color: var(--bone);
    margin: 0;
    background: none;
    border: none;
}

.diary-entry-header .entry-icon {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-accent);
    flex-shrink: 0;
}

.diary-page-text {
    font-size: 1.1em;
    font-family: 'Orwell', sans-serif;
    color: var(--bone-dim);
    line-height: 1.6;
    margin: 8px 0;
}

.jelly {
    width: 270px;
    height: auto;

    position: absolute;
    bottom: -25px;      /* Increase this to move her lower */
    right: -10px;

    z-index: 5;
    pointer-events: auto;
    animation: float 4s ease-in-out infinite;
    transform-origin: center bottom;

}

.jelly:hover {
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0%,100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.08,0.92);
    }

    60% {
        transform: scale(0.96,1.04);
    }
}
.speech-bubble {
    position: absolute;

    right: 175px;
    bottom: 110px;
    left: -80px;

    max-width: 180px;

    padding: 10px 14px;

    background: rgba(20, 0, 20, 0.95);
    color: #f2f2f2;

    border: 1px solid #7d2d8f;
    border-radius: 10px;

    font-family: "Orwell", sans-serif;
    font-size: 0.9rem;
    line-height: 1.35;

    box-shadow: 0 0 8px rgba(99, 0, 99, 0.45);

    z-index: 10;

    font-size: smaller;
    transition: opacity .4s ease;
}

.speech-bubble.hidden {
    opacity: 0;
}

.speech-bubble::after {
    content: "";

    position: absolute;

    right: -10px;
    bottom: 7px;

    width: 0;
    height: 0;

    border-style: solid;
    border-width: 8px 0 8px 10px;

    border-color:
        transparent
        transparent
        transparent
        #7d2d8f;
}

.speech-bubble::before {
    content: "";

    position: absolute;

    right: -8px;
    bottom: 9px;

    width: 0;
    height: 0;

    border-style: solid;
    border-width: 7px 0 7px 9px;

    border-color:
        transparent
        transparent
        transparent
        rgba(20, 0, 20, 0.95);

    z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .diary-grid {
        grid-template-columns: 1fr;
    }

    .diary-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-accent);
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }

    .diary-sidebar img.diary-pfp {
        width: 120px;
    }

    .diary-section {
        flex: 1;
        min-width: 150px;
    }
}
