/* Dashboard Styles */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Create New Book Button in Header */
.create-new-book-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.create-new-book-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Auth Buttons in Header */
.header-auth-btn {
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-login-btn {
  background: #fff;
  color: #000;
  border: 1px solid #e5e7eb;
}

.header-login-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.header-signup-btn {
  background: #000;
  color: #fff;
  border: none;
  margin-left: 0.5rem;
}

.header-signup-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Welcome Header */
.welcome-header {
  background: linear-gradient(135deg, #FDB44B 0%, #FFCC70 100%);
  border-radius: 24px;
  padding: 48px 60px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(253, 180, 75, 0.15);
}

.welcome-title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.token-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  color: #2c2c2c;
}

.token-icon {
  width: 32px;
  height: 32px;
  stroke: #ff9500;
  fill: none;
}

.token-text {
  font-weight: 400;
}

.token-amount {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 4px;
}

.token-label {
  font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

/* Dashboard Card */
.dashboard-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  max-width: 726px;
  height: auto;
  aspect-ratio: 726 / 660;
  overflow: hidden;
  background: white;
  position: relative;
  margin: 0 auto;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Placeholder styling for missing images */
.card-image img:not([src]),
.card-image img[src=""],
.card-image img[src*="placeholder"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  object-fit: contain;
  padding: 40px;
}

.card-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-align: center;
}

.card-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex: 1;
}

.card-button {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.card-button:hover {
  background: #333;
  transform: translateY(-1px);
}

.card-button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 24px 16px;
  }

  .welcome-header {
    padding: 32px 24px;
    margin-bottom: 24px;
  }

  .welcome-title {
    font-size: clamp(24px, 6vw, 32px);
    word-break: break-word;
  }

  .token-display {
    font-size: 16px;
  }

  .token-amount {
    font-size: 32px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-image {
    height: 280px;
    margin-top:20px;
  }

  .card-content {
    padding: 20px 16px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .welcome-header {
    padding: 24px 20px;
  }

  .welcome-title {
    font-size: clamp(20px, 5.5vw, 28px);
    word-break: break-word;
    line-height: 1.3;
    margin: 0 0 5px 0;
  }

  .token-display {
    flex-wrap: wrap;
    font-size: 15px;
  }

  .token-amount {
    font-size: 28px;
  }

  .card-image {
    height: 250px;
    margin-top:20px;
  }
}
