* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
    background: #fbfbfb;
}

/* --- Canvas Backing Moving Gradient --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    z-index: -1;
    background: linear-gradient(-45deg, #E0BBE4, #FFDFD3, #D4F1F4, #FFFFFF);
    background-size: 25% 25%;
    animation: gradientFlow 8s ease-in-out infinite;
}

@keyframes gradientFlow {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-20%, -20%); }
    100% { transform: translate(0, 0); }
}

/* --- ABSOLUTE VIEWPORT VERTICAL & HORIZONTAL CENTERING ANCHOR --- */
.master-viewport-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 60px 20px 100px 20px;
}

/* --- Master Side-by-Side Flex Slider Wrapper --- */
.master-hub-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: center;
    gap: 30px; 
    width: 100%;
    max-width: 960px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Fixed Multi-line Status Bubble Setup --- */
.profile-container {
    position: relative;
    width: fit-content;
    margin: 0 auto 15px;
}

.status-bubble {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(157, 129, 186, 0.2);
    z-index: 5;
    white-space: normal;
    word-break: break-word;
    width: 200px;
    text-align: center;
    line-height: 1.4;
}

.status-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: white transparent;
    display: block;
    width: 0;
}

/* --- Fixed Audio Player Layout Structure --- */
.mini-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px; 
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    z-index: 100;
    transform: translateX(-150%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mini-player.visible { transform: translateX(0); }

#track-art { width: 45px; height: 45px; border-radius: 12px; object-fit: cover; background: #000; flex-shrink: 0; }

.track-info { 
    flex: 1; 
    min-width: 0; 
    padding-right: 4px;
}
#track-name { font-size: 0.85rem; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#track-artist { font-size: 0.75rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.controls-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.controls { display: flex; align-items: center; gap: 4px; }
.controls button { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; }
svg { fill: #444; transition: 0.2s; display: block; }
button:hover svg { fill: #9d81ba; transform: scale(1.1); }

/* --- Volume Drawer Structure --- */
.volume-wrapper { position: relative; display: flex; align-items: center; }
.volume-popup {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.volume-popup.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

#volume-slider { 
    -webkit-appearance: none; 
    width: 80px; 
    height: 5px; 
    background: #f0f0f0; 
    border-radius: 5px; 
    outline: none; 
    cursor: pointer;
    display: block;
}
#volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: #9d81ba; border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* --- Containers Construction Matrix --- */
.container {
    width: 100%; 
    max-width: 380px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: 40px;
    border: 1px solid white;
    text-align: center;
}

/* Wide layout handles slide transitions */
.container.wide-layout {
    max-width: 520px;
    padding: 40px 30px;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* --- Sliding Out Animations Config --- */
.container.wide-layout.hidden-panel {
    display: none !important; 
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
.container.wide-layout:not(.hidden-panel) {
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Profile Visual Assets */
.profile-pic { width: 90px; height: 90px; border-radius: 50%; border: 3px solid white; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-top: 25px; }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.tagline { margin-top: 4px; color: #666; font-size: 0.9rem; }

.links { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.link-card { background: white; border: none; padding: 16px; border-radius: 15px; font-weight: 700; color: #444; transition: 0.3s; cursor: pointer; width: 100%; font-size: 0.95rem; text-align: center; }
.link-card:hover { background: #9d81ba; color: white; transform: translateY(-2px); }

.highlight-card {
    border: 1px solid rgba(157, 129, 186, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fefaff 100%);
}

.content-box { max-height: 0; overflow: hidden; opacity: 0; transition: 0.5s ease; width: 100%; }
.content-box.active { max-height: 200px; opacity: 1; margin: 10px 0; }
.content-inner { padding: 5px 15px; text-align: left; font-size: 0.9rem; color: #666; line-height: 1.5; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.contact-btn {
    background: white; border: 1px solid #eee; padding: 12px; border-radius: 12px;
    text-decoration: none; color: #555; font-size: 0.85rem; font-weight: 700; text-align: center;
    cursor: pointer; transition: 0.2s;
}
.contact-btn:hover { background: #f8f8f8; border-color: #9d81ba; color: #9d81ba; }

/* --- Activity Feed Styles --- */
.feed-section { text-align: left; margin-top: 25px; }
.feed-section:first-of-type { margin-top: 10px; }
.feed-section h2 { font-size: 1.15rem; color: #333; margin-bottom: 12px; border-bottom: 2px solid rgba(157, 129, 186, 0.15); padding-bottom: 4px; }

.history-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.history-item { background: rgba(255,255,255,0.4); padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; color: #555; border-left: 4px solid #9d81ba; }

.blog-card { background: white; padding: 16px; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }
.blog-meta { font-size: 0.75rem; color: #aaa; margin-bottom: 4px; font-weight: 500; }
.blog-card h3 { font-size: 1.05rem; color: #333; margin-bottom: 6px; }
.blog-card p { font-size: 0.88rem; color: #666; line-height: 1.5; }

.comment-card { background: rgba(255, 255, 255, 0.4); padding: 12px 14px; border-radius: 14px; margin-bottom: 8px; font-size: 0.85rem; }
.comment-user { font-weight: 700; color: #444; display: inline-block; margin-right: 6px; }
.comment-date { font-size: 0.7rem; color: #999; float: right; }
.comment-text { color: #666; margin-top: 4px; }

/* Dynamic Pagination View Controls Button */
.view-more-toggle-btn {
    background: white;
    border: 1px solid rgba(157, 129, 186, 0.25);
    color: #9d81ba;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.view-more-toggle-btn:hover {
    background: #9d81ba;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(157, 129, 186, 0.15);
}

/* --- SEPARATED FOOTER GLASS BUBBLE --- */
.global-footer-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none; 
    z-index: 90;
}

.footer-bubble {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    pointer-events: auto;
}

.footer-bubble span {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Splash Intro Screen Layout */
#overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #eef9fb; z-index: 1000; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.5s; }
.fade-out { opacity: 0; pointer-events: none; }

/* Responsive adjustments for mobile screen layouts */
@media (max-width: 860px) {
    .master-viewport-center {
        align-items: flex-start; /* Let contents scale down normally if screen height is too small */
        padding-top: 40px;
    }
    .master-hub-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .global-footer-container {
        position: relative;
        margin-top: 40px;
        bottom: 10px;
    }
}
