/*
Theme Name: RDH App
Theme URI: https://app.radiodigitalehonfleur.fr
Author: Radio Digitale Honfleur
Description: Thème sur mesure pour lapplication PWA Radio Digitale Honfleur.
Version: 1.2
Text Domain: rdh-app
*/

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f3f6fb;
  font-family: Arial, Helvetica, sans-serif;
  color: #10235a;
}

body {
  min-height: 100vh;
  padding-bottom: 92px;
}

.rdh-app {
  width: 100%;
  max-width: 700px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px 42px;
}

.rdh-header {
  padding: 18px 6px 28px;
}

.rdh-brand {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  color: #10235a;
}

.rdh-subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: #6a789d;
}

.rdh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rdh-card {
  min-height: 155px;
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  color: #10235a;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(16, 35, 90, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rdh-card:hover {
  box-shadow: 0 14px 34px rgba(16, 35, 90, 0.11);
}

.rdh-card:active {
  transform: scale(0.98);
}

.rdh-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #edf2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdh-icon-warm {
  background: #fff0dc;
}

.rdh-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: #10235a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rdh-icon-warm svg {
  stroke: #e88a1a;
}

/* BARRE DE NAVIGATION */

.rdh-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  height: 78px;
  padding: 8px 10px 10px;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(16,35,90,0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 9999;
  box-shadow: 0 -8px 30px rgba(16,35,90,0.08);
}

.rdh-nav-item {
  color: #7a86a7;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

.rdh-nav-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rdh-nav-item.active {
  color: #10235a;
}

@media (max-width: 480px) {

  body {
    padding-bottom: 86px;
  }

  .rdh-app {
    padding: 20px 14px 32px;
  }

  .rdh-header {
    padding: 16px 4px 22px;
  }

  .rdh-brand {
    font-size: 27px;
  }

  .rdh-subtitle {
    font-size: 14px;
  }

  .rdh-grid {
    gap: 12px;
  }

  .rdh-card {
    min-height: 138px;
    padding: 18px;
    border-radius: 22px;
    font-size: 18px;
  }

  .rdh-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .rdh-icon svg {
    width: 25px;
    height: 25px;
  }

  .rdh-bottom-nav {
    height: 74px;
  }

}

@media (min-width: 700px) {

  .rdh-app {
    padding-top: 48px;
  }

  .rdh-card {
    min-height: 170px;
  }

}

.rdh-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px 26px;
}

.rdh-back {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16,35,90,0.07);
}

.rdh-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #10235a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rdh-page-title {
  font-size: 28px;
  font-weight: 800;
  color: #10235a;
}

.rdh-radio-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rdh-radio-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 64px 1fr 54px;
  gap: 14px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(16,35,90,0.07);
}

.rdh-radio-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #edf2ff;
  color: #10235a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.rdh-radio-logo-warm {
  background: #fff0dc;
  color: #d17a17;
}

.rdh-radio-name {
  font-size: 17px;
  font-weight: 700;
  color: #10235a;
}

.rdh-radio-meta {
  margin-top: 5px;
  font-size: 13px;
  color: #7a86a7;
}

.rdh-play {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #10235a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rdh-play svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  stroke: none;
  margin-left: 2px;
}

/* CORRECTION CARTES RADIOS */

.rdh-radio-card {
  grid-template-columns: 72px minmax(0, 1fr) 54px !important;
  min-height: 96px !important;
  padding: 14px !important;
}

.rdh-radio-art {
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}

.rdh-radio-info {
  min-width: 0;
}

.rdh-radio-name {
  font-size: 17px !important;
  line-height: 1.2;
}

.rdh-radio-meta {
  font-size: 13px !important;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .rdh-radio-card {
    grid-template-columns: 60px minmax(0, 1fr) 48px !important;
    min-height: 84px !important;
    padding: 12px !important;
  }

  .rdh-radio-art {
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px !important;
  }

  .rdh-radio-name {
    font-size: 15px !important;
  }

  .rdh-radio-meta {
    font-size: 12px !important;
  }

  .rdh-play {
    width: 46px !important;
    height: 46px !important;
  }
}
