/* src/styles/base.css */
:root {
  --bg-body: #333;
  --bg-overlay: #0005;
  --bg-card: #111a;
  --text-primary: #fff;
  --text-muted: #ffffffa6;
  --text-secondary: #ffffffbf;
  --text-emphasis: #ffffffd9;
  --shadow-text: 0 .05rem .1rem #00000080;
  --shadow-box: inset 0 0 5rem #00000080;
  --shadow-card: 0 4px 6px #0000004d;
  --shadow-card-hover: 0 6px 12px #0006;
  --shadow-letterbox: 0 .5rem .5rem var(--bg-card);
  --border-color: #00000080;
  --border-button: .05rem solid #fff;
  --blur-sm: .25rem;
  --blur-md: .3rem;
  --transition-fast: .2s ease;
  --transition-medium: .4s ease-in-out;
  --transition-flip: .5s;
}

html, body {
  background-color: var(--bg-body);
}

body {
  display: flex;
  color: var(--text-primary);
  text-shadow: var(--shadow-text);
  box-shadow: var(--shadow-box);
  background: url("./bokeh-wallpaper-1-g68bp829.jpg") center / cover no-repeat fixed;
}

a, a:hover {
  color: var(--text-primary);
}

a:focus {
  color: var(--text-primary);
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

main a {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Newsreader, serif;
}

[class="Dan B Goldman"], [class="Daniel R. Goldman"] {
  font-weight: bold;
}

pre {
  color: var(--text-primary);
  margin-bottom: 0;
}

.btn-secondary, .btn-secondary:hover, .btn-secondary:focus {
  color: #333;
  text-shadow: none;
  background-color: var(--text-primary);
  border: var(--border-button);
}

.badge, .badge a, button {
  text-decoration: none;
  border: 0;
}

button:focus, .btn:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
}

.visually-hidden-focusable:focus {
  position: fixed;
  z-index: 1050;
  background-color: var(--bg-card);
  backdrop-filter: blur(var(--blur-md));
  color: var(--text-primary);
  text-decoration: none;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  padding: 1rem;
  top: 0;
  left: 0;
}

/* src/styles/layout.css */
.cover-container {
  max-width: 42em;
}

.masthead {
  background: var(--bg-card);
  box-shadow: var(--shadow-letterbox);
  backdrop-filter: blur(var(--blur-md));
  padding: .5rem 1rem;
}

.masthead-brand {
  margin-bottom: 0;
}

.nav-masthead .nav-link {
  color: var(--text-muted);
  background-color: #0000;
  border-bottom: .25rem solid #0000;
  padding: .25rem 0;
  font-weight: 700;
}

.nav-masthead .nav-link:hover {
  border-bottom-color: #ffffff40;
}

.nav-masthead .nav-link:focus {
  outline: none;
  border-bottom-color: var(--text-primary);
}

.nav-masthead .nav-link + .nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

@media (min-width: 48em) {
  .masthead-brand {
    float: left;
  }

  .nav-masthead {
    float: right;
  }
}

.cover {
  padding: 5rem 1.5rem;
}

.cover .btn-lg {
  padding: .75rem 1.25rem;
  font-weight: 700;
}

.mastfoot {
  color: var(--text-muted);
  background: var(--bg-card);
  box-shadow: 0 -.5rem .5rem var(--bg-card);
  backdrop-filter: blur(var(--blur-md));
  padding: .5rem;
  font-size: 8pt;
}

.float-start {
  margin-top: .5rem;
  margin-right: 1rem;
}

/* src/styles/components.css */
.list-group {
  backdrop-filter: grayscale(50%) blur(var(--blur-sm));
  border-radius: .5rem;
}

.list-group-item {
  background-color: var(--bg-overlay);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.card {
  background-color: var(--bg-overlay);
}

.button-container {
  position: absolute;
  top: 0;
  right: 0;
}

.copy-button, .close-button {
  background-color: #0000;
  border: 0;
  padding: .25rem .5rem;
}

.flip-card {
  perspective: 1000px;
  margin-bottom: 1rem;
}

.flip-card-inner {
  position: relative;
  transition: transform var(--transition-flip);
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}

.flip-card-front, .flip-card-back {
  backface-visibility: hidden;
  width: 100%;
  transform: rotateY(0);
}

.flip-card-back {
  position: absolute;
  visibility: hidden;
  top: 0;
  transform: rotateX(180deg);
}

.film-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.film-card {
  background: var(--bg-overlay);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  backdrop-filter: blur(var(--blur-sm));
  border-radius: 8px;
  flex-direction: row;
}

.film-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.film-poster {
  overflow: hidden;
  background: var(--bg-body);
  flex-shrink: 0;
  width: 60px;
}

.film-poster img {
  object-fit: cover;
  display: block;
  width: 100%;
  height: 100%;
}

.film-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  padding: .75rem;
}

.film-title {
  color: var(--text-primary);
  margin: 0 0 .25rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
}

.film-year {
  color: var(--text-secondary);
  margin: 0 0 .25rem;
  font-size: .8rem;
}

.film-role {
  color: var(--text-emphasis);
  margin: 0;
  font-size: .8rem;
  font-style: italic;
}

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

  .film-poster {
    width: 50px;
  }

  .film-title {
    font-size: .85rem;
  }

  .film-info {
    padding: .5rem;
  }
}

@media (min-width: 1200px) {
  .film-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

  .film-poster {
    width: 70px;
  }
}
