/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Litty App Styles - Based on Figma Design */

/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

:root {
  --Off-Black: #474747;
}

.litty-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: white;
  color: #474747;
  min-height: 100vh;
  position: relative;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid #474747;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  max-width: 1920px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: #474747;
  border-radius: 4px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--Off-Black, #474747);
  letter-spacing: 0.5px;
  font-style: normal;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-item {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 18px;
  color: #474747;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.7;
}

/* Main Content */
.main-content {
  display: flex;
  min-height: 100vh;
  padding-top: 80px; /* Account for header */
}

.left-section {
  flex: 1;
  max-width: 33.333%;
  padding: 96px 16px 0 16px;
  position: relative;
}

.right-section {
  flex: 2;
  position: relative;
  background-color: white;
  padding: 40px;
}

/* Hero Text */
.hero-text {
  margin-bottom: 40px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 63px; /* 98.438% */
  color: var(--Off-Black, #474747);
  margin: 0 0 24px 0;
  max-width: 608px;
  font-style: normal;
}

.hero-description {
  font-family: 'Neue Haas Grotesk Text Pro', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #474747;
  margin: 0;
  max-width: 447px;
}

/* Book Lists */
.book-lists {
  position: relative;
  width: 624px;
  max-height: 734px;
  overflow-y: auto;
  border: 1px solid #474747;
  border-top: none;
  border-left: none;
}

/* Year Section */
.year-section {
  border-top: 1px solid #474747;
}

.year-section:first-child {
  border-top: none;
}

.year-header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #474747;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.year-header:hover {
  background-color: #f8f8f8;
}

.year-title {
  font-family: 'New Spirit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #474747;
}

.expand-icon {
  font-size: 16px;
  color: #474747;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

/* Category Section */
.category-section {
  padding: 8px 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 8px 16px;
}

.category-title {
  font-family: 'New Spirit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #474747;
}

.see-all {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.see-all:hover {
  opacity: 0.7;
}

.see-all span {
  font-family: 'Suisse Int\'l', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #474747;
}

.chevron {
  font-size: 16px;
  color: #474747;
}

/* Book List */
.book-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-item {
  display: flex;
  gap: 10px;
  padding: 0 16px 0 16px;
  align-items: center;
}

.book-title {
  flex: 1;
  font-family: 'Neue Haas Grotesk Text Pro', sans-serif;
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: #474747;
}

.book-author {
  flex: 1;
  font-family: 'Neue Haas Grotesk Text Pro', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #4f4f4f;
}

/* Right Section */

/* Responsive Design */
@media (max-width: 1200px) {
  .main-content {
    flex-direction: column;
  }
  
  .left-section {
    max-width: 100%;
    padding: 40px 16px;
  }
  
  .hero-title {
    font-size: 48px;
    line-height: 1.2;
  }
  
  .book-lists {
    width: 100%;
    max-width: 624px;
  }
  
  .right-section {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 12px 16px;
  }
  
  .nav-menu {
    gap: 16px;
  }
  
  .nav-item {
    font-size: 16px;
  }
  
  .hero-title {
    font-size: 36px;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .book-item {
    padding: 0 16px 0 16px;
  }
  
  .book-title,
  .book-author {
    font-size: 16px;
  }
}

/* Scrollbar Styling */
.book-lists::-webkit-scrollbar {
  width: 8px;
}

.book-lists::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.book-lists::-webkit-scrollbar-thumb {
  background: #474747;
  border-radius: 4px;
}

.book-lists::-webkit-scrollbar-thumb:hover {
  background: #333;
}
