/* CSS Variables */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #4895ef;
  --secondary: #f72585;
  --accent: #4cc9f0;
  --dark-bg: #0f0f1a;
  --dark-card: #1a1a2e;
  --dark-card-hover: #20203a;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --text-muted: #6c757d;
  --success: #4bb543;
  --warning: #ffcc00;
  --error: #f44336;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.05;
  filter: blur(40px);
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 15%;
  animation-delay: -10s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 20%;
  animation-delay: -15s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, 20px) rotate(90deg);
  }
  50% {
    transform: translate(0, 40px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 20px) rotate(270deg);
  }
}

/* Layout */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 40px 0 20px;
  text-align: center;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.logo-icon {
  font-size: 2.5rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.subtitle em {
  color: var(--primary-light);
  font-style: normal;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  background: var(--dark-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-header i {
  font-size: 1.5rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  border-radius: var(--border-radius);
  padding: 12px 20px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(67, 97, 238, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Auth Section */
.auth-state {
  margin-bottom: 20px;
  font-size: 1rem;
}

.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Forms */
.email-form {
  margin-top: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.textarea-group {
  margin-bottom: 0;
}

textarea {
  width: 100%;
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
  min-height: 120px;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.char-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

/* Comments */
.comments-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
}

.comment:hover {
  border-color: rgba(67, 97, 238, 0.3);
  transform: translateX(5px);
}

.comment::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  opacity: 0;
  transition: var(--transition);
}

.comment:hover::before {
  opacity: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: 600;
}

.timestamp {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-body p {
  margin: 0;
  line-height: 1.6;
}

.btn-like {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 20px;
}

.btn-like:hover {
  color: var(--secondary);
  background: rgba(247, 37, 133, 0.1);
}

.btn-like.active {
  color: var(--secondary);
}

.btn-like.active i {
  font-weight: 900;
}

/* Status Messages */
.status-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  display: none;
}

.status-message.success {
  background: rgba(75, 181, 67, 0.1);
  color: var(--success);
  border-left: 3px solid var(--success);
  display: block;
}

.status-message.error {
  background: rgba(244, 67, 54, 0.1);
  color: var(--error);
  border-left: 3px solid var(--error);
  display: block;
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  flex: 1;
  min-width: 300px;
}

.footer-text p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* Utility Classes */
.hidden {
  display: none;
}

.hint {
  opacity: 0.8;
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
}

.load-more {
  width: 100%;
  margin-top: 20px;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.comment.new {
  animation: fadeInUp 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .card {
    padding: 20px;
  }
  
  .auth-actions, .form-actions {
    flex-direction: column;
  }
  
  .auth-actions button, .form-actions button {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}
/* Policy Page Styles */
.policy-content h3 {
  margin: 20px 0 10px;
  color: var(--primary-light);
  font-size: 1.2rem;
}

.policy-content ul {
  margin: 10px 0 20px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.last-updated {
  margin-top: 20px;
  padding: 15px;
  background: rgba(67, 97, 238, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
}

/* Contact Page Styles */
.contact-methods {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.contact-method {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info h3 {
  margin: 0 0 8px;
  color: var(--primary-light);
}

.contact-info p {
  margin: 0 0 12px;
  opacity: 0.8;
}

.contact-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color
/* Author Page Styles */
.author-content {
  margin-top: 20px;
}

.author-profile {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.author-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  flex-shrink: 0;
}

.author-info h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  color: var(--primary-light);
}

.author-bio {
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.author-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.book-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 97, 238, 0.3);
}

.book-cover {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-placeholder {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.7);
}

.cover-placeholder.small {
  font-size: 2rem;
}

.book-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.book-info {
  padding: 20px;
}

.book-info h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.book-description {
  margin: 0 0 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.book-year {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--warning);
}

.book-rating span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.book-actions {
  display: flex;
  gap: 10px;
}

.book-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Books List */
.books-list {
  margin-top: 20px;
}

.book-list-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.book-list-item:hover {
  background: rgba(0, 0, 0, 0.1);
}

.book-list-item:last-child {
  border-bottom: none;
}

.list-book-cover {
  flex-shrink: 0;
}

.list-book-info {
  flex: 1;
}

.list-book-info h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.list-book-description {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.list-book-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.book-pages {
  font-style: italic;
}

.list-book-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Awards Section */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.award-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.award-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.award-info h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.award-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Events Section */
.events-content {
  margin-top: 20px;
}

.event-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-item:last-child {
  border-bottom: none;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--border-radius);
  color: white;
  flex-shrink: 0;
}

.event-month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event-info {
  flex: 1;
}

.event-info h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
}

.event-info p {
  margin: 0 0 10px;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .author-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .author-stats {
    justify-content: center;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
  }
  
  .book-list-item {
    flex-direction: column;
    text-align: center;
  }
  
  .list-book-meta {
    justify-content: center;
  }
  
  .awards-grid {
    grid-template-columns: 1fr;
  }
  
  .event-item {
    flex-direction: column;
    text-align: center;
  }
  
  .event-date {
    align-self: center;
  }
}    
.site-header{display:flex;align-items:center;gap:1rem;justify-content:space-between}
.site-nav{display:flex;gap:1rem;align-items:center}
.site-nav a{padding:.5rem .75rem;border-radius:.5rem;opacity:.9}
.site-nav a.active{outline:2px solid #5b8dff;opacity:1}
.nav-toggle{display:none}
@media (max-width: 800px){
  .nav-toggle{display:block}
  .site-nav{display:none;flex-direction:column;align-items:flex-start}
  .site-nav.open{display:flex}
}
.topnav { display:flex; gap:1rem; align-items:center; }
.topnav a { text-decoration:none; color:#cfd8ff; padding:.4rem .6rem; border-radius:.4rem; }
.topnav a[aria-current="page"] { background:#2b3a74; color:#fff; }
