/* AccessLearn - Student Accommodation Strategy Guide */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

header {
    background: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

header h1 { margin: 0; color: var(--primary); font-size: 2rem; }
.tagline { margin: 0.25rem 0 0; color: var(--gray); font-size: 1.1rem; }

main { padding: 0 1rem 2rem; }

section { background: white; border-radius: var(--border-radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }

h2 { margin-top: 0; color: var(--primary-dark); }
h3 { color: var(--secondary); margin-top: 0; }
h4 { margin: 0 0 0.5rem; color: var(--dark); }

p { margin: 0 0 1rem; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.profile-card {
    background: var(--light);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.profile-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.profile-card[aria-pressed="true"] { background: var(--primary); color: white; border-color: var(--primary-dark); }
.profile-card[aria-pressed="true"] h4 { color: white; }

.profile-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

.rec-category { margin-bottom: 1.5rem; }
.rec-category:last-child { margin-bottom: 0; }
.rec-list { margin: 0; padding-left: 1.25rem; }
.rec-list li { margin-bottom: 0.5rem; }

.timeline-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.timeline-controls label { font-weight: 500; }

timeline-display {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--border-radius);
}

timeline-weeks { padding-left: 1.25rem; }
timeline-weeks li { margin-bottom: 0.5rem; }

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.primary-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.primary-button:hover { background: var(--primary-dark); }

.secondary-button {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--light-gray);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.secondary-button:hover { background: var(--light-gray); }

#save-status { margin-top: 0.5rem; font-size: 0.9rem; min-height: 1.5rem; }

.support-content ul { padding-left: 1.25rem; }
.support-content li { margin-bottom: 0.75rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

footer {
    background: var(--dark);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a { color: #cbd5e1; }

@media (max-width: 768px) {
    header h1 { font-size: 1.5rem; }
    .profile-grid { grid-template-columns: 1fr 1fr; }
    .action-buttons { flex-direction: column; }
    .timeline-controls { flex-direction: column; align-items: stretch; }
}

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


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
