/* Project ATLAS - Site #13: Timer Pomodoro Online (Italian) */
:root {
  --bg-primary: #0b0f19;
  --bg-surface: #111827;
  --bg-card: #1f293d;
  --border-subtle: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --accent-pomodoro: #f43f5e;
  --accent-pomodoro-hover: #e11d48;
  --accent-break: #10b981;
  --accent-longbreak: #06b6d4;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--accent-pomodoro);
}

/* Tool Hero */
.tool-section {
  padding: 3rem 0;
  background: radial-gradient(circle at 50% 15%, rgba(244, 63, 94, 0.09) 0%, transparent 60%);
}

.tool-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.badge-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-pomodoro);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tool-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.tool-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Pomodoro Main Card */
.pomodoro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Mode Tabs */
.mode-tabs {
  display: inline-flex;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.35rem;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab-btn.active {
  background: var(--accent-pomodoro);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

.tab-btn.active.break-mode {
  background: var(--accent-break);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.tab-btn.active.longbreak-mode {
  background: var(--accent-longbreak);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

/* Timer Display */
.timer-display {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1;
  margin-bottom: 2rem;
  user-select: none;
}

@media (max-width: 480px) {
  .timer-display {
    font-size: 4.5rem;
  }
}

/* Control Buttons */
.controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-main {
  background: var(--accent-pomodoro);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.35);
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-main:hover {
  background: var(--accent-pomodoro-hover);
  transform: translateY(-2px);
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  color: #fff;
  border-color: #6b7280;
}

/* Pomodoro Counter Badge */
.pomodoro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
}

/* Tasks / Focus List */
.task-section {
  max-width: 680px;
  margin: 2.5rem auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.task-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.task-input {
  flex: 1;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.task-btn-add {
  background: var(--accent-pomodoro);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.task-list {
  list-style: none;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.task-item.completed {
  opacity: 0.6;
  text-decoration: line-through;
}

/* Editorial & Guides */
.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 3rem;
  margin-top: 4rem;
}

.editorial-card h2 {
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.editorial-card h3 {
  font-size: 1.35rem;
  color: var(--accent-pomodoro);
  margin: 2rem 0 0.75rem;
}

.editorial-card p, .editorial-card li {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.editorial-card ul, .editorial-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.feature-box h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3rem 0;
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-pomodoro);
}
