/**
 * RK Campaign Countdown 2.0 - Frontend Styles
 * (Based on v1 style.css)
 */

:root {
  --rk-primary: #bf0000;
  --rk-live: #00a870;
  --rk-soon: #ffb300;
  --rk-normal: #e8e8e8;
  --rk-text: #333;
  --rk-text-muted: #666;
  --rk-bg: #fff;
  --rk-bg-header: #9E8038;
  --rk-border: #e6e6e6;
  --rk-border-strong: #bbb;
  --rk-shadow: rgba(0, 0, 0, 0.05);
  --rk-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
}

/* === Container === */
.rk-cd {
  max-width: 920px;
  margin: 20px auto;
  border: 2px solid #a88c4a;
  border-radius: 14px;
  background: var(--rk-bg);
  overflow: hidden;
  font-family: var(--rk-font-family);
  box-shadow: 0 2px 8px var(--rk-shadow);
}

/* === Header === */
.rk-cd__head {
  padding: 0;
  text-align: center;
}

.rk-cd .rk-cd__head>.rk-cd__title {
  all: unset;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  background: var(--rk-bg-header) !important;
  font-family: var(--rk-font-family) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.rk-cd__message {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--rk-bg-header);
  line-height: 1.4;
  border-bottom: 1px solid var(--rk-border);
}

/* === Card Grid === */
.rk-cd__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px;
  background: #fff;
}

.rk-cd__section-title {
  margin: 10px 0 0;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 800;
  color: #333;
  text-align: left;
  border-left: 4px solid var(--rk-bg-header);
}

/* === Card Item === */
.rk-cd__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--rk-border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  overflow: hidden;
}

.rk-cd__card.rk-is-live {
  border: 2px solid var(--rk-live);
  box-shadow: 0 0 10px rgba(0, 168, 112, 0.2);
}

.rk-cd__card-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.rk-cd__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--rk-text);
  margin: 0;
  flex: 1;
}

.rk-cd__status {
  font-size: 14px;
  font-weight: 700;
  color: var(--rk-text-muted);
}

.rk-cd__card.rk-is-live .rk-cd__status {
  color: var(--rk-live);
}

.rk-cd__countdown-timer {
    font-size: 13px;
    font-weight: bold;
    color: #e11d48;
}

.rk-cd__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  background: #bf0000;
  border-radius: 50px;
  text-decoration: none !important;
  white-space: nowrap;
}

/* === V6 Banner Styles === */
.rk-v6-banner {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 10px;
}

.rk-v6-badge {
    width: 90px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 900;
    font-size: 13px;
    color: #fff;
}

.rk-v6-badge.sum { background: #000; color: #ffd700; border: 1px solid #ffd700; }
.rk-v6-badge.ultimate { background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%); }
.rk-v6-badge.prime { background: #cbd5e1; color: #1e293b; }
.rk-v6-badge.smart { background: #3b82f6; }

.rk-v6-info { flex: 1; margin-left: 15px; }
.rk-v6-desc { font-weight: 800; font-size: 14px; }
.rk-v6-stars { color: #f59e0b; font-size: 13px; }

.rk-v6-mult-container { text-align: right; }
.rk-v6-mult { font-size: 28px; font-weight: 900; color: #e11d48; }

/* === Simulator Controls === */
.rk-cd2-simulator-controls {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px;
}

.rk-cd2-sim-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rk-cd2-sim-field { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: bold; }
.rk-cd2-sim-field select { padding: 4px; border-radius: 4px; border: 1px solid #ddd; }
