/* ==========================================================================
   Theme Variables (Shared with AeroUI)
   ========================================================================== */
:root,
[data-theme="aero-day"] {
    --aero-text: #0b2b40;
    --aero-text-heading: #063966;
    --aero-text-muted: #2c5d7c;
    --aero-link-accent: #0077cc;
    --aero-border-glass: rgba(255, 255, 255, 0.9);
    --aero-border-accent: rgba(0, 136, 230, 0.4);
    --aero-shadow-color: rgba(0, 75, 145, 0.18);

    --aero-bg-sky:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.85) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(126, 232, 118, 0.55) 0%, transparent 50%),
        linear-gradient(180deg, #4facfe 0%, #00f2fe 52%, #7ee8fa 100%);

    --aero-glass-navbar: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(215, 243, 255, 0.55) 100%);
    --aero-glass-card: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 35%, rgba(225, 245, 255, 0.65) 100%);
    --aero-glass-box: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(218, 246, 255, 0.68) 100%);

    --aero-input-bg: rgba(255, 255, 255, 0.88);
    --aero-input-focus-bg: #ffffff;

    --aero-btn-text: #05335c;
    --aero-btn-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
    --aero-gel-default: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(214, 244, 255, 0.86) 49%, rgba(173, 229, 255, 0.86) 51%, rgba(224, 248, 255, 0.96) 100%);
    --aero-gel-blue: linear-gradient(180deg, #8ce0ff 0%, #29a3ff 49%, #0077e6 51%, #33bbff 100%);
    --aero-gel-green: linear-gradient(180deg, #b8f79e 0%, #5cd647 49%, #2eb81d 51%, #6be356 100%);
}

[data-theme="aero-dark"] {
    --aero-text: #e2f4ff;
    --aero-text-heading: #8ce0ff;
    --aero-text-muted: #8ab8d6;
    --aero-link-accent: #5cc8ff;
    --aero-border-glass: rgba(110, 210, 255, 0.35);
    --aero-border-accent: rgba(0, 195, 255, 0.45);
    --aero-shadow-color: rgba(0, 10, 25, 0.65);

    --aero-bg-sky:
        radial-gradient(circle at 20% 15%, rgba(0, 225, 255, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(56, 239, 125, 0.22) 0%, transparent 50%),
        linear-gradient(180deg, #040d1a 0%, #09203f 50%, #0d324d 100%);

    --aero-glass-navbar: linear-gradient(180deg, rgba(20, 48, 82, 0.78) 0%, rgba(8, 22, 42, 0.72) 100%);
    --aero-glass-card: linear-gradient(180deg, rgba(28, 62, 102, 0.65) 0%, rgba(12, 28, 52, 0.62) 38%, rgba(16, 42, 74, 0.72) 100%);
    --aero-glass-box: linear-gradient(180deg, rgba(8, 20, 38, 0.72) 0%, rgba(16, 38, 68, 0.65) 100%);

    --aero-input-bg: rgba(7, 19, 36, 0.75);
    --aero-input-focus-bg: rgba(12, 30, 56, 0.95);

    --aero-btn-text: #e2f4ff;
    --aero-btn-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    --aero-gel-default: linear-gradient(180deg, rgba(75, 130, 185, 0.55) 0%, rgba(30, 65, 105, 0.65) 49%, rgba(15, 38, 68, 0.78) 51%, rgba(38, 82, 130, 0.65) 100%);
    --aero-gel-blue: linear-gradient(180deg, #5cc8ff 0%, #0088ee 49%, #005bb5 51%, #1ca3ff 100%);
    --aero-gel-green: linear-gradient(180deg, #8ef57a 0%, #32b824 49%, #1e8a14 51%, #4cd93b 100%);
}

[data-theme="aero-sunset"] {
    --aero-text: #3d1810;
    --aero-text-heading: #7a230d;
    --aero-text-muted: #8c4532;
    --aero-link-accent: #d94800;
    --aero-border-glass: rgba(255, 245, 235, 0.9);
    --aero-border-accent: rgba(235, 105, 55, 0.45);
    --aero-shadow-color: rgba(145, 45, 15, 0.2);
    --aero-gel-green: linear-gradient(180deg, #b8f79e 0%, #5cd647 49%, #2eb81d 51%, #6be356 100%);
    --aero-gel-red: linear-gradient(180deg, #ff9e9e 0%, #f24444 49%, #cc1414 51%, #f55656 100%);

    --aero-bg-sky:
        radial-gradient(circle at 20% 15%, rgba(255, 250, 210, 0.85) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 110, 140, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #ff9a44 0%, #fc6076 52%, #ffd194 100%);

    --aero-glass-navbar: linear-gradient(180deg, rgba(255, 248, 240, 0.8) 0%, rgba(255, 224, 205, 0.6) 100%);
    --aero-glass-card: linear-gradient(180deg, rgba(255, 250, 245, 0.85) 0%, rgba(255, 235, 222, 0.62) 35%, rgba(255, 218, 200, 0.68) 100%);
    --aero-glass-box: linear-gradient(180deg, rgba(255, 250, 245, 0.88) 0%, rgba(255, 224, 208, 0.7) 100%);

    --aero-input-bg: rgba(255, 252, 248, 0.88);
    --aero-input-focus-bg: #ffffff;

    --aero-btn-text: #6e1e0a;
    --aero-btn-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
    --aero-gel-default: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 228, 212, 0.86) 49%, rgba(255, 198, 172, 0.86) 51%, rgba(255, 235, 222, 0.96) 100%);
    --aero-gel-blue: linear-gradient(180deg, #ffb870 0%, #ff7326 49%, #d94800 51%, #ff8c42 100%);
    --aero-gel-green: linear-gradient(180deg, #b8f79e 0%, #5cd647 49%, #2eb81d 51%, #6be356 100%);
}

/* Global reset so padding doesn't break mobile widths */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 1. Bright Aero Sky & Aurora Background */
body {
    margin: 0;
    padding: 12px; /* Slightly tighter padding on mobile screens */
    min-height: 100vh;
    font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", Arial, sans-serif;
    color: #0b2b40;
    background: 
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.85) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(126, 232, 118, 0.55) 0%, transparent 50%),
        linear-gradient(180deg, #4facfe 0%, #00f2fe 52%, #7ee8fa 100%);
    background-attachment: fixed;
}

@media (min-width: 768px) {
    body {
        padding: 20px;
    }
}

/* 2. Responsive Glossy Translucent Navbar */
.nav-bar {
    display: flex;
    flex-wrap: wrap; /* Allows search bar to drop below buttons on narrow phones */
    align-items: center;
    gap: 8px;
    max-width: 1540px;
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(215, 243, 255, 0.55) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 6px 20px rgba(0, 82, 155, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 3. Classic Aqua "Gel" Pill Buttons */
.nav-link {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 60, 120, 0.65);
    border: 1px solid #0066cc;
    background: linear-gradient(
        180deg,
        #8ce0ff 0%,
        #29a3ff 49%,
        #0077e6 51%,
        #33bbff 100%
    );
    box-shadow: 
        0 3px 6px rgba(0, 85, 170, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.nav-link:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(72, 219, 112, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* 4. Mobile-Friendly Search Input */
.input {
    width: 100%;        /* Full width on phones so it's easy to tap */
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 119, 230, 0.45);
    background: rgba(255, 255, 255, 0.82);
    color: #0b2b40;
    font-size: 16px;    /* Prevents iOS Safari from auto-zooming on focus */
    outline: none;
    box-shadow: 
        inset 0 2px 4px rgba(0, 65, 130, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.9);
}

/* On tablets & desktops, put the search bar back on the same row on the right */
@media (min-width: 600px) {
    .input {
        width: auto;
        margin-top: 0;
        margin-left: auto;
        padding: 7px 14px;
        font-size: 14px;
    }
}

.input:focus {
    background: #ffffff;
    border-color: #0099ff;
    box-shadow: 
        0 0 8px rgba(0, 180, 255, 0.65),
        inset 0 1px 3px rgba(0, 65, 130, 0.12);
}

/* 5. Mobile-First Responsive Grid Layout */
/* Phones (< 790px): Single column stack */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "left"
        "feed"
        "right";
    gap: 16px;
    margin-top: 16px;
}

/* Tablets & Laptops (790px - 1199px): Left + Right sidebars stacked on left, Feed on right */
@media (min-width: 790px) {
    .main-layout {
        grid-template-columns: minmax(0, 400px) minmax(0, 700px);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "left  feed"
            "right feed";
        align-items: start;
        justify-content: center;
        gap: 20px;
        margin-top: 22px;
    }
}

/* Full / Wide Screens (1200px+): 3-column layout */
@media (min-width: 1200px) {
    .main-layout {
        grid-template-columns: minmax(0, 400px) minmax(0, 700px) minmax(0, 400px);
        grid-template-rows: auto;
        grid-template-areas:
            "left feed right";
    }
}

/* Sidebar Column Wrappers (Prevents vertical gap stretching) */
.left-column {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.post-feed {
    grid-area: feed;
    width: 100%;
}

.right-column {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* 6. Windows Vista / Aero Glass Cards */
.profile-card,
.site-links,
.my-interests,
.post-feed,
.guestbook-card {
    position: relative;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.58) 35%,
        rgba(225, 245, 255, 0.65) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 24px rgba(0, 75, 145, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 140, 255, 0.25);
}

/* Scrollable Shoutbox Window */
.guestbook-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 12px;
}

.guestbook-entry {
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 136, 230, 0.25);
    font-size: 13px;
    line-height: 1.4;
}

.guestbook-entry-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.guestbook-author {
    font-weight: 700;
    color: #0066cc;
}

.guestbook-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #4a7896;
}

.guestbook-del-btn {
    padding: 1px 6px;
    font-size: 10px;
    line-height: 1.3;
}

.guestbook-text {
    margin: 0;
    color: #0b2b40;
    word-break: break-word;
}

.guestbook-empty {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #2c5d7c;
}

/* Compact Form */
.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guestbook-send-row {
    display: flex;
    gap: 8px;
}

.guestbook-btn {
    padding: 6px 14px;
    flex-shrink: 0;
}

/* 7. Profile Card Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.profile-pic-frame {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #8ce0ff 50%, #29a3ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 4px 10px rgba(0, 82, 155, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background-color: #d7f3ff;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Allows long usernames to wrap cleanly on small phones */
}

.profile-username {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #063966;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
}

.profile-handle {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #0077cc;
}

.profile-description {
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(210, 244, 255, 0.55) 100%
    );
    border: 1px solid rgba(0, 136, 230, 0.35);
    box-shadow: 
        inset 0 2px 5px rgba(0, 75, 145, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.45;
    color: #0b2b40;
}

.profile-description p {
    margin: 0;
}

/* Shared Card Heading Style */
.card-title {
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #063966;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 119, 204, 0.25);
}

/* Responsive Grid: Easily expands as you add more buttons */
.links-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on narrow phones */
    gap: 10px;
}

/* 2 columns side-by-side when the card is wide enough */
@media (min-width: 340px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Glossy Frutiger Aero Button Link */
.aero-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    text-decoration: none;
    color: #05335c;
    font-weight: 600;
    font-size: 13.5px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(214, 244, 255, 0.85) 49%,
        rgba(173, 229, 255, 0.85) 51%,
        rgba(224, 248, 255, 0.95) 100%
    );
    border: 1px solid rgba(0, 128, 230, 0.45);
    box-shadow: 
        0 3px 6px rgba(0, 82, 155, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.aero-link-btn:hover {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 55, 110, 0.75);
    border-color: #0066cc;
    background: linear-gradient(
        180deg,
        #8ce0ff 0%,
        #29a3ff 49%,
        #0077e6 51%,
        #33bbff 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        0 5px 12px rgba(72, 219, 112, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.aero-link-btn:active {
    transform: translateY(0);
}

/* Glossy Circular "Orb" Holder for the Image */
.link-icon-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #9be3ff 50%, #3bb2ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
    0 2px 4px rgba(0, 75, 145, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}
.link-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}
.link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 540px) {
    .form-row {
    grid-template-columns: 2fr 1fr;
}
}
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.post-card {
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(225, 246, 255, 0.72) 100%
);
}
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 119, 204, 0.2);
}
.post-title {
    margin: 0;
    font-size: 18px;
    color: #063966;
}
.post-date {
    font-size: 12.5px;
    font-weight: 600;
    color: #2c5d7c;
}
.post-figure {
    margin: 10px 0;
    padding: 6px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #c4eeff 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 75, 145, 0.15);
}
.post-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.post-caption {
    margin-top: 6px;
    font-size: 12.5px;
    font-style: italic;
    text-align: center;
    color: #1d4e6e;
}
.post-body {
    margin: 8px 0 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    white-space: pre-wrap;
}
/* Recessed Glass Box (Used on .post-form and .post-card) */
.aero-box {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(218, 246, 255, 0.68) 100%
);
    border: 1px solid rgba(0, 136, 230, 0.35);
    box-shadow:
    inset 0 2px 5px rgba(0, 75, 145, 0.10),
    0 2px 6px rgba(0, 75, 145, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95);
}
/* Form Inputs & Textarea */
.aero-input,
.aero-textarea {
    width: 100%;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #0b2b40;
    border-radius: 999px;
    border: 1px solid rgba(0, 119, 230, 0.45);
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    box-shadow:
    inset 0 2px 4px rgba(0, 65, 130, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.aero-textarea {
    border-radius: 12px;
    resize: vertical;
}
.aero-input:focus,
.aero-textarea:focus {
    background: #ffffff;
    border-color: #0099ff;
    box-shadow:
    0 0 8px rgba(0, 180, 255, 0.65),
    inset 0 1px 3px rgba(0, 65, 130, 0.12);
}
/* Glossy Gel Publish Button */
.aero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 55, 110, 0.7);
    border: 1px solid #0066cc;
    background: linear-gradient(
    180deg,
    #8ce0ff 0%,
    #29a3ff 49%,
    #0077e6 51%,
    #33bbff 100%
);
box-shadow:
    0 3px 6px rgba(0, 85, 170, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.aero-btn-green {
    border-color: #1f8f11;
    background: linear-gradient(
    180deg,
    #b8f79e 0%,
    #5cd647 49%,
    #2eb81d 51%,
    #6be356 100%
);
    text-shadow: 0 1px 2px rgba(15, 80, 10, 0.7);
    box-shadow:
    0 3px 6px rgba(31, 143, 17, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.aero-btn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow:
    0 5px 12px rgba(72, 219, 112, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}
/* Post Tag Pill Badge */
.aero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #063966;
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(214, 244, 255, 0.85) 49%,
    rgba(173, 229, 255, 0.85) 51%,
    rgba(224, 248, 255, 0.95) 100%
);
    border: 1px solid rgba(0, 136, 230, 0.4);
    box-shadow:
    0 2px 4px rgba(0, 75, 145, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.nav-link.active {
    border-color: #1f8f11;
    background: linear-gradient(
    180deg,
    #b8f79e 0%,
    #5cd647 49%,
    #2eb81d 51%,
    #6be356 100%
);
    text-shadow: 0 1px 2px rgba(15, 80, 10, 0.75);
    box-shadow:
    0 3px 8px rgba(72, 219, 112, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}
.post-tag {
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.post-tag:hover {
    color: #ffffff;
    border-color: #0066cc;
    background: linear-gradient(
    180deg,
    #8ce0ff 0%,
    #29a3ff 49%,
    #0077e6 51%,
    #33bbff 100%
);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 119, 230, 0.35);
}
/* Highlights the selected tag in Aero green when active */
.post-tag.active-tag {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(15, 80, 10, 0.75);
    border-color: #1f8f11;
    background: linear-gradient(
    180deg,
    #b8f79e 0%,
    #5cd647 49%,
    #2eb81d 51%,
    #6be356 100%
);
    box-shadow: 0 3px 8px rgba(72, 219, 112, 0.65);
}
.post-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.post-admin-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-edit-btn,
.post-delete-btn {
    padding: 3px 10px;
    font-size: 12px;
}
/* Glossy Ruby-Red Gel Variant for Delete */
.aero-btn-red {
border-color: #b31217;
background: linear-gradient(
    180deg,
    #ff9e9e 0%,
    #f24444 49%,
    #cc1414 51%,
    #f55656 100%
);
text-shadow: 0 1px 2px rgba(90, 5, 5, 0.75);
box-shadow:
    0 3px 6px rgba(179, 18, 23, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}
.aero-btn-red:hover {
box-shadow:
    0 4px 10px rgba(242, 68, 68, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}
/* Staggered, organic tag cloud container */
.interests-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 8px;
    padding: 6px 2px 10px 2px;
    }
/* Base Glossy Water-Droplet Pill */
.interest-bubble {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #05335c;
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(214, 244, 255, 0.86) 49%,
    rgba(173, 229, 255, 0.86) 51%,
    rgba(224, 248, 255, 0.96) 100%
);
    border: 1px solid rgba(0, 128, 230, 0.45);
    box-shadow:
    0 3px 7px rgba(0, 82, 155, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
/* Size variations for an unaligned, bubbly silhouette */
.interest-bubble.bubble-sm {
    padding: 4px 11px 4px 7px;
    font-size: 12px;
}
.interest-bubble.bubble-lg {
    padding: 8px 16px 8px 9px;
    font-size: 14.5px;
}
/* Subtle vertical offsets so rows look organic instead of rigidly aligned */
.interest-bubble:nth-child(odd) {
    transform: translateY(-2px);
}
.interest-bubble:nth-child(even) {
    transform: translateY(3px);
}
.interest-bubble:nth-child(3n) {
    transform: translateY(-4px);
}
/* Tiny glossy aqua orb inside each pill */
.bubble-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #66d9ff 45%, #0077e6 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 75, 145, 0.35);
}
.bubble-lg .bubble-dot {
    width: 15px;
    height: 15px;
}
/* Hover state */
.interest-bubble:hover {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 55, 110, 0.75);
    border-color: #0066cc;
    background: linear-gradient(
    180deg,
    #8ce0ff 0%,
    #29a3ff 49%,
    #0077e6 51%,
    #33bbff 100%
);
    transform: translateY(-4px) scale(1.04);
    box-shadow:
    0 6px 14px rgba(0, 140, 255, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}
/* Active state: glows vibrant Aero lime green when filtering posts */
.interest-bubble.active-interest {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(15, 80, 10, 0.75);
    border-color: #1f8f11;
    background: linear-gradient(
    180deg,
    #b8f79e 0%,
    #5cd647 49%,
    #2eb81d 51%,
    #6be356 100%
    );
    box-shadow:
    0 4px 12px rgba(72, 219, 112, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}
.interest-bubble.active-interest .bubble-dot {
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #a8ff8c 45%, #1f8f11 100%);
}
/* Frutiger Aero Drag & Drop Upload Box */
.aero-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
    border: 2px dashed rgba(0, 119, 230, 0.5);
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(210, 244, 255, 0.65) 100%
);
    cursor: pointer;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #063966;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.aero-drop-zone:hover,
.aero-drop-zone.drag-over {
    border-color: #1f8f11;
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(212, 252, 214, 0.75) 100%
    );
    box-shadow: 0 0 12px rgba(72, 219, 112, 0.55);
}
.drop-zone-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
}
.image-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.image-preview-wrap img {
    max-height: 150px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 8px rgba(0, 75, 145, 0.2);
}
.rss-orb {
    background: linear-gradient(180deg, #ffd29e 0%, #ff8c1a 50%, #e65c00 100%);
}
.username-row {
    display: flex;
    align-items: center;
    gap: 6px; /* Space between the username and badge */
}
.username-row .link-icon {
    flex-shrink: 0;
}

/* Add .now-playing-card to your main glass card selector */
.profile-card,
.site-links,
.my-interests,
.post-feed,
.guestbook-card,
.now-playing-card {
    position: relative;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.58) 35%,
        rgba(225, 245, 255, 0.65) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 24px rgba(0, 75, 145, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 140, 255, 0.25);
}

/* Windows Media Player Card Styling */
.wmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.np-mood-badge {
    font-size: 11.5px;
    padding: 3px 10px;
}

.wmp-screen {
    padding: 12px;
    background: linear-gradient(
        180deg,
        rgba(235, 249, 255, 0.92) 0%,
        rgba(195, 236, 255, 0.78) 50%,
        rgba(218, 246, 255, 0.9) 100%
    );
}

.wmp-track-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wmp-cover-frame {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #7ad7ff 50%, #1c8ef2 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 8px rgba(0, 75, 145, 0.25);
}

.wmp-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}

.wmp-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wmp-title-line {
    display: flex;
    align-items: center;
    gap: 7px;
}

.wmp-track {
    font-size: 15px;
    font-weight: 700;
    color: #063966;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wmp-artist {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #0077cc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mini Animated Equalizer Bars */
.wmp-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    flex-shrink: 0;
}

.wmp-eq i {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #48db70 0%, #0077e6 100%);
    animation: eqBounce 0.9s ease-in-out infinite alternate;
}

.wmp-eq i:nth-child(2) {
    animation-delay: 0.25s;
}

.wmp-eq i:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* WMP Controls & Glossy Seek Bar */
.wmp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wmp-play-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 10px;
    padding-left: 2px;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 50, 100, 0.7);
    background: linear-gradient(180deg, #9be6ff 0%, #29a3ff 49%, #0066cc 51%, #33bbff 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 85, 170, 0.35);
}

.wmp-progress-track {
    position: relative;
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 119, 230, 0.4);
    box-shadow: inset 0 1px 3px rgba(0, 65, 130, 0.2);
}

.wmp-progress-fill {
    width: 58%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #b8f79e 0%, #48db70 50%, #1f9e38 100%);
}

.wmp-progress-thumb {
    position: absolute;
    top: 50%;
    left: 58%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #66d9ff 55%, #0077e6 100%);
    border: 1px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 65, 130, 0.45);
}

.wmp-time {
    font-size: 11px;
    font-weight: 700;
    color: #2c5d7c;
    flex-shrink: 0;
}

/* Admin Edit Form inside Now Playing */
.np-admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 119, 204, 0.2);
}

.np-admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Add .currently-watching-card to your shared Aero glass card selector */
.profile-card,
.site-links,
.my-interests,
.post-feed,
.guestbook-card,
.now-playing-card,
.currently-watching-card {
    position: relative;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.58) 35%,
        rgba(225, 245, 255, 0.65) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 24px rgba(0, 75, 145, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 140, 255, 0.25);
}

/* Currently Watching Card Layout */
.cw-display {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
}

.cw-poster-frame {
    width: 72px;
    height: 100px;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #8ce0ff 50%, #29a3ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 8px rgba(0, 75, 145, 0.22);
}

.cw-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
    display: block;
    background-color: #d7f3ff;
}

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

.cw-title {
    margin: 0 0 4px 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #063966;
    word-wrap: break-word;
}

.cw-description {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #0b2b40;
    white-space: pre-wrap;
    word-break: break-word;
}

.cw-admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 119, 204, 0.2);
}

.cw-file-input {
    padding: 5px 10px;
    font-size: 12.5px;
}

/* Recessed Glass Bar for File Inputs */
.cw-file-input {
    padding: 4px 10px 4px 4px;
    font-size: 12.5px;
    color: #0b2b40;
    cursor: pointer;
}

/* Style the native "Choose File" button as a Frutiger Aero Gel Pill */
.cw-file-input::file-selector-button {
    margin-right: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 55, 110, 0.75);
    border: 1px solid #0066cc;
    background: linear-gradient(
        180deg,
        #8ce0ff 0%,
        #29a3ff 49%,
        #0077e6 51%,
        #33bbff 100%
    );
    box-shadow: 
        0 2px 5px rgba(0, 85, 170, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.cw-file-input::file-selector-button:hover {
    filter: brightness(1.08);
    box-shadow: 
        0 3px 9px rgba(72, 219, 112, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* Tablets & Medium Laptops (790px - 1199px): 2-column layout with sticky Post Feed */
@media (min-width: 790px) and (max-width: 1199px) {
    .post-feed {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .post-feed::-webkit-scrollbar {
        display: none;
    }
}

/* Wide Desktops (1200px+): Locked 100vh viewport with 3 independently scrolling columns */
@media (min-width: 1200px) {
    body {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .nav-bar {
        width: 100%;
        flex-shrink: 0;
    }

    .main-layout {
        flex: 1;
        min-height: 0;
        width: 100%;
    }

    .post-feed,
    .left-column,
    .right-column {
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .post-feed::-webkit-scrollbar,
    .left-column::-webkit-scrollbar,
    .right-column::-webkit-scrollbar {
        display: none;
    }
}


/* ==========================================================================
   Apply Theme Variables Across All Blog Elements
   ========================================================================== */
body {
    color: var(--aero-text);
    background: var(--aero-bg-sky);
    background-attachment: fixed;
    transition: background 0.3s ease, color 0.25s ease;
}

.nav-bar {
    background: var(--aero-glass-navbar);
    border-color: var(--aero-border-glass);
    box-shadow: 0 6px 20px var(--aero-shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.profile-card,
.site-links,
.my-interests,
.post-feed,
.guestbook-card,
.now-playing-card,
.currently-watching-card {
    background: var(--aero-glass-card);
    border-color: var(--aero-border-glass);
    box-shadow: 0 8px 24px var(--aero-shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 140, 255, 0.25);
}

.aero-box,
.profile-description,
.wmp-screen,
.aero-drop-zone {
    background: var(--aero-glass-box);
    border-color: var(--aero-border-accent);
    color: var(--aero-text);
}

.guestbook-entry {
    background: var(--aero-input-bg);
    border-color: var(--aero-border-accent);
}

.card-title,
.profile-username,
.post-title,
.cw-title,
.wmp-track {
    color: var(--aero-text-heading);
    text-shadow: none;
}

.profile-handle,
.guestbook-author,
.wmp-artist {
    color: var(--aero-link-accent);
}

.post-date,
.guestbook-meta,
.guestbook-empty,
.wmp-time,
.post-caption {
    color: var(--aero-text-muted);
}

.guestbook-text,
.cw-description,
.post-body {
    color: var(--aero-text);
}

.input,
.aero-input,
.aero-textarea {
    color: var(--aero-text);
    background: var(--aero-input-bg);
    border-color: var(--aero-border-accent);
}

.input:focus,
.aero-input:focus,
.aero-textarea:focus {
    background: var(--aero-input-focus-bg);
}

.nav-link,
.aero-btn,
.cw-file-input::file-selector-button {
    background: var(--aero-gel-blue);
}

.nav-link.active,
.aero-btn-green,
.post-tag.active-tag,
.interest-bubble.active-interest {
    background: var(--aero-gel-green);
}

.aero-link-btn,
.aero-badge,
.interest-bubble {
    color: var(--aero-btn-text);
    text-shadow: var(--aero-btn-shadow);
    background: var(--aero-gel-default);
    border-color: var(--aero-border-accent);
}

.btn:focus-visible,
.drop-zone:focus-visible {
    outline: 2px solid #0099ff;
    outline-offset: 2px;
}


/* Theme Switcher Pill Group in Navbar */
.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-btn {
    padding: 5px 10px;
    font-size: 12.5px;
    cursor: pointer;
}

/* Navbar Button Groups & Frosted Glass Dividers */
.nav-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Remove vertical wobble on the About bubble when sitting inside the navbar */
.nav-bar .interest-bubble {
    transform: none;
}

.nav-bar .interest-bubble:hover {
    transform: translateY(-1px);
}

/* Vertical Vista/Aero Glass Separator */
.nav-divider {
    display: none; /* Hidden on narrow mobile screens where items wrap */
}

@media (min-width: 600px) {
    .nav-divider {
        display: inline-block;
        width: 2px;
        height: 24px;
        margin: 0 4px;
        border-radius: 999px;
        background: linear-gradient(
            180deg,
            transparent 0%,
            var(--aero-border-accent) 25%,
            var(--aero-border-accent) 75%,
            transparent 100%
        );
        box-shadow: 1px 0 0 rgba(255, 255, 255, 0.55);
    }
}

/* Prevent iOS auto-zoom on mobile inputs and stack navbar search cleanly */
@media (max-width: 599px) {
    .input,
    .textarea,
    .select {
        font-size: 16px;
    }

    .navbar .input {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-top: 4px;
    }
}
