/*!
 * HitxRadio - Main Theme CSS
 * Version: 1.0.0
 * Description: Thème principal responsive pour HitxRadio avec variables CSS
 * Author: GXS Team
 * Last Update: 2025
 */
 /* GXS | CSS THEME ------------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
@import url('https://fonts.googleapis.com/css2?family=Arizonia&display=swap');

/* ===================================================================
   CSS VARIABLES - CONFIGURATION CENTRALISÉE
   =================================================================== */
:root {
    /* === COULEURS === */
    --color-primary: #fd000f;           /* Rouge principal */
    --color-black: #000000;             /* Noir pur */
    --color-dark-grey: #232323;         /* Gris foncé */
    --color-medium-grey: #1a1a1a;       /* Gris moyen */
	--color-date-grey: #565656;         /* Gris dates et autres */
    --color-white: #ffffff;             /* Blanc pur */
    --color-light-grey: #cccccc;        /* Gris clair */
    --color-text-secondary: #888888;    /* Texte secondaire */
    --color-overlay: rgba(0, 0, 0, 0.7); /* Overlay semi-transparent */
    
    /* === TAILLES DE POLICE === */
    --font-size-xs: 11px;               /* Extra small */
    --font-size-sm: 12px;               /* Small */
    --font-size-base: 14px;             /* Base */
    --font-size-md: 16px;               /* Medium */
    --font-size-lg: 18px;               /* Large */
    --font-size-xl: 24px;               /* Extra large */
    
    /* === TAILLES RESPONSIVE === */
    --nav-font-desktop: clamp(20px, 5vw, 28px);     /* Navigation desktop */
    --nav-font-tablet: clamp(18px, 3.5vw, 22px);    /* Navigation tablette */
    --nav-font-tablet-sm: clamp(16px, 3vw, 20px);   /* Navigation petite tablette */
    --nav-font-mobile: clamp(14px, 4.5vw, 18px);    /* Navigation mobile */
    
    /* === DIMENSIONS === */
    --sidebar-width: 80px;              /* Largeur sidebar */
    --header-height: 80px;              /* Hauteur header */
    --player-height: 120px;             /* Hauteur player desktop */
    --player-height-mobile: 100px;      /* Hauteur player mobile */
    --mobile-social-height: 60px;       /* Hauteur barre sociale mobile */
    --container-max-width: 1200px;      /* Largeur max du contenu */
    
    /* === ESPACEMENT === */
    --spacing-xs: 5px;                  /* Extra small */
    --spacing-sm: 10px;                 /* Small */
    --spacing-base: 15px;               /* Base */
    --spacing-md: 20px;                 /* Medium */
    --spacing-lg: 30px;                 /* Large */
    --spacing-xl: 40px;                 /* Extra large */
	
	/* === ESPACEMENT NAV LIST === */
    --navspace-xs: 5px;                  /* Extra small */
    --navspace-sm: 10px;                 /* Small */
    --navspace-base: 15px;               /* Base */
    --navspace-md: 20px;                 /* Medium */
    --navspace-lg: 30px;                 /* Large */
    --navspace-xl: 40px;                 /* Extra large */
	
    
    /* === BORDER RADIUS === */
    --radius-sm: 4px;                   /* Small radius */
    --radius-base: 8px;                 /* Base radius */
    --radius-lg: 12px;                  /* Large radius */
    --radius-full: 50%;                 /* Cercle complet */
    
    /* === TRANSITIONS === */
    --transition-fast: 0.3s ease;       /* Transition rapide */
    --transition-slow: 1.5s ease-in-out; /* Transition lente */
    
    /* === BREAKPOINTS (pour référence) === */
    --breakpoint-tablet: 1023px;
    --breakpoint-tablet-sm: 768px;
    --breakpoint-mobile: 480px;
}

/* ===================================================================
   RESET & BASE STYLES
   =================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
}

html {
	font-size: 16px;
}

/* ===================================================================
   SCROLLBAR CUSTOMIZATION
   =================================================================== */
::-webkit-scrollbar { 
    width: var(--radius-sm); 
}

::-webkit-scrollbar-track { 
    background: var(--color-black); 
}

::-webkit-scrollbar-thumb { 
    background: var(--color-primary); 
    border-radius: var(--radius-sm); 
}

.gxs-space-t40 {
	margin-top: 40px;
}
.gxs-space-t10 {
	margin-top: 10px;
}

.gxs-space-t20 {
	margin-top: 20px;
}

.gxs-space-t10 {
	margin-top: 10px;
}

.gxs-space-t5 {
	margin-top: 5px;
}

/* ===================================================================
   SIDEBAR - DESKTOP ONLY (≥1024px)
   =================================================================== */
.gxs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--color-dark-grey);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
}

.gxs-burger-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-height);
    background-color: var(--color-black);
    margin-top: calc(-1 * var(--spacing-md));
}

.gxs-burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-base);
    z-index: 1001;
}

.gxs-burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: var(--spacing-xs) 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.gxs-burger-menu.gxs-active .gxs-burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.gxs-burger-menu.gxs-active .gxs-burger-line:nth-child(2) {
    opacity: 0;
}

.gxs-burger-menu.gxs-active .gxs-burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.gxs-social-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-base);
    align-items: center;
}

.gxs-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    border-radius: var(--radius-base);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.gxs-social-btn:hover {
    background-color: var(--color-primary);
}

/* ===================================================================
   NAVIGATION MENU - SLIDE FROM RIGHT WITH DYNAMIC HEIGHT
   =================================================================== */
.gxs-nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: calc(100% - var(--sidebar-width));
    height: calc(100vh - var(--header-height));
    background-color: var(--color-dark-grey);
    z-index: 999;
    transition: right var(--transition-fast), height var(--transition-fast);
    padding-top: 5%;
    margin-left: var(--sidebar-width);
}

.gxs-nav-menu.gxs-active {
    right: 0;
}

/* Menu réduit quand le player est actif */
.gxs-nav-menu.gxs-player-active {
    height: calc(100vh - var(--header-height) - var(--player-height));
}

/* Menu mobile réduit quand le player est actif */
.gxs-nav-menu.gxs-player-active-mobile {
    height: calc(100vh - var(--header-height) - var(--player-height-mobile) - var(--mobile-social-height));
}

.gxs-nav-list {
    list-style: none;
    padding: 0 var(--navspace-md);
    text-align: center;
}

.gxs-nav-list li {
    margin: 0 0;
}

.gxs-nav-link {
    color: var(--color-light-grey);
    text-decoration: none;
	text-transform: uppercase;
    font-size: var(--nav-font-desktop);
    font-weight: 500;
    display: block;
    padding: var(--navspace-base) var(--navspace-md);
    border-radius: var(--radius-base);
    transition: all var(--transition-fast);
}

.gxs-nav-link:hover {
    color: var(--color-white);
}

/* Lien de navigation actif */
.gxs-nav-link.gxs-active {
    color: var(--color-white);
    font-weight: 600;
}

/* Version mobile déjà présente */
@media (max-width: 1023px) {
    .gxs-nav-link.gxs-active {
        border-bottom: none;
    }
}

/* ===================================================================
   HEADER - CENTERED IN 1200PX MAX-WIDTH
   =================================================================== */
.gxs-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background-color: var(--color-primary);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-lg);
}

.gxs-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max-width);
}

.gxs-logo {
    width: 115px;
    height: auto;
    object-fit: contain;
	padding: 4px 0 0 0;
}

.gxs-live-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
}

.gxs-live-text {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-white);
}

.gxs-play-btn {
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

/* ===================================================================
   MOBILE BURGER BUTTON - 80x80px BLACK BACKGROUND
   =================================================================== */
.gxs-mobile-burger-container {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: var(--header-height);
    background-color: var(--color-black);
    border-radius: 0;
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

/* ===================================================================
   MAIN CONTENT - CENTERED IN 1200PX MAX-WIDTH
   =================================================================== */
.gxs-main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    /* min-height: calc(100vh - var(--header-height)); */
    padding: var(--spacing-xl);
    display: flex;
    justify-content: center;
}

.gxs-main-inner {
    width: 100%;
    max-width: var(--container-max-width);
}

/* ===================================================================
   AUDIO PLAYER - CENTERED IN 1200PX MAX-WIDTH
   =================================================================== */
.gxs-audio-player {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--player-height);
    background: linear-gradient(135deg, var(--color-dark-grey) 0%, var(--color-medium-grey) 100%);
    border-top: 0.154rem solid var(--color-primary);
    z-index: 997;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.gxs-audio-player.gxs-active {
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

.gxs-audio-player.gxs-closing {
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.gxs-player-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

.gxs-player-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max-width);
}

.gxs-player-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.gxs-album-art {
    width: var(--sidebar-width);
    height: var(--sidebar-width);
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.gxs-track-info {
    flex: 1;
    min-width: 0;
}

.gxs-track-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gxs-track-artist {
    font-size: var(--font-size-base);
    color: var(--color-light-grey);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gxs-track-year {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.gxs-scrolling-text-container {
    flex: 1;
    max-width: 300px;
    overflow: hidden;
    margin: 0 var(--spacing-base);
}

.gxs-scrolling-text {
    color: var(--color-light-grey);
    font-size: var(--font-size-base);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.gxs-player-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
}

.gxs-player-btn {
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.gxs-player-btn:hover {
    transform: scale(1.1);
}

.gxs-player-close-btn {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: var(--radius-base);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.gxs-player-close-btn:hover {
    opacity: 1;
}

/* ===================================================================
   MOBILE SOCIAL BAR
   =================================================================== */
.gxs-mobile-social {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-social-height);
    background-color: var(--color-dark-grey);
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    z-index: 1000;
}

/* ===================================================================
   OVERLAY FOR MENU
   =================================================================== */
.gxs-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.gxs-overlay.gxs-active {
    opacity: 1;
    visibility: visible;
}

@media(min-width: 1023px) {
	.gxs-nav-link {
		padding: 1% 0;
	}
	
}

/* ===================================================================
   FORCE LE SCROLLINTOVIEW A PRENDRE EN CHARGE LE HEARDER
   =================================================================== */
.gxs-main-content {
  scroll-margin-top: var(--header-height);
}




/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Tablets and Small Desktops (≤1023px) */
@media (max-width: 1023px) {
	.gxs-logo { 
        width: 110px; 
        height: auto; 
		margin-left: 90px;
    }
	
    .gxs-sidebar { 
        display: none; 
    }
    
    .gxs-mobile-burger-container {
        display: flex;
    }

    .gxs-header {
        left: 0;
        padding: 0 var(--spacing-md);
    }

    .gxs-main-content {
        margin-left: 0;
        padding: var(--spacing-md);
        padding-bottom: 140px;
    }

    .gxs-audio-player {
        left: 0;
        bottom: var(--mobile-social-height);
        height: var(--player-height-mobile);
    }

    .gxs-mobile-social { 
        display: flex; 
    }
    
    .gxs-nav-menu.gxs-active {
        left: -80px;
		min-width: 100%;
		padding-top: 20px;
    }
    
    .gxs-nav-link {
        font-size: var(--nav-font-tablet);
        padding: var(--spacing-lg) 25px;
    }
	
}

/* Medium Tablets (≤768px) */
@media (min-width:320px) and (max-width: 767px) {
    .gxs-live-text { 
        display: none; 
    }
    
    .gxs-logo { 
        width: 110px; 
        height: auto; 
		margin-left: 0;
    }
    
    .gxs-main-content {
        padding: var(--spacing-base);
        padding-bottom: 120px;
    }
    
    .gxs-player-content {
        padding: 0 var(--spacing-base);
    }
    
    .gxs-scrolling-text-container {
        display: none;
    }
    
    .gxs-track-info {
        flex: 2;
    }
    
    .gxs-track-title {
        font-size: var(--font-size-md);
    }
    
    .gxs-track-artist {
        font-size: 13px;
    }
    
    .gxs-nav-link {
        font-size: var(--nav-font-tablet-sm);
        padding: 3% 0;
    }
	
	.gxs-nav-menu {
	   padding-top: 40px;
	   overflow: scroll;
	
    }	
	
	.gxs-nav-list li  {
		margin-bottom: 0;
	}
	
	.gxs-nav-menu.gxs-active {
		left: -80px;
		min-width: 100%;
	}
}

@media (min-width:480px) and (max-width: 768px){
	.gxs-logo { 
        width: 110px; 
        height: auto; 
	    margin-left: 90px;
	}  
}

/* Mobile Devices (≤480px) */
@media (max-width: 480px) {
    .gxs-header-content {
        padding-left: 80px;
    }
       
    .gxs-play-btn {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-md);
    }
    
    .gxs-mobile-social {
        height: 55px;
    }

    .gxs-main-content {
        padding: var(--spacing-sm);
        padding-bottom: 110px;
    }
    
    .gxs-scrolling-text-container {
        display: none;
    }
    
    .gxs-player-info {
        gap: var(--spacing-base);
    }
    
    .gxs-album-art {
        width: 60px;
        height: 60px;
    }
    
    .gxs-track-info {
        flex: 3;
        margin-right: var(--spacing-sm);
    }
    
    .gxs-track-title {
        font-size: var(--spacing-base);
        margin-bottom: 3px;
    }
    
    .gxs-track-artist {
        font-size: var(--font-size-sm);
    }
    
    .gxs-track-year {
        font-size: var(--font-size-xs);
    }
    
    .gxs-player-controls {
        gap: var(--spacing-sm);
    }
    
    .gxs-player-btn {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-md);
    }
    
    .gxs-nav-link {
        font-size: var(--nav-font-mobile);
        padding: var(--font-size-base) var(--spacing-md);
    }
    
    .gxs-nav-list li {
        margin-bottom: var(--spacing-base);
    }
}