* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #8b5a3c;
  --primary-dark: #6b4423;
  --secondary: #d4a574;
  --accent: #f4e4c1;
  --success: #6a994e;
  --danger: #bc4749;
  --text: #2d2d2d;
  --text-light: #666;
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --border: #e0d5c7;
  --shadow: rgba(139, 90, 60, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem 0 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px var(--shadow);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 0;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.user-info {
  text-align: right;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-role {
  font-size: 0.8rem;
  opacity: 0.9;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid transparent;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-btn.active {
  background: white;
  color: var(--primary);
  border-color: white;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.bcorn-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.bcorn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--shadow);
}

.bcorn-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--accent);
}

.bcorn-card-content {
  padding: 1rem;
}

.bcorn-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.bcorn-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.materials-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

input[type="text"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  resize: vertical;
}

input[type="file"] {
  padding: 0.5rem 0;
}

small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.photo-preview {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.photo-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
}

.primary-photo-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.primary-photo-option {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.primary-photo-option img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.primary-photo-option.selected img {
  border-color: var(--success);
  box-shadow: 0 0 0 2px var(--success);
}

.primary-photo-option .primary-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--success);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  display: none;
}

.primary-photo-option.selected .primary-badge {
  display: block;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-danger:hover {
  background: #a03234;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.accessory-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  text-align: center;
}

.accessory-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--accent);
}

.accessory-card-content {
  padding: 1rem;
}

.accessory-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.accessory-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.meetups-list {
  margin-top: 2rem;
}

.meetup-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  border-left: 4px solid var(--primary);
}

.meetup-card h4 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.meetup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.meetup-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meetup-card p {
  color: var(--text);
  margin-bottom: 1rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--card-bg);
  margin: 2% auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--danger);
}

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

.detail-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.detail-photos img:hover {
  transform: scale(1.05);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* About the Artist Section */
.about-artist {
  max-width: 900px;
  margin: 0 auto;
}

.artist-profile {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
}

.artist-photo-placeholder {
  width: 250px;
  height: 250px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px dashed var(--border);
  text-align: center;
  color: var(--text-light);
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.artist-photo-placeholder p {
  font-size: 0.9rem;
  padding: 0 1rem;
}

.artist-bio h3 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.artist-bio p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.interests {
  margin-top: 1.5rem;
}

.interests h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.inspiration-section {
  background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.inspiration-section h3 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.inspiration-section p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.inspiration-links {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.inspiration-links a {
  text-decoration: none;
}

.inspiration-note {
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 500;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 5% 1rem;
    padding: 1.5rem;
  }

  .artist-profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .artist-photo-placeholder {
    width: 100%;
    height: 200px;
  }
}
