/* notification-settings.css: Push通知設定ページ専用 */

.notificationHero .settingsHeroCopy{
  padding-bottom:126px;
}

.settingsPageShell{
  width:min(100%, 1080px);
}

.settingsMessage{
  margin:0 0 16px;
  padding:14px 18px;
  border:1px solid #b7e2c5;
  border-radius:14px;
  background:#f1fff5;
  color:#145c2c;
  font-weight:850;
  box-shadow:var(--softShadow);
}

.settingsMessage.error{
  border-color:#efb8b8;
  background:#fff5f5;
  color:#a51d2d;
}

.settingsCard{
  padding:0;
  overflow:hidden;
}

.settingsSection{
  padding:28px 30px;
  border-bottom:1px solid var(--line);
}

.settingsSection:last-of-type{
  border-bottom:0;
}

.sectionHeading{
  margin:0 0 20px;
}

.sectionHeading h2{
  margin:0 0 7px;
  font-size:24px;
  line-height:1.4;
}

.sectionHeading p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
}

.primaryCheck,
.secondaryCheck{
  display:flex;
  align-items:flex-start;
  gap:13px;
  cursor:pointer;
}

.primaryCheck input,
.secondaryCheck input,
.optionCheck input,
.radioRow input{
  accent-color:var(--accent);
}

.primaryCheck input{
  flex:0 0 auto;
  width:22px;
  height:22px;
  margin:3px 0 0;
}

.primaryCheckText,
.secondaryCheck span{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.primaryCheck strong{
  color:#111827;
  font-size:18px;
  line-height:1.5;
}

.primaryCheck small,
.secondaryCheck small{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.optionGroup{
  margin-top:22px;
}

.optionGroup h3{
  margin:0 0 12px;
  font-size:17px;
}

.optionGrid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:9px;
}

.compactGrid{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.optionCheck{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:#263043;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  cursor:pointer;
  transition:.15s ease;
}

.optionCheck:hover{
  border-color:#cfc3ff;
  background:#faf9ff;
}

.optionCheck:has(input:checked){
  border-color:#b7a8ff;
  background:#f5f2ff;
  box-shadow:0 5px 14px rgba(91,78,255,.08);
}

.optionCheck input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:0;
}

.frequencyCheck{
  margin-top:24px;
  padding:16px;
  border:1px solid #ded7ff;
  border-radius:14px;
  background:#faf9ff;
}

.frequencyCheck input{
  width:20px;
  height:20px;
  margin:2px 0 0;
}

.frequencyCheck strong{
  font-size:16px;
}

.radioRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  margin-bottom:18px;
}

.radioRow label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  cursor:pointer;
  font-weight:750;
}

.radioRow input{
  width:18px;
  height:18px;
  margin:0;
}

.timeControls{
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f9fbff;
  transition:.15s ease;
}

.timeControls.disabled{
  opacity:.48;
}

.timeSelectRow{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  color:#263043;
  font-weight:800;
}

.timeSelectRow select{
  min-width:128px;
  height:44px;
  padding:8px 34px 8px 12px;
  border:1px solid #cfd7e6;
  border-radius:12px;
  background:#fff;
  color:#111827;
  font-size:16px;
  font-weight:750;
  outline:none;
}

.timeSelectRow select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(124,77,255,.14);
}

.timeHelp{
  margin:12px 0 0 !important;
  color:var(--muted) !important;
  font-size:13px;
  line-height:1.7 !important;
}

.settingsActions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding:24px 30px 30px;
  border-top:1px solid var(--line);
  background:#fbfcff;
}

.saveButton,
.cancelButton{
  min-width:160px;
  min-height:48px;
  padding:10px 18px;
  border-radius:13px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  transition:.15s ease;
}

.saveButton{
  border:0;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;
  box-shadow:0 10px 24px rgba(91,78,255,.22);
}

.cancelButton{
  border:1px solid var(--line);
  background:#fff;
  color:#263043;
  box-shadow:var(--softShadow);
}

.saveButton:hover,
.cancelButton:hover{
  transform:translateY(-1px);
}

.saveButton:disabled,
.cancelButton:disabled{
  opacity:.55;
  cursor:default;
  transform:none;
}

@media (max-width:900px){
  .optionGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .compactGrid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:700px){
  .notificationHero .settingsHeroCopy{
    padding-bottom:108px;
  }

  .settingsCard{
    border-radius:16px;
  }

  .settingsSection{
    padding:22px 18px;
  }

  .sectionHeading h2{
    font-size:21px;
  }

  .primaryCheck strong{
    font-size:16px;
  }

  .optionGrid,
  .compactGrid{
    grid-template-columns:1fr;
  }

  .optionCheck{
    min-height:46px;
    font-size:15px;
  }

  .timeSelectRow{
    display:grid;
    grid-template-columns:1fr auto;
  }

  .timeSelectRow select{
    width:100%;
    min-width:0;
  }

  .settingsActions{
    display:flex;
    flex-direction:column;
    padding:20px 18px 24px;
  }

  .saveButton,
  .cancelButton{
    width:100%;
    min-width:0;
  }
}


/* =========================================================
 * New-song notification master switch / bulk selection
 * ========================================================= */

.songNotificationToggle{
  margin-bottom:4px;
}

.songNotificationOptions{
  transition:opacity .15s ease;
}

.songNotificationOptions.disabled{
  opacity:.56;
}

.songNotificationOptions.disabled .optionCheck,
.songNotificationOptions.disabled .frequencyCheck{
  cursor:default;
}

.songNotificationOptions.disabled .optionCheck:hover{
  border-color:var(--line);
  background:#fff;
}

.optionGroupHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}

.optionGroupHeader h3{
  margin:0;
}

.optionGroupActions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.optionActionButton{
  min-height:34px;
  padding:6px 11px;
  border:1px solid #cfc3ff;
  border-radius:10px;
  background:#f7f4ff;
  color:#5536d7;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
  transition:.15s ease;
}

.optionActionButton.secondary{
  border-color:var(--line);
  background:#fff;
  color:#4b5565;
}

.optionActionButton:hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:0 5px 12px rgba(21,33,64,.10);
}

.optionActionButton:disabled{
  opacity:.48;
  cursor:default;
  transform:none;
  box-shadow:none;
}

.optionCheck:has(input:disabled){
  color:#8b93a1;
  background:#f7f8fa;
  border-color:#e6e9ee;
  box-shadow:none;
}

.frequencyCheck:has(input:disabled){
  color:#8b93a1;
  background:#f7f8fa;
  border-color:#e6e9ee;
}

.frequencyCheck:has(input:disabled) small{
  color:#989fac;
}

@media (max-width:700px){
  .optionGroupHeader{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }

  .optionGroupActions{
    width:100%;
  }

  .optionActionButton{
    flex:1 1 0;
    min-height:40px;
  }
}
