/*
Theme Name: Author Illustrator Theme
Theme URI: https://example.com
Author: Theme Author
Author URI: https://example.com
Description: A custom WordPress Block Theme for a French author/illustrator landing page
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: author-illustrator
*/

/* CSS Variables */
:root {
  --color-teal-bg: #f0fdfa;
  --color-teal-text: #0f766e;
  --color-teal-border: #99f6e4;
  --color-teal-dark: #14b8a6;
  
  --color-rose-bg: #fff1f2;
  --color-rose-text: #be123c;
  --color-rose-border: #fecdd3;
  --color-rose-dark: #fb7185;
  
  --color-amber-bg: #fffbeb;
  --color-amber-text: #b45309;
  --color-amber-border: #fde68a;
  --color-amber-dark: #f59e0b;
  
  --color-indigo-bg: #eef2ff;
  --color-indigo-text: #4338ca;
  --color-indigo-border: #c7d2fe;
  --color-indigo-dark: #6366f1;
  
  --color-page-bg: #f7faf8;
  --color-text: #1f2937;
  --color-white: #ffffff;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  background-color: var(--color-page-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: #d1fae5;
  color: var(--color-text);
}

/* Background Decorative Elements */
.am-bg-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.am-bg-decor::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float 20s ease-in-out infinite;
}

.am-bg-decor::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.15) 0%, rgba(251, 113, 133, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

/* Container */
.am-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem 1rem;
}

/* Header */
.am-header {
  text-align: center;
  margin-bottom: 1rem;
}

.am-landing-page .wp-block-group {
  margin-block-start: 0;
}

/* Avatar */
.am-avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--color-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.am-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-rose-dark));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.am-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.3), 0 15px 35px rgba(0, 0, 0, 0.15);
}

.am-avatar:hover::before {
  opacity: 1;
}

.am-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation Circles */
.am-nav-circles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.am-nav-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  padding: 0.5rem;
}

.am-nav-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.am-nav-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.am-nav-btn.am-teal {
  color: var(--color-teal-text);
}

.am-nav-btn.am-teal.active {
  background-color: var(--color-teal-bg);
  border-color: var(--color-teal-border);
  box-shadow: 0 0 0 4px var(--color-teal-border);
}

.am-nav-btn.am-rose {
  color: var(--color-rose-text);
}

.am-nav-btn.am-rose.active {
  background-color: var(--color-rose-bg);
  border-color: var(--color-rose-border);
  box-shadow: 0 0 0 4px var(--color-rose-border);
}

.am-nav-btn.am-amber {
  color: var(--color-amber-text);
}

.am-nav-btn.am-amber.active {
  background-color: var(--color-amber-bg);
  border-color: var(--color-amber-border);
  box-shadow: 0 0 0 4px var(--color-amber-border);
}

.am-nav-btn.am-indigo {
  color: var(--color-indigo-text);
}

.am-nav-btn.am-indigo.active {
  background-color: var(--color-indigo-bg);
  border-color: var(--color-indigo-border);
  box-shadow: 0 0 0 4px var(--color-indigo-border);
}

/* Portfolio Link (nav circle) */
a.am-portfolio-link,
a.am-portfolio-link:hover,
a.am-portfolio-link:focus {
  text-decoration: none !important;
  color: inherit;
}

/* Portfolio Button */
.am-portfolio-btn {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-indigo-dark));
  color: var(--color-white);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  text-decoration: none;
}

.am-portfolio-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Content Stage */
.am-content-stage {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 3rem;
}

.am-content-header {
  padding: 2rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.am-content-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.am-content-header p {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.am-content-header.am-teal {
  background-color: var(--color-teal-bg);
  color: var(--color-teal-text);
}

.am-content-header.am-rose {
  background-color: var(--color-rose-bg);
  color: var(--color-rose-text);
}

.am-content-header.am-amber {
  background-color: var(--color-amber-bg);
  color: var(--color-amber-text);
}

.am-content-header.am-indigo {
  background-color: var(--color-indigo-bg);
  color: var(--color-indigo-text);
}

.am-content-body {
  padding: 2.5rem;
  background-color: var(--color-white);
}

/* Sections */
.am-section {
  display: none;
}

.am-section.active {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.am-fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* Audio Badges */
.am-audio-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.am-audio-badge.am-teal {
  background-color: var(--color-teal-bg);
  color: var(--color-teal-text);
  border: 1px solid var(--color-teal-border);
}

.am-audio-badge.am-rose {
  background-color: var(--color-rose-bg);
  color: var(--color-rose-text);
  border: 1px solid var(--color-rose-border);
}

.am-audio-badge.am-amber {
  background-color: var(--color-amber-bg);
  color: var(--color-amber-text);
  border: 1px solid var(--color-amber-border);
}

.am-audio-badge.am-indigo {
  background-color: var(--color-indigo-bg);
  color: var(--color-indigo-text);
  border: 1px solid var(--color-indigo-border);
}

/* Book Covers */
.am-book-cover {
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
  display: block;
}

.am-book-cover:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

.am-book-item {
  text-align: center;
}

.am-book-item h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--color-text);
}

.am-book-item p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Audio Items */
.am-audio-list {
  margin-top: 2rem;
}

.am-audio-item {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.am-audio-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.am-audio-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.am-audio-item p {
  color: #6b7280;
  line-height: 1.6;
}

/* Newsletter Form */
.am-infolettre-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 500px;
  margin: 2rem auto 0;
}

.am-infolettre-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 2rem;
  font-family: Georgia, serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.am-infolettre-form input[type="email"]:focus {
  border-color: var(--color-teal-border);
  box-shadow: 0 0 0 3px rgba(153, 246, 228, 0.2);
}

.am-infolettre-form button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-teal-dark);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.am-infolettre-form button:hover {
  background-color: var(--color-teal-text);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.4);
}

/* Footer */
.am-footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}

.am-social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.am-social-links a {
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.am-social-links a:hover {
  color: var(--color-teal-dark);
  transform: translateY(-2px);
}

/* Bio Section */
.am-bio-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
}

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

/* Responsive */
@media (max-width: 768px) {
  .am-nav-btn {
    width: 80px;
    height: 80px;
    font-size: 0.65rem;
  }
  
  .am-portfolio-btn {
    width: 96px;
    height: 96px;
  }
  
  .am-avatar {
    width: 120px;
    height: 120px;
  }
  
  .am-content-header h2 {
    font-size: 1.5rem;
  }
  
  .am-content-body {
    padding: 1.5rem;
  }
  
  .am-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
  }
  
  .am-infolettre-form {
    flex-direction: column;
    width: 100%;
  }
  
  .am-infolettre-form input[type="email"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .am-nav-circles {
    gap: 0.75rem;
  }
  
  .am-nav-btn {
    width: 70px;
    height: 70px;
    font-size: 0.6rem;
  }
  
  .am-content-stage {
    border-radius: 1.5rem;
  }
  
  .am-content-header {
    padding: 1.5rem;
  }
  
  .am-content-body {
    padding: 1.25rem;
  }
}

/* Single Article */
.am-article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.am-article-card {
  background: var(--color-white);
  border-radius: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  overflow: hidden;
}

.am-article-title {
  font-size: 2rem !important;
  font-weight: 300 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: -0.025em;
}

.am-article-date {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af !important;
  margin-bottom: 2rem !important;
}

.am-article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

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

.am-article-content img {
  border-radius: 1rem;
  margin: 1.5rem 0;
}

.am-article-content .wp-block-audio {
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .am-article-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
  .am-article-title {
    font-size: 1.5rem !important;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}
