/* Phoenix Multimedia - Main Styles */

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

:root {
  --primary-blue: #1e90ff;
  --primary-blue-dark: #1873cc;
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e55a2b;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --success: #10b981;
  --warning: #ff6b35;
  --gradient-orange-blue: linear-gradient(135deg, #ff6b35 0%, #1e90ff 100%);
  --gradient-blue-orange: linear-gradient(135deg, #1e90ff 0%, #ff6b35 100%);
  --gradient-orange-light: linear-gradient(135deg, #ff8c42 0%, #ffa766 100%);
  --gradient-blue-light: linear-gradient(135deg, #1e90ff 0%, #4da6ff 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
}

/* Header and Navigation */
header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  height: 50px;
  margin-right: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background: #ff6b35;
  background: var(--gradient-orange-blue);
  color: white;
  padding: 4rem 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero.with-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero.with-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
}

.hero.with-image .container {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #ff8c42;
  background: var(--gradient-orange-light);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-outline {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: #1e90ff;
  background: var(--gradient-blue-light);
  color: white;
  border-color: var(--primary-blue-dark);
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.4);
}

/* Main Content */
main {
  padding: 3rem 0;
  min-height: 60vh;
  background: rgba(30, 144, 255, 0.01);
  background: linear-gradient(to bottom, transparent 0%, rgba(30, 144, 255, 0.02) 50%, rgba(255, 107, 53, 0.02) 100%);
}

section {
  margin-bottom: 4rem;
  position: relative;
}

main section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(30, 144, 255, 0.2);
  background: linear-gradient(to right, transparent 0%, rgba(30, 144, 255, 0.2) 20%, rgba(255, 107, 53, 0.2) 80%, transparent 100%);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #ff6b35;
  background: var(--gradient-orange-blue);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--accent-orange);
}

/* Book Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
  position: relative;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff6b35;
  background: var(--gradient-orange-blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30, 144, 255, 0.3), 0 0 20px rgba(255, 107, 53, 0.2);
  border-color: rgba(30, 144, 255, 0.2);
}

.book-card:hover::before {
  opacity: 1;
}

.book-card-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: var(--bg-light);
}

.book-card-content {
  padding: 1.5rem;
}

.book-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.book-card-subtitle {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
}

.book-card-description {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.book-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-bestseller {
  background: #fef3c7;
  color: #92400e;
}

.badge-new {
  background: rgba(30, 144, 255, 0.2);
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0.3) 100%);
  color: #1e40af;
  border: 1px solid rgba(30, 144, 255, 0.3);
}

.badge-coming-soon {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Book Detail */
.book-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.book-detail-image {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.book-detail-info h1 {
  margin-bottom: 0.5rem;
}

.book-detail-info .subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.book-detail-info .description {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.book-features {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.book-features h3 {
  margin-bottom: 1rem;
}

.book-features ul {
  list-style: none;
}

.book-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.book-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: rgba(30, 144, 255, 0.05);
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(30, 144, 255, 0.2);
  position: relative;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.search-box {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-gray);
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-gray);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .book-detail {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }
}

/* Enhanced About & Contact Page Styles */
.about-feature-card,
.contact-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-feature-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #ff6b35;
  background: var(--gradient-orange-blue);
}

.about-feature-card:hover,
.contact-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.2);
  transform: translateY(-2px);
}

.about-feature-card:nth-child(odd):hover {
  border-color: var(--accent-orange);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.cta-section {
  text-align: center;
  background: rgba(30, 144, 255, 0.05);
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  padding: 3rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(30, 144, 255, 0.3);
  position: relative;
}

a[href^="mailto"],
a[href^="https://www.amazon.com"] {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
}

a[href^="mailto"]:hover {
  color: var(--accent-orange);
}

a[href^="https://www.amazon.com"]:hover {
  color: var(--primary-blue-dark);
}

a[href^="mailto"]::after,
a[href^="https://www.amazon.com"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

a[href^="mailto"]:hover::after,
a[href^="https://www.amazon.com"]:hover::after {
  width: 100%;
}

.faq-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:nth-child(even) {
  border-left-color: var(--accent-orange);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.15);
  transform: translateX(4px);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
}

.contact-info-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.contact-info-card:nth-child(odd)::before {
  background: #ff8c42;
  background: var(--gradient-orange-light);
}

.contact-info-card:nth-child(even)::before {
  background: #1e90ff;
  background: var(--gradient-blue-light);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.2);
}

/* Series Card Styles */
.series-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 3px solid #10b981;
  position: relative;
}

.series-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  opacity: 1;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4), 0 0 30px rgba(5, 150, 105, 0.3);
  border-color: #059669;
}

.series-card-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: var(--bg-light);
}

.series-card-content {
  padding: 1.5rem;
}

.series-card-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  z-index: 10;
}

.series-card-icon {
  font-size: 1rem;
}

.series-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.series-card-subtitle {
  font-size: 0.875rem;
  color: #059669;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.series-card-description {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 1rem;
}
