/* ==========================================================================
   1. RESET AND LAYOUT ENGINE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: LatoThin;
    src: url(../fonts/Lato-Thin.ttf);
}

@font-face {
    font-family: LatoLight;
    src: url(../fonts/Lato-Light.ttf);
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto; /* Allow the song hub pages to scroll vertically */
    background: #94618E; 
    font-family: 'LatoLight', Verdana, sans-serif;
    font-size: 16px;
}

a.axalink:link, a.axalink:visited  {
    text-decoration: none;
    color: #49274A;
    font-weight: bold;
    font-size: 16px;
    transition: all 1s;
    border-radius: 10px;
}

a.axalink:hover {
    color: #F8EEE7;
    background-color: #94618E;
}

.axaTag {
    color: #49274A;
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================================================
   2. LOCKED & SMOOTH SHRINKING HEADER
   ========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
header {
    position: fixed; /* Changed from sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #49274A;
}

/* Changes applied automatically by JavaScript on scroll */
header.shrunk {
    height: 60px; /* Decreased by half */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Subtle depth separator */
}

/* Adjust the logo sizing transitions matching the header */
.logo img {
    height: 80px; /* Fixed starting height */
    margin-top: 5px;
    filter: brightness(0) saturate(100%) invert(88%) sepia(12%) saturate(220%) hue-rotate(330deg);
    opacity: 0.7;
    transition: height 0.3s ease;
}

header.shrunk .logo img {
    height: 45px; /* Logo scales down cleanly to fit the smaller container */
}

nav {
    display: inline-block; 
    margin-right: 50px;
}

nav a img {    
    width: 40px;
    height: 40px;
    filter: brightness(0) saturate(100%) invert(88%) sepia(12%) saturate(220%) hue-rotate(330deg);
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s, width 0.3s, height 0.3s;
}

nav a img:hover { 
    opacity: 1; 
}

/* Adjust the social icon sizes on shrink */
header.shrunk nav a img {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   3. SMART LINK CARD COMPONENT ENGINE
   ========================================================================== */
.smart-link-card {
    max-width: 500px;
    width: 90%;
    /* FIX: Set a safe margin top to offset the 120px sticky header height plus padding */
    margin: 125px auto 100px auto; 
    background: transparent; 
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.myLyrics:last-of-type {
    margin-bottom: 75px;
}

/* Primary Dark Profile Headboard - HORIZONTAL CONFIGURATION */
.card-header {
    background-color: rgba(30, 30, 30, 0.75);
    border-radius: 12px;
    padding: 1.5rem;
    overflow: visible;   
    
    /* Side-by-side row setup */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px; 
    height: auto;
}

.album-artwork {
    width: 180px; /* Scaled cleanly for the row format */
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    position: static;
    flex-shrink: 0; /* Prevents the image from being squished */
}

/* Text grouping block to keep titles stacked vertically on the right */
.song-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.song-title {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: #F8EEE7;
    margin: 0 0 4px 0;
    position: static;
    font-family: 'LatoLight', Verdana, sans-serif;
}

.artist-name {
    font-size: 1rem;
    color: #b3b3b3;
    letter-spacing: 0.5px;
    margin: 0;
    position: static;
}

/* ==========================================================================
   4. STREAMING LINKS, AUDIO & VIDEO AUDIO TRACKS
   ========================================================================== */
.links-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-row {
    display: flex;
    align-items: center;
    background-color: rgba(30, 30, 30, 0.75);
    border-radius: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #F8EEE7;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.platform-row:hover {
    background-color: rgba(50, 50, 50, 0.85); 
}

.platform-row:active {
    transform: scale(0.995); 
}

.platform-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 16px;
    flex-shrink: 0;
}

.platform-label {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 500;
}

.arrow-indicator {
    font-size: 0.7rem;
    color: #888888;
    opacity: 0.7;
}

.audio-player-container {
    background-color: rgba(30, 30, 30, 0.75);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp3-icon-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: #282828;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mp3-icon-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.audio-native-frame {
    flex-grow: 1;
}

.audio-native-frame audio {
    width: 100%;
    height: 40px;
    display: block;
}

/* ==========================================================================
   5. LYRICS & FOOTER FRAME
   ========================================================================== */
.myLyrics {
    background-color: rgba(248,238,231,.7);
    color: #000;
    padding: 20px;
    border-radius: 25px;
    line-height: 1.6;
    text-align: left;
    border: 1px solid #49274A;
}

.lyricTitle {
    display: inline-block; 
    line-height: normal;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

footer {
    display: flex;
    align-items: center; 
    padding: 0 20px;
    color: #94618E;
    background-color: #49274A;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.footer-text {
    display: inline-block;
    width: 50%;
}

.youtube {
    border-radius: 20px;
}

/* ==========================================================================
   4. MOBILE RESPONSIVENESS AND NO-SCROLL LAYOUT Engine
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent vertical scrolling across the layout engine */
    header {
        height: 80px; 
        padding: 0 10px;
    }
    .logo img {
        height: 50px;
    }
    nav {
        margin-right: 10px;
    }
    nav a img {    
        width: 28px;
        height: 28px;
    }
    
    .youtube {
        width: 350px;
        height: 200px; 
    }
}
/* Footer Layout Base Rules */
.bandcamp-custom-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 16px !important;
  background-color: #3b2343 !important; /* Your deep plum color */
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px; /* Clean spacing gaps */
}

/* Button & Link Styles */
.menu-trigger-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #a38ea6;
}

.nav-link {
  color: #a38ea6;
  text-decoration: none;
}

.menu-trigger-btn:hover, .nav-link:hover {
  color: #ffffff;
}

/* The Isolated Floating Card */
.popup-card {
  position: fixed;
  bottom: 60px; /* Sits perfectly above the bar */
  right: 16px;
  width: auto;
  background-color: #94618E;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  
  /* Start completely hidden */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* The Toggle Rule controlled by JavaScript */
.popup-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Internal Card Details */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.card-header h3 {
  margin: 0;
  font-size: 4px;
  color: #49274A ;
}

.card-close-x {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

.card-links {
  list-style: none;
  padding: 8px 16px;
  margin: 0;
}

.card-links li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #F8EEE7;
  text-decoration: none;
}
