/* app/assets/stylesheets/auth.css */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 20px;
  }
  
  .auth-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
  }
  
  .auth-box h1 {
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
  }
  
  .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    font-family: inherit;  /* Added to ensure consistent font */
    appearance: none;      /* Added to remove default button styling */
    -webkit-appearance: none; /* Added for Safari */
    line-height: normal;   /* Added for consistent text alignment */
    margin: 0;            /* Remove any default margins */
    box-sizing: border-box; /* Ensure padding is included in width */
  }
  
  .auth-button:hover {
    background-color: #f8f8f8;
  }
  
  .auth-button.apple:hover {
    background-color: #000000;
    color: white;
  }
  
  .auth-button.spotify:hover {
    background-color: #1DB954;
    color: white;
  }
  
  .auth-button.passkey:hover {
    background-color: #0066cc;
    color: white;
  }
  
  .auth-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    fill: currentColor;
  }
  
  .error-message {
    margin-top: 8px;
    color: #dc2626;
    font-size: 14px;
    text-align: center;
  }

  /* Flash message styles */
  .flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
  }
  
  .flash {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .flash-notice {
    background-color: #10B981;
    color: white;
  }
  
  .flash-alert {
    background-color: #EF4444;
    color: white;
  }
  
  @keyframes slideIn {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Responsive adjustments */
  @media (max-width: 480px) {
    .auth-box {
      padding: 24px;
    }
  
    .auth-box h1 {
      font-size: 20px;
      margin-bottom: 24px;
    }
  
    .auth-button {
      font-size: 14px;
      padding: 10px;
    }
  }
.flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
  }
  
  .flash {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .flash-notice {
    background-color: #10B981;
    color: white;
  }
  
  .flash-alert {
    background-color: #EF4444;
    color: white;
  }
  
  @keyframes slideIn {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  /* Add this to the existing auth.css */
  .flash-messages + .auth-container {
    padding-top: 80px; /* Give space for flash messages */
  }
/* app/assets/stylesheets/global.css */
@view-transition {
  navigation: auto;
}

:root {
  color-scheme: light dark;
  accent-color: var(--interactive-1);
  caret-color: var(--interactive-1);
  scroll-behavior: smooth;

  line-height: 1.5;

  --interactive-1: #10b981;
}

:focus-within {
  outline-offset: 0.5em;
  outline-color: var(--interactive-1);
}

.melt {
  filter: url(#melt);
}

body {
  background: light-dark(white, black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    Liberation Mono, Courier New, monospace;
  font-size: 18px;
  color: light-dark(#1a1a1a, #cecece);
  line-height: 1.6;

  margin: 0 auto;
  padding: 0 20px;
  max-width: 80ch;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: light-dark(black, white);
}

.top-bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;

  nav {
    display: flex;
    gap: 15px;
  }

  > a:first-child {
    font-size: 25px;
    font-weight: bold;
  }

  a {
    color: light-dark(black, white);
  }

  nav [aria-current="page"] {
    color: var(--interactive-1);
  }
}

main {
  min-height: 100vh;
}

article {
  margin: 3rem 0;
}

section {
  margin: 2rem 0;
}

p,
dd,
footer {
  color: light-dark(#4e4e4e, #dddddd);
  max-width: 65ch;
  text-wrap: pretty;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0;
}

dd + dt {
  margin-top: 2rem;
}

footer {
  margin-top: 5rem;
}
/* app/assets/stylesheets/home.css */

.monthly-playlist {
  margin-block: 2rem;
}

.track-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: track-number;
}

.track-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid light-dark(#eee, #333);
  counter-increment: track-number;

  &::before {
    content: counter(track-number);
    font-size: 0.875rem;
    color: light-dark(#666, #999);
    min-width: 1.5rem;
    text-align: right;
  }
}

.album-cover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.track-name {
  font-weight: 500;
  color: light-dark(black, white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.875rem;
  color: light-dark(#666, #999);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-breakdown {
  padding: 0;

  &[open] {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
}

.score-breakdown summary {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--interactive-1);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: light-dark(#f0fdf4, #052e16);

  &::after {
    content: none;
  }

  &:hover {
    background: light-dark(#dcfce7, #064e3b);
  }
}

.score-components {
  margin: 0.75rem 0 0 0;
  padding: 0.75rem;
  background: light-dark(#f9fafb, #111);
  border-radius: 6px;
  font-size: 0.8125rem;
}

.score-component {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;

  & + & {
    border-top: 1px solid light-dark(#eee, #333);
  }

  dt {
    color: light-dark(#666, #999);
  }

  dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
  }

  strong {
    color: var(--interactive-1);
  }
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
}

.user-details {
  margin-bottom: 24px;
  color: #4a4a4a;
}

.user-details p {
  margin: 8px 0;
  line-height: 1.5;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: white;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.auth-button:hover {
  background-color: #f8f8f8;
}


.error-message {
  margin-top: 8px;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .home {
    margin: 20px auto;
  }

  .home h1 {
    font-size: 20px;
  }

  .profile-info {
    padding: 16px;
  }

  .auth-button,
  .music-button,
  .sign-out-button {
    font-size: 14px;
    padding: 10px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
