
/* === reset === */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

/* === base === */
body {
font-family: -apple-system, BlinkMacSystemFont, 
    'Segoe UI', sans-serif;
font-size: 16px;
line-height: 1.6;
color: #1a1a1a;
background: #f5f5f3;
min-height: 100vh;
}

/* === layout === */
.app-shell {
max-width: 480px;
margin: 0 auto;
min-height: 100vh;
background: #ffffff;
display: flex;
flex-direction: column;
}

/* === typography === */
h1 { font-size: 22px; font-weight: 500; }
h2 { font-size: 18px; font-weight: 500; }
h3 { font-size: 15px; font-weight: 500; }
p  { font-size: 14px; color: #666; }

/* === colors === */
:root {
--teal:        #1D9E75;
--teal-light:  #E1F5EE;
--teal-dark:   #0F6E56;
--purple:      #7F77DD;
--purple-light:#EEEDFE;
--purple-dark: #534AB7;
--amber:       #BA7517;
--amber-light: #FAEEDA;
--gray:        #888780;
--gray-light:  #F1EFE8;
--border:      rgba(0,0,0,0.1);
--text-main:   #1a1a1a;
--text-muted:  #666666;
--text-faint:  #999999;
--bg-main:     #ffffff;
--bg-surface:  #f5f5f3;
}

/* === buttons === */
.btn {
display: block;
width: 100%;
padding: 12px;
border: 1px solid var(--border);
border-radius: 10px;
background: transparent;
font-size: 14px;
font-weight: 500;
color: var(--text-main);
cursor: pointer;
text-align: center;
}

.btn-primary {
background: var(--teal);
border-color: var(--teal);
color: white;
}

.btn-primary:active {
background: var(--teal-dark);
}

/* === cards === */
.card {
background: var(--bg-main);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1rem 1.25rem;
}

/* === badges === */
.badge {
display: inline-block;
font-size: 11px;
font-weight: 500;
padding: 2px 8px;
border-radius: 6px;
}

.badge-french { 
background: var(--purple-light); 
color: var(--purple-dark); 
}
.badge-dev    { 
background: var(--amber-light);  
color: var(--amber); 
}
.badge-reset  { 
background: var(--teal-light);   
color: var(--teal-dark); 
}
.badge-free   { 
background: var(--gray-light);   
color: var(--gray); 
}

/* === utility === */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* === steps === */
.step-row {
display: flex;
gap: 12px;
align-items: flex-start;
margin-bottom: 16px;
}

.step-row:last-child {
margin-bottom: 0;
}

.step-num {
width: 26px;
height: 26px;
border-radius: 50%;
background: var(--teal-light);
color: var(--teal-dark);
font-size: 12px;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 2px;
}

/* === tab bar === */
.tab-bar {
display: flex;
gap: 4px;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
background: var(--bg-main);
position: sticky;
top: 0;
z-index: 10;
}

.tab {
flex: 1;
padding: 7px 4px;
font-size: 12px;
font-weight: 500;
border: 1px solid var(--border);
border-radius: 8px;
background: transparent;
color: var(--text-muted);
cursor: pointer;
}

.tab.active {
background: var(--teal-light);
border-color: var(--teal);
color: var(--teal-dark);
}

/* === tab content === */
.tab-content {
flex: 1;
overflow-y: auto;
}

.tab-panel {
padding: 1.25rem;
}

/* === progress === */
.progress-wrap {
margin-bottom: 1.25rem;
}

.progress-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
font-size: 13px;
}

.progress-bar {
height: 6px;
background: var(--gray-light);
border-radius: 99px;
overflow: hidden;
}

.progress-fill {
height: 100%;
width: 0%;
background: var(--teal);
border-radius: 99px;
transition: width 0.3s ease;
}

/* === block items === */
.block-item {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 0;
border-bottom: 1px solid var(--border);
}

.block-item:last-child {
border-bottom: none;
}

.check-circle {
width: 22px;
height: 22px;
border-radius: 50%;
border: 1.5px solid var(--border);
flex-shrink: 0;
margin-top: 2px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}

.check-circle.done {
background: var(--teal);
border-color: var(--teal);
}

.check-tick {
color: white;
font-size: 12px;
display: none;
}

.check-circle.done .check-tick {
display: block;
}

.block-info {
flex: 1;
}

.block-time {
font-size: 11px;
color: var(--text-faint);
margin-bottom: 2px;
}

.block-name {
font-size: 14px;
font-weight: 500;
color: var(--text-main);
margin-bottom: 4px;
}

.block-name.done {
color: var(--text-faint);
text-decoration: line-through;
}

.block-edit {
font-size: 12px;
color: var(--text-faint);
cursor: pointer;
padding: 2px 8px;
border: 1px solid var(--border);
border-radius: 6px;
background: transparent;
flex-shrink: 0;
margin-top: 2px;
}

/* === completed banner === */
.completed-banner {
background: var(--teal-light);
border: 1px solid var(--teal);
border-radius: 12px;
padding: 1rem 1.25rem;
text-align: center;
margin-top: 1.5rem;
}

.park-done {
font-size: 11px;
font-weight: 500;
color: var(--teal-dark);
cursor: pointer;
padding: 4px 10px;
border: 1px solid var(--teal);
border-radius: 99px;
background: var(--teal-light);
flex-shrink: 0;
margin-top: 2px;
transition: all 0.2s;
}

.park-done:hover {
background: var(--teal);
color: white;
}

.park-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.park-meta {
  font-size: 11px;
  color: var(--text-faint);
}

.park-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* === rules === */
.rule-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
  padding-top: 3px;
}

/* === streak === */
.streak-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 1.25rem;
}

.metric-card {
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.metric-val {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
}

.metric-lbl {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 6px;
}

.day-col {
  text-align: center;
}

.day-label {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 6px;
}

.day-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0 auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-faint);
  transition: all 0.2s;
}

.day-dot.done {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  font-weight: 500;
}

.day-dot.today {
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 500;
}

/* === tips === */
.tip-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.tip-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
}

.tip-duration {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
}

.tip-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 38px;
}