/* css/style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 20px 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #000;
  cursor: pointer;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #212529;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

.user-menu {
  display: flex;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #007bff;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

main {
  padding: 40px 0;
}

/* Home Page Styles */
.hero {
  text-align: center;
  margin-bottom: 60px;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.subtitle {
  font-size: 20px;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-bar {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 30px;
  border: 1px solid #dee2e6;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 2px 15px rgba(0,123,255,0.1);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  padding: 0 20px;
  background-color: #212529;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background-color: #343a40;
}

.filter-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #f8f9fa;
}

.filter-btn.active {
  background-color: #212529;
  color: #fff;
  border-color: #212529;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
}

.view-toggle {
  display: flex;
  align-items: center;
}

.toggle-btn {
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.toggle-btn:last-child {
  border-radius: 0 6px 6px 0;
}

.toggle-btn.active {
  background-color: #212529;
  color: #fff;
  border-color: #212529;
}

.livery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.livery-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.livery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.livery-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.15));
}

.livery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.livery-card:hover .livery-image {
  transform: scale(1.05);
}

.livery-details {
  padding: 20px;
}

.livery-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.livery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6c757d;
}

.livery-creator {
  display: flex;
  align-items: center;
}

.creator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #007bff;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.livery-stats {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.livery-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.action-btn {
  padding: 8px 16px;
  background-color: #212529;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.action-btn:hover {
  background-color: #343a40;
}

.action-btn.secondary {
  background-color: transparent;
  color: #212529;
  border: 1px solid #dee2e6;
}

.action-btn.secondary:hover {
  background-color: #f8f9fa;
}

/* Additional styles for profile, livery detail, comments, tabs, etc. */

.creator-profile {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.creator-cover {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #007bff, #6610f2);
  position: relative;
}

.creator-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.creator-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #007bff;
  border: 5px solid #fff;
  margin-top: -60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  font-weight: 600;
}

.creator-name {
  font-size: 24px;
  font-weight: 700;
  margin: 15px 0 5px;
}

.creator-username {
  color: #6c757d;
  margin-bottom: 15px;
}

.creator-bio {
  max-width: 600px;
  margin-bottom: 20px;
}

.creator-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.creator-stat {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  color: #6c757d;
  font-size: 14px;
}

.follow-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.follow-btn:hover {
  background-color: #0069d9;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .creator-profile {
    flex-direction: column;
  }
  
  .livery-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Sections display handling (if using JS to switch views) */
#home-section, #creator-profile-section, #livery-detail-section {
  display: none;
}

#home-section.active, #creator-profile-section.active, #livery-detail-section.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}
