/*
  Global Styles for Victor Stroia author website
  Color palette inspired by the energy and confidence of Victor's message.
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary: #d4af37; /* rich gold */
  --primary-dark: #b28d24;
  --secondary: #0b0b0c; /* nearly black background */
  --light: #f5f5f5;
  --accent: #f0c545; /* slightly lighter gold for hover */
  --error: #e63946;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--secondary);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo img {
  height: 72px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover,
nav a:focus {
  color: var(--primary);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 90vh;
  background: url('../images/hero-bg.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--secondary);
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section.dark {
  background-color: #141414;
}

.section.light {
  background-color: #1e1e1e;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
}

/* Book feature on homepage */
.featured-book {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.featured-book .book-info {
  text-align: center;
  max-width: 600px;
}

.featured-book img {
  width: 420px;
  border-radius: 8px;
}

.featured-book .description {
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Mini bio teaser */
.bio-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
  gap: 1.5rem;
}

.bio-teaser img {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.bio-teaser p {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Email signup form */
.signup-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.signup-form input[type="email"] {
  padding: 0.6rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  background-color: transparent;
  color: var(--light);
}

.signup-form input::placeholder {
  color: #aaa;
}

.signup-form button {
  width: fit-content;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.signup-form button:hover {
  background-color: var(--accent);
}

/* Books Page */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.book-card {
  background-color: #151515;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.book-card img {
  width: 300px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.book-card h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.book-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.book-card a.btn {
  margin-top: auto;
}

/* About page */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.about-section h2 {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--primary);
}

.about-section p {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Blog page */
.blog-wrapper {
  display: flex;
  gap: 2rem;
}

.blog-posts {
  flex: 3;
}

.post-card {
  background-color: #151515;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
}

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

.post-card p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.post-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card a:hover {
  color: var(--accent);
}

/* Individual blog article */
.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 1rem;
}

/* Media page */
.media-section {
  text-align: center;
  margin-bottom: 3rem;
}

.download-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.download-cards a {
  background-color: #151515;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
  max-width: 300px;
}

.download-cards a:hover {
  background-color: #1f1f1f;
}

/* Contact page */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background-color: transparent;
  color: var(--light);
  font-size: 1rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent);
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.social-icons img {
  width: 32px;
  height: 32px;
  filter: invert(100%) brightness(200%);
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  /* change to primary gold colour on hover */
  filter: invert(67%) sepia(84%) saturate(537%) hue-rotate(20deg) brightness(100%) contrast(95%);
}

/* Footer */
footer {
  background-color: #0e0e0e;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer nav ul {
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

footer p {
  font-size: 0.9rem;
  color: #888;
}

footer .footer-signup {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

footer .footer-signup input[type="email"] {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background-color: transparent;
  color: var(--light);
  width: 220px;
}

footer .footer-signup button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

footer .footer-signup button:hover {
  background-color: var(--accent);
}

/* Responsive navigation: hamburger menu for smaller screens */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--light);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(11,11,12,0.95);
    flex-direction: column;
    gap: 1rem;
    width: 200px;
    padding: 1rem;
    border-radius: 6px;
    display: none;
  }
  nav ul.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}
