/* Photos app-specific styles. Shared chrome (masthead, beta banner, buttons,
   auth screen, tokens) lives in theme.css -- see root CLAUDE.md's
   "Per-app config patterns". */

:root {
  --container-max: 1100px;
}

#app-screen {
  text-align: left;
  padding: 30px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.error-message,
.success-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Filter bar (same layout as activities-list) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #02133e;
}

.filter-field input,
.filter-field select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

.filter-search {
  flex: 1 1 200px;
}

.filter-summary {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: #666;
}

/* Add / edit form */
.album-form {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.album-form h2 {
  color: #02133e;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.album-form .hint {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #02133e;
}

.form-row input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

.form-row .inline {
  display: flex;
  gap: 8px;
}

.form-row .inline input {
  flex: 1;
}

.form-row input[type="date"] {
  max-width: 200px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.album-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  color: #444;
  font-size: 0.9rem;
}

.album-preview img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  background: #e9ecef;
}

/* Album grid */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.album-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s;
}

.album-card:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.album-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e9ecef, #dde2e8);
  color: #8a94a3;
  text-decoration: none;
}

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

.album-thumb .no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 700;
}

.album-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}

.album-body h3 {
  font-size: 1.05rem;
  color: #02133e;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.album-body h3 a {
  color: inherit;
  text-decoration: none;
}

.album-body h3 a:hover {
  text-decoration: underline;
}

.album-date {
  color: #666;
  font-size: 0.85rem;
}

.album-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8edf7;
  color: #02133e;
}

.album-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.empty-state {
  text-align: center;
  color: #666;
  padding: 40px 0;
}

.page-note {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.filter-check label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.filter-check input {
  width: auto;
}
