/* =========================================================
   Frontend Base CSS
   Multi Radio Station
   ========================================================= */

/* ------------------------------
   Reset
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------
   Root Variables
------------------------------ */
:root {
  --bg: #f6f9fd;
  --bg-soft: #eef4fb;
  --bg-muted: #eaf1f8;

  --panel: #ffffff;
  --panel-2: #f8fbff;
  --panel-3: #f2f7fd;

  --border: #dbe5f0;
  --border-strong: #c9d7e6;

  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;

  --white: #ffffff;
  --black: #000000;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.05);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10);

  --container: 1280px;
  --transition: 0.25s ease;
}

/* ------------------------------
   Base Typography / Body
------------------------------ */
body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 25%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.05), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  color: var(--text);
}

html,
body {
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  color: var(--text-soft);
}

small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

strong {
  color: var(--text);
  font-weight: 700;
}

/* ------------------------------
   Layout
------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 96px 0;
}

/* ------------------------------
   Cards / Panels
------------------------------ */
.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.surface-soft {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ------------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-light:hover {
  background: var(--panel-2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid #bfd6ff;
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-block {
  width: 100%;
}

/* ------------------------------
   Forms
------------------------------ */
label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* ------------------------------
   Tables
------------------------------ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

td {
  color: var(--text-soft);
}

/* ------------------------------
   Alerts
------------------------------ */
.alert {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.alert-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

/* ------------------------------
   Utility
------------------------------ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.w-100 {
  width: 100%;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

.gap-24 {
  gap: 24px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.hidden {
  display: none !important;
}

/* ------------------------------
   Section Helpers
------------------------------ */
.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  font-size: 1rem;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 991px) {
  .section {
    padding: 60px 0;
  }

  .section-lg {
    padding: 76px 0;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding: 48px 0;
  }

  .section-lg {
    padding: 64px 0;
  }

  th,
  td {
    padding: 12px 10px;
  }

  .btn {
    min-height: 44px;
  }
}
