/* Printable Planner - WhisperPlan SEO Tools
   Modular CSS for printable planners and PDF templates
   ===================================================== */

/* Planner Preview Container */
.planner-preview {
  background: white;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* A4 Paper Preview */
.planner-paper {
  aspect-ratio: 1/1.414;
  padding: 1.5rem;
  background: white;
  position: relative;
}

.planner-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Planner Header */
.planner-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.planner-header h1,
.planner-header h2 {
  font-size: 1.5rem;
  color: #667eea;
  margin: 0 0 0.5rem;
}

.planner-header .planner-date {
  font-size: 0.9rem;
  color: #888;
}

/* Planner Sections */
.planner-section {
  margin-bottom: 1.5rem;
}

.planner-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f5f5f7;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.planner-section-header .section-icon {
  font-size: 1.1rem;
}

.planner-section-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

/* Checkbox List in Preview */
.planner-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.planner-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.planner-checklist li:last-child {
  border-bottom: none;
}

.planner-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #667eea;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.planner-checklist .item-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Lined Writing Area */
.planner-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.planner-line {
  height: 28px;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.planner-line:last-child {
  border-bottom: 2px solid #667eea;
}

/* Time Grid */
.planner-time-grid {
  display: grid;
  gap: 0;
}

.time-slot {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid #eee;
}

.time-slot:last-child {
  border-bottom: none;
}

.time-slot .slot-time {
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #888;
  background: #f9f9f9;
  border-right: 1px solid #eee;
}

.time-slot .slot-content {
  padding: 0.5rem;
  min-height: 40px;
}

/* Download Section */
.planner-download-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.planner-download-section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.planner-download-section p {
  color: #888;
  margin-bottom: 1.5rem;
}

/* Format Options */
.format-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.format-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
}

.format-option:hover {
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(102, 126, 234, 0.05);
}

.format-option.selected {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.format-option input[type="radio"] {
  display: none;
}

.format-option .format-icon {
  font-size: 2rem;
}

.format-option .format-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.format-option .format-desc {
  font-size: 0.75rem;
  color: #888;
}

/* Section Selection */
.section-selection {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-selection h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.section-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.section-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.section-option:hover {
  background: rgba(102, 126, 234, 0.05);
}

.section-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.section-option .section-icon {
  font-size: 1.25rem;
}

.section-option .section-info {
  flex: 1;
  text-align: left;
}

.section-option .section-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.section-option .section-desc {
  font-size: 0.75rem;
  color: #888;
}

/* ADHD Planner Specific */
.adhd-planner .planner-paper::before {
  background: linear-gradient(90deg, #ff9500 0%, #ffcc00 100%);
}

.adhd-planner .planner-section-header {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.15) 0%, rgba(255, 204, 0, 0.1) 100%);
}

.adhd-planner .planner-checkbox {
  border-color: #ff9500;
  border-radius: 50%;
}

/* Challenge-Solution Grid */
.adhd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.adhd-grid-item {
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.adhd-grid-item.challenge {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.45);
}

.adhd-grid-item.solution {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.45);
}

/* Download Buttons */
.planner-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.planner-buttons .btn {
  min-width: 160px;
}

.btn-download-pdf {
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
}

.btn-print {
  background: transparent;
  border: 2px solid rgba(102, 126, 234, 0.3);
  color: var(--color-text);
}

.btn-print:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

/* Print Styles */
@media print {
  .planner-download-section,
  .planner-buttons,
  nav,
  footer,
  .sidebar {
    display: none !important;
  }
  
  .planner-paper {
    width: 100%;
    max-width: none;
    box-shadow: none;
    padding: 0.5in;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .planner-paper {
    padding: 1rem;
  }
  
  .format-options {
    flex-direction: column;
    align-items: stretch;
  }
  
  .format-option {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .section-options {
    grid-template-columns: 1fr;
  }
  
  .adhd-grid {
    grid-template-columns: 1fr;
  }
  
  .planner-buttons {
    flex-direction: column;
  }
}
