/*
Theme Name: Revolution 1.0
Theme URI: https://radiotelearadadhaiti.com/
Author: JBB Dubic
Description: Custom lightweight news + radio theme with persistent player, widget areas, and Customizer controls.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revolution
Tags: news, blog, custom-background, custom-logo, custom-menu, responsive-layout
*/

/* ============================
   VARIABLES – RADIO SUD FM
   ============================ */

:root{
  /* Orange – Blanc – Noir */
  --c1: #e67e00;   /* orange */
  --c2: #ffffff;   /* blanc  */
  --c3: #000000;   /* noir   */

  --stop1: 30%;
  --stop2: 60%;
  --stop3: 100%;

  /* Header bar (oranjem fonse) */
  --header-overlay: #d96f00;
}

/* ============================
   GLOBAL
   ============================ */

html, body{ height:100%; }

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#ffffff;
}

/* Background trikolò a */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:linear-gradient(
    to right,
    var(--c1) var(--stop1),
    var(--c2) var(--stop2),
    var(--c3) var(--stop3)
  );
  background-size:cover;
  background-repeat:no-repeat;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

img{ max-width:100%; height:auto; display:block; }

.ra-container{
  width:min(1200px, calc(100% - 24px));
  margin:0 auto;
}

/* ============================
   HEADER STICKY
   ============================ */

#site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:var(--header-overlay);
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.ra-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}

.ra-brand{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  column-gap:12px;
  min-width:260px;
}

.ra-logo img{
  width:auto;
  height:72px;
}

/* — Brand text (titre + slogan) byen santre — */
.ra-brand-text{
  min-width:0;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.ra-title,
.ra-title a{
  margin:0;
  font-size:26px;
  font-weight:900;
  line-height:1.1;
  text-decoration:none;
  text-shadow:0 2px 4px rgba(0,0,0,.75);
  text-align:center;
  display:block;
  width:100%;
}

/* Slogan “Le prolongement de la bonne école” */
.ra-slogan{
  margin-top:6px;
  display:inline-block;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
  font-size:13px;
  letter-spacing:.3px;
  text-shadow:0 2px 4px rgba(0,0,0,.85);
  text-align:center;
}

/* Header right: meni + rezo sosyal */
.ra-header-right{
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:flex-end;
}

/* Meni prensipal */
.ra-nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.ra-nav a{
  display:inline-block;
  padding:8px 10px;
  border-radius:999px;
  font-weight:800;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.12);
  text-shadow:0 2px 4px rgba(0,0,0,.65);
}
.ra-nav a:hover{
  background:rgba(0,0,0,.28);
}

/* Burger pou mobil */
.ra-burger{
  display:none;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
}
.ra-mobile-nav{
  display:none;
  padding-bottom:10px;
}
.ra-mobile-nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ra-mobile-nav a{
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.14);
}

/* ============================
   SOCIAL ICONS (HEADER)
   ============================ */

.ra-social{
  display:flex;
  gap:10px;
  align-items:center;
}

.ra-social-link{
  width:40px;
  height:40px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:12px;
  text-decoration:none;
  font-size:15px;
  color:#ffffff;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.22);
}

/* Koulè ofisyèl yo */
.ra-social-fb{ background:#1877F2; }
.ra-social-x{ background:#000000; }
.ra-social-ig{
  background:radial-gradient(circle at 30% 30%,
    #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.ra-social-yt{ background:#FF0000; }

/* Si gen widget “header-right” ak lòt ikon, kache yo pou pa double */
.ra-header-widget{
  display:none;
}

/* ============================
   PLAYER TINILY – RADIO SUD FM
   ============================ */

.tinily-scc-player{
  border:4px solid #000000;
  background:#e88716;
  border-radius:18px;
  padding:12px 14px 10px;
  margin:10px 0 10px;
  box-shadow:0 18px 40px rgba(0,0,0,.30);
  color:#fff;
  overflow:hidden;
  transform:scale(.90);
  transform-origin:top center;
  position:relative;
}

.tinily-top{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.tinily-brand .tinily-name{
  font-size:18px;
  font-weight:900;
  letter-spacing:.4px;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}
.tinily-brand .tinily-name span{ color:#FFD400; }
.tinily-brand .tinily-tag{
  font-size:12px;
  opacity:.95;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}

.tinily-marquee{
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:10px 14px;
  overflow:hidden;
}
.tinily-marquee-track{
  display:inline-flex;
  gap:42px;
  white-space:nowrap;
  will-change:transform;
  animation:tinilyScroll 12s linear infinite;
}
.tinily-marquee-track span{
  font-weight:800;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}
@keyframes tinilyScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

.tinily-main{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.tinily-controls{
  display:flex;
  gap:12px;
  align-items:center;
}
.tinily-btn{
  border:0;
  border-radius:16px;
  padding:14px 18px;
  font-size:18px;
  font-weight:1000;
  letter-spacing:.6px;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.25);
  text-shadow:0 2px 6px rgba(0,0,0,.45);
  min-width:160px;
}
.tinily-play{ background:#13d147; color:#06210d; }
.tinily-stop{ background:#ff2323; color:#fff; }

.tinily-meter{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}
.tinily-led{
  width:14px;
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.25);
}
.tinily-led[data-state="ready"]{ background:#FFD400; }
.tinily-led[data-state="playing"]{ background:#14ff66; }
.tinily-led[data-state="stopped"]{ background:#ff3b3b; }
.tinily-led[data-state="error"]{ background:#ff00ff; }
.tinily-status{
  font-weight:800;
  opacity:.95;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}

/* Retire 3-Band EQ a (nou pa bezwen li) */
.tinily-eq,
.tinily-eq-col,
.tinily-eq-row{
  display:none !important;
}

/* Blòk volim */
.tinily-bottom{
  margin-top:6px;
  display:block;
}
.tinily-vol-col{
  max-width:360px;
  margin-left:auto;
}
.tinily-volume{
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  padding:10px 12px;
}
.tinily-vol-title{
  font-weight:1000;
  margin-bottom:8px;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}
.tinily-vol-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.tinily-vol-btn{
  width:44px;
  height:44px;
  border-radius:12px;
  border:0;
  font-size:24px;
  font-weight:1000;
  cursor:pointer;
  background:rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}
.tinily-vol-read{
  margin-top:8px;
  font-weight:1000;
}
.tinily-scc-player input[type="range"]{
  width:100%;
  accent-color:#FFD400;
}

/* Mete volim lan tou pre “Ready (Press Play)” sou gwo ekran */
@media (min-width:900px){
  .tinily-volume{
    position:absolute;
    right:24px;
    top:72px;
    width:260px;
  }
}

/* ============================
   TICKER / NEWS BAR
   ============================ */

.ra-ticker{
  margin:10px 0 16px;
  background:rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  overflow:hidden;
}
.ra-ticker-inner{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 12px;
}
.ra-ticker-label{
  font-weight:1000;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  padding:6px 10px;
  border-radius:999px;
}
.ra-ticker-track{
  white-space:nowrap;
  overflow:hidden;
  flex:1;
}
.ra-ticker-move{
  display:inline-flex;
  gap:26px;
  animation:raTicker 18s linear infinite;
}
.ra-ticker:hover .ra-ticker-move{
  animation-play-state:paused;
}
.ra-ticker a{
  text-decoration:none;
  font-weight:800;
}
@keyframes raTicker{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ============================
   CONTENT / CARDS
   ============================ */

#content{
  padding:12px 0 40px;
}

.ra-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
}

.ra-card{
  background:rgba(0,0,0,.26);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 16px 34px rgba(0,0,0,.22);
}

.ra-card-body{
  padding:14px;
}

.ra-post{
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.ra-post:last-child{
  border-bottom:0;
}
.ra-post-title{
  font-weight:1000;
  text-decoration:none;
}
.ra-excerpt{
  opacity:.95;
  text-shadow:0 2px 4px rgba(0,0,0,.55);
}

.ra-featured img{
  width:100%;
}

/* ============================
   FOOTER — SOU YON SEL LIY
   ============================ */

#site-footer{
  padding:18px 0 30px;
  background:rgba(0,0,0,.28);
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
}

#site-footer .ra-foot{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
}

#site-footer small{
  display:inline-block;
  white-space:nowrap;
  opacity:.95;
  letter-spacing:.3px;
}

/* Si dezyèm small egziste, kache li epi ajoute ane a sou premye a */
#site-footer .ra-foot small + small{
  display:none;
}
#site-footer .ra-foot small:first-of-type::after{
  content:" — 2025";
}

#site-footer br{
  display:none;
}

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

@media (max-width:900px){
  .ra-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  .ra-logo img{ height:58px; }
  .ra-title,
  .ra-title a{ font-size:20px; }
  .ra-slogan{ font-size:12px; }

  .ra-burger{ display:inline-block; }
  .ra-nav{ display:none; }
  .ra-mobile-nav{ display:block; }

  .tinily-top{ grid-template-columns:1fr; }
  .tinily-main{
    flex-direction:column;
    align-items:stretch;
  }
  .tinily-controls{ justify-content:center; }
  .tinily-meter{ justify-content:center; }

  .ra-header-right{
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}

/* Loading cursor */
html.ra-loading{ cursor:progress; }
body.single-post,
body.blog,
body.archive{
  overflow-x: hidden;
}
/* ===== ANTI-SCROLL LATERAL – RADIO SUD FM ===== */

/* Pa kite paj la pran scroll adwat/agoch sou mobil ni sou PC */
html,
body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none; /* evite “bounce” lateral */
  touch-action: pan-y;         /* sèlman scroll vètikal */
}

/* Asire okenn blòk pa depase lajè ekran an */
.ra-container,
#content,
#page,
.ra-grid,
.tinily-scc-player{
  max-width: 100%;
  overflow-x: hidden;
}

/* Sou mobil, volim lan pa dwe pouse layout la */
@media (max-width: 900px){
  .tinily-volume{
    position: static;
    width: 100%;
    right: auto;
    top: auto;
  }
}
/* === PATCH ANDROID – BLOKE SCROLL ADWAT/AGOCH SOU TI EKRAN YO === */

@media (max-width: 900px){

  html,
  body{
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  /* Tout gwo blòk yo pa dwe depase ekran an */
  #content,
  .ra-container,
  .ra-grid,
  .ra-card,
  .ra-post,
  .tinily-scc-player{
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Si gen ti margin negatif ki ta pouse kontni an */
  .ra-container,
  #content{
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
