/*******************************************************
    GLOBAL VARIABLES
********************************************************/
:root {
    --album-neon: #1DB954;      /* Dark mode Spotify green */
    --album-mint: #1ed760;
    --album-mint-light: #00796b; /* Darker green for light mode */
    --text-main-dark: #e8fff9;
    --text-main-light: #151515;
    --bg-dark: #121212;
    --bg-mid-dark: #181818;
    --bg-light: #ffffff;
    --bg-mid-light: #f0f0f0;
    --global-padding-vertical: 16px;
    --global-padding-horizontal: 24px;
}

/*******************************************************
    BASE STYLES
********************************************************/
body {
    margin: 0;
    font-family: Avenir, 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main-dark);
    transition: all 0.3s ease;
}

h1,h2,h3,h4,h5,h6,p,a {
    margin: 0.25rem 0;
    transition: color 0.3s ease;
}

a { text-decoration: none; }

/*******************************************************
    DARK / LIGHT MODE
********************************************************/
body[data-theme="light"] {
    background-color: var(--bg-light);
    color: var(--text-main-light);
}

body[data-theme="dark"] { 
    background-color: var(--bg-dark); 
    color: var(--text-main-dark); 
}

/* inherit text for all elements inside sections, except album */
section, section * { color: inherit; }

/*******************************************************
    HERO
********************************************************/
.sec-hero { margin-top: 60px; padding: 0; }
.sec-hero img { width: 100%; height: auto; display: block; object-fit: cover; }

/*******************************************************
    SECTIONS PADDING
********************************************************/
section { padding: var(--global-padding-vertical) var(--global-padding-horizontal); }
/* Override padding per section if needed */
.clean-block { padding-left: 0; padding-right: 0; }
.sec-hero, .sec-hero img { padding-left: 0; padding-right: 0; }

/*******************************************************
    NAVBAR
********************************************************/
.navbar-custom {
    background-color: var(--bg-dark) !important;
    transition: background 0.3s ease;
}
body[data-theme="light"] .navbar-custom { background-color: var(--bg-light) !important; }

.navbar-nav .nav-link,
.navbar-brand,
#theme-label,
.navbar-toggler-icon {
    color: var(--text-main-dark) !important;
}
body[data-theme="light"] .navbar-nav .nav-link,
body[data-theme="light"] .navbar-brand,
body[data-theme="light"] #theme-label,
body[data-theme="light"] .navbar-toggler-icon {
    color: var(--text-main-light) !important;
}

/* Hamburger icons */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
body[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/*******************************************************
    DARK/LIGHT THEME TOGGLE
********************************************************/
.theme-toggle-wrapper { 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 12px; 
}

#theme-icon {
    transition: color 0.3s ease;
    font-size: 1rem;
}
/* Icon colors by theme */
body[data-theme="dark"] #theme-icon { color: var(--white); }
body[data-theme="light"] #theme-icon { color: var(--black); }

/*******************************************************
    LOGROS SECTION
********************************************************/
.logros-year { font-weight: 700; color: var(--album-neon); }
body[data-theme="light"] .logros-year { color: var(--album-mint-light); }
.sec-logros h3, .sec-logros h4, .sec-logros h6 { color: inherit; }
.logro-divider { border-top: 1px solid #888; margin: 0.5rem 0; }

/*******************************************************
    FOTOS SLIDESHOW
********************************************************/
.image-carousel-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%;           /* ensure container fits page */
}

.image-main-wrapper { 
    margin-bottom: 1rem; 
    width: 100%;           /* main image respects page width */
    display: flex;
    /* justify-content: center; */
}

.image-main-wrapper img {
    max-width: 400px;      /* prevent bleeding */
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    border: 3px solid var(--album-mint);
    border-radius: 6px; 
    transition: border 0.3s ease;
}

.image-thumbnails {
    display: flex; 
    gap: 1rem;
    overflow-x: auto;        /* enable horizontal scroll */
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    width: 100%;             /* limit to page width */
    box-sizing: border-box;  /* prevent overflow */
    -webkit-overflow-scrolling: touch;
}

.thumb-img {
    flex: 0 0 auto;          /* prevent shrinking */
    width: 80px; 
    height: 80px;
    object-fit: cover; 
    cursor: pointer;
    border: 2px solid transparent; 
    border-radius: 6px;
    transition: border 0.2s ease, transform 0.2s ease;
}

.thumb-img.selected { 
    border-color: var(--album-neon); 
}

.thumb-img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .image-main-wrapper img { max-width: 100%; }
    .thumb-img { width: 80px; height: 80px; }
}

/*******************************************************
    VIDEO CAROUSEL
********************************************************/
.video-carousel {
    display: flex; overflow-x: auto; gap: 1rem;
    padding: 1rem 0; scroll-behavior: smooth;
}
.video-carousel .video-item {
    flex: 0 0 auto; width: 300px;
    border: 2px solid currentColor;
    border-radius: 8px; overflow: hidden;
    transition: border-color 0.3s ease, transform 0.2s ease;
}
.video-carousel .video-item:hover { transform: scale(1.05); border-color: var(--album-neon); }
.video-carousel .video-item iframe { width: 100%; aspect-ratio: 16/9; }

/*******************************************************
    ALBUM SECTION (EXCEPTION)
********************************************************/
.clean-block {
    background-image: url('/assets/leobehindcd.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    color: var(--white);
    padding-left: var(--global-padding-horizontal);
    padding-right: var(--global-padding-horizontal);
}
.clean-block .text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    text-align: center;
}
.clean-block .cd {
    width: 100%;
    max-width: 50%; height: auto;
    display: block; margin: 0 auto; border-radius: 6px;
}
@media (max-width: 600px) { .clean-block .cd { max-width: 70%; } }

/*******************************************************
    BUTTONS
********************************************************/
.action-btn {
    background-color: var(--album-neon);
    color: var(--white); 
    border: 2px solid var(--album-neon);
    padding: 0.5rem 1.5rem; 
    border-radius: 6px;
    font-weight: 600; 
    font-size: 1.2rem;
    text-decoration: none; 
    transition: all 0.3s ease-in-out;
}

/* Updated hover: darker green background, white text, no border change */
.action-btn:hover {
    background-color: var(--album-neon-light);
    color: #ffffff; /* text stays white */
    border-color: var(--album-neon); /* keep original border */
    transform: translateY(0); /* optional: remove lift effect if undesired */
}

/*******************************************************
    FOOTER
********************************************************/
.sec5 {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--bg-dark);
    color: var(--white);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Light mode footer */
body[data-theme="light"] .sec5 {
    background-color: var(--bg-mid-light);
    color: var(--text-main-light);
}

/* Social icons and "regresar al inicio" link */
.gotop,
.fa-brands {
    color: var(--album-neon);  /* Dark mode: Spotify green */
    transition: color 0.3s ease;
}

body[data-theme="light"] .gotop,
body[data-theme="light"] .fa-brands {
    color: var(--album-mint-light); /* Light mode: dark green */
}

/* Hover effect */
.gotop:hover,
.fa-brands:hover { color: var(--album-neon); }

/*******************************************************
    SECTION BACKGROUND COLORS (ALTERNATE)
********************************************************/
/* Dark mode alternates */
body[data-theme="dark"] .sec-hero { background-color: #121212; }
body[data-theme="dark"] .sec-music-stores { background-color: #1a1a1a; }
body[data-theme="dark"] .sec-bio { background-color: #181818; }
body[data-theme="dark"] .sec-logros { background-color: #1a1a1a; }
body[data-theme="dark"] .sec1 { background-color: #121212; }
body[data-theme="dark"] .sec2 { background-color: #181818; }

/* Light mode alternates */
body[data-theme="light"] .sec-hero { background-color: #ffffff; }
body[data-theme="light"] .sec-music-stores { background-color: #f8f8f8; }
body[data-theme="light"] .sec-bio { background-color: #ededed; }
body[data-theme="light"] .sec-logros { background-color: #f8f8f8; }
body[data-theme="light"] .sec1 { background-color: #ededed; }
body[data-theme="light"] .sec2 { background-color: #f8f8f8; }

/*******************************************************
    RESPONSIVE TYPOGRAPHY
********************************************************/
@media (max-width: 600px) {
    h1 { font-size: 2.2rem; } 
    h2 { font-size: 1.5rem; } 
    h3 { font-size: 1.2rem; }
    .image-main-wrapper img { width: 250px; height: 250px; }
    .thumb-img { width: 60px; height: 60px; }
}