/* --- CSS VARIABLES: Keeping colors consistent --- */
:root {
  --color-paper-background: #F5F1EB; /* Warm, off-white beige */
  --color-grid-lines: #E0E0E0;      /* Sublte gray for the pattern */
  --color-brand-dark: #212121;
  --color-text-body: #4F4F4F;
  --color-cta-blue: #00BCD4;       /* Bright blue from the button */
  --color-cta-blue-hover: #0097A7;
  --color-notification-red: #D32F2F;
  --color-border-dark: #333;
}

/* --- GLOBAL STYLES & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text-body);
  background-color: var(--color-paper-background);
  line-height: 1.6;
}

/* --- MAIN HEADER STYLES (From mock-up) --- */
.main-header {
  background-color: #fff;
  color: var(--color-brand-dark);
  border-bottom: 2px solid #E0E0E0;
  height: 90px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: bold;
}

.brand-text {
  letter-spacing: -0.5px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-body);
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--color-brand-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-bookmark, .chat-bubble {
  position: relative;
  font-size: 1.6rem;
  color: #757575;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-notification-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  height: 18px;
  width: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

/* --- COMMON CTA BUTTON STYLES --- */
.cta-button {
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.cta-button.primary {
  background-color: var(--color-cta-blue);
  color: #fff;
}

.cta-button.primary:hover {
  background-color: var(--color-cta-blue-hover);
}

.cta-button.select-genre {
  background-color: transparent;
  border: 2px solid var(--color-cta-blue);
  color: var(--color-cta-blue);
  width: 100%;
}

.cta-button.select-genre:hover {
  border-color: var(--color-border-dark);
  color: var(--color-border-dark);
}


/* --- PAGE CONTENT & PAPER GRID PATTERN --- */
.page-content {
  padding-top: 130px; /* Offset the fixed header */
  min-height: 100vh;
}

/* Creating the cross-hatch/grid pattern with CSS gradients */
.paper-grid {
  background-color: var(--color-paper-background);
  background-image:
    linear-gradient(var(--color-grid-lines) .1em, transparent .1em),
    linear-gradient(90deg, var(--color-grid-lines) .1em, transparent .1em);
  background-size: 2.5em 2.5em; /* Controls the size of the squares */
}

/* --- COMMON SECTION LAYOUT --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

h1, h2, h3 {
  color: var(--color-brand-dark);
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
}

p {
  color: var(--color-text-body);
  margin-bottom: 15px;
}


/* --- HERO SECTION --- */
.hero-section {
  display: flex;
  align-items: center;
}

.hero-text {
  flex: 1;
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: #616161;
}

.hero-image-placeholder {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}


/* --- HOW IT WORKS GRID --- */
.how-grid, .genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.how-card {
  background-color: rgba(255, 255, 255, 0.7); /* Slightly translucent white */
  padding: 40px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  text-align: center;
}

.how-card i {
  font-size: 3rem;
  color: var(--color-cta-blue);
  margin-bottom: 20px;
}


/* --- GENRE/PRODUCT GRID STYLES --- */
.genre-card {
  background-color: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.genre-image-placeholder {
  height: 200px;
  background-color: #F0F0F0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.genre-card h3, .genre-card p {
  padding: 0 20px;
}

.genre-card h3 {
  margin-top: 20px;
  margin-bottom: 5px;
}

.genre-meta {
  font-size: 0.8rem;
  color: #757575;
  text-transform: uppercase;
  margin-bottom: 15px !important;
}

.genre-description {
  font-size: 0.95rem;
  color: var(--color-text-body);
  flex-grow: 1; /* Pushes the footer to the bottom */
}

.genre-footer {
  padding: 20px;
  border-top: 1px solid #F0F0F0;
}

.price {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-brand-dark);
  text-align: center;
  margin-bottom: 15px !important;
}


/* --- PERSISTENT CHAT BUBBLE STYLES (Bottom Right) --- */
.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00897B; /* Slightly different brand green */
  color: #fff;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1000;
}

.chat-bubble .notification-badge {
  top: 0px;
  right: 0px;
}


/* --- SITE FOOTER --- */
.site-footer {
  background-color: #fff;
  color: #757575;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8rem;
  border-top: 1px solid #E0E0E0;
}