@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(180deg,#fdfbfb 0%,#ebedee 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}
.back-link {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 1.25rem;
}
.back-link:hover {
    text-decoration: underline;
}
.tagline {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

#user-comment {
    font-style: italic;
    margin-top: 0.25rem;
}

#user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 1rem;
}

.header-text {
    text-align: left;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 500px;
    align-items: stretch;
}
/* uniform main menu buttons */
.buttons .btn-fancy {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-btn {
    font-size: 2rem;
    background-color: transparent;
    color: #2563eb;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.camera-btn:hover {
    background-color: rgba(37, 99, 235, 0.1);
}



.album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.album img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.album img:hover {
    transform: scale(1.05);
}

#agenda-list {
    list-style: none;
    padding: 0;
    margin: 1rem;
}

.agenda-btn {
    background: #fff;
    margin: 0.5rem 0;
    padding: 0.75rem;
    border: none;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.agenda-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.5);
}

.step { display: none; margin: 1rem 0; }
.step.active { display: block; }
.nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.dev-btn {
    display: none;
    margin-top: 1rem;
}

.btn-fancy {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-fancy:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* ─── Layout helpers ─────────────────────────────────────────────────────── */

/* center the “Logout” button */
#clear-btn {
  margin-bottom: 1.5rem;
}

/* ─── Guest list ───────────────────────────────────────────────────────────── */

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin-top: 1rem;
}

/* Large avatar for profile page */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.profile-avatar-large {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    max-width: 100%;
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
    }
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Guests page small avatar list */
.guest-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.guest-avatar-link {
    text-decoration: none;
}

.guest-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.guest-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.guest-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 220px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.guest-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.guest-bio-excerpt {
    font-size: 0.75rem;
    font-style: italic;
    color: #4b5563;
}

#user-bio {
    white-space: pre-wrap;
}

/* Utility classes for responsive layout */
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.hidden { display: none; }
.agenda-group { margin-top: 1rem; }
.agenda-date { font-weight: 600; margin-bottom: 0.5rem; }
.agenda-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.75rem;
    text-align: left;
    cursor: pointer;
}
.agenda-details {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}
.agenda-next { border-left: 4px solid #2563eb; }

/* loading spinner for onboarding */
#loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* global loading spinner */
#global-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.6);
  z-index: 1000;
}
#global-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  display: inline-block;
  vertical-align: -0.125em;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
