/* 
   Rare Anime Treasures - Main Stylesheet
   A modern, responsive design for anime collectibles blog
*/

/* ===== GLOBAL STYLES ===== */
:root {
  /* Main Color Palette */
  --primary-color: #6a3de8;
  --secondary-color: #ff5ca8;
  --accent-color: #00c9ff;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #1f1a36;
  --light-bg: #ffffff;
  --gray-bg: #f5f5f7;
  --border-color: #e0e0e6;
  
  /* Accent Colors */
  --success-color: #34d399;
  --warning-color: #fbbf24;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Typography */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Nunito', sans-serif;
  --mono-font: 'Roboto Mono', monospace;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --footer-height: 400px;
  --card-border-radius: 12px;
  --button-border-radius: 6px;
  --general-border-radius: 8px;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Load Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Nunito:wght@300;400;600&family=Roboto+Mono&display=swap');

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol, dl,
figure,
blockquote,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Make images easier to work with */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Set core a styles */
a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-color);
}

/* General Container */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.3;
  font-weight: 600;
  color: var(--dark-bg);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-lg);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-text {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--button-border-radius);
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-text {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.btn-text:hover::after,
.btn-text:focus::after {
  width: 100%;
}

/* Cookie Banner Buttons */
.btn-cookie {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--button-border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie.accept {
  background-color: var(--success-color);
  color: white;
}

.btn-cookie.customize {
  background-color: var(--info-color);
  color: white;
}

.btn-cookie.decline {
  background-color: var(--gray-bg);
  color: var(--text-color);
}

.btn-cookie:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: var(--light-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: var(--space-sm);
  border-radius: 50%;
}

.logo-container h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

.navbar {
  display: flex;
  list-style: none;
}

.navbar li {
  margin: 0 var(--space-sm);
}

.navbar a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--general-border-radius);
  transition: all var(--transition-fast);
}

.navbar a:hover {
  color: var(--primary-color);
  background-color: rgba(106, 61, 232, 0.05);
}

.navbar a.active {
  color: var(--primary-color);
  background-color: rgba(106, 61, 232, 0.1);
}

.navbar a i {
  margin-right: var(--space-xs);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  color: var(--light-text);
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="none" d="M0,0 L100,0 L100,100 Z" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
  background-size: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: var(--light-text);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  color: var(--light-text);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--light-text);
}

.banner-content p {
  font-size: 1.125rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.about-banner {
  background: linear-gradient(135deg, #5c48d3, #1a1451);
}

.contact-banner {
  background: linear-gradient(135deg, #4b3acb, #2c1e7a);
}

.gallery-banner {
  background: linear-gradient(135deg, #7355f7, #2d226b);
}

/* ===== FEATURED POSTS ===== */
.featured-posts,
.latest-posts {
  padding: var(--space-xxl) var(--space-lg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 2.25rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.post-card {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: var(--space-lg);
}

.post-content h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.post-excerpt {
  color: #666;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  background-color: var(--gray-bg);
  padding: var(--space-xl) 0;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-md);
}

.newsletter-container h2 {
  margin-bottom: var(--space-sm);
}

.newsletter-container p {
  margin-bottom: var(--space-lg);
  color: #666;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--button-border-radius);
}

/* ===== COMPARISON TABLE ===== */
.comparison-table-section {
  padding: var(--space-xxl) var(--space-lg);
  background-color: var(--gray-bg);
}

.table-container {
  overflow-x: auto;
  margin-top: var(--space-xl);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.comparison-table thead {
  background-color: var(--primary-color);
  color: white;
}

.comparison-table thead th {
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: rgba(106, 61, 232, 0.05);
}

.comparison-table tbody tr:hover {
  background-color: rgba(106, 61, 232, 0.1);
}

/* ===== BLOG PAGE ===== */
.blog-main {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-xl);
  padding: var(--space-xxl) var(--space-lg);
}

.blog-filters {
  margin-bottom: var(--space-xl);
}

.blog-filters h3 {
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

.category-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.category-list a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background-color: var(--gray-bg);
  color: var(--text-color);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.category-list a.active,
.category-list a:hover {
  background-color: var(--primary-color);
  color: white;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.blog-post {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-md);
}

.post-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: #777;
}

.post-date,
.post-category {
  display: flex;
  align-items: center;
}

.post-date i,
.post-category i {
  margin-right: var(--space-xs);
}

.post-title {
  margin-bottom: var(--space-sm);
}

.post-author {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-sm);
}

.author-name {
  font-weight: 600;
}

.blog-sidebar {
  margin-top: var(--space-xl);
}

.sidebar-widget {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.widget-title {
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.search-form {
  display: flex;
  gap: var(--space-xs);
}

.search-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--button-border-radius);
}

.search-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--button-border-radius);
  cursor: pointer;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  display: block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gray-bg);
  color: var(--text-color);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.sidebar-form {
  margin-top: var(--space-md);
}

.sidebar-form p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.sidebar-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--button-border-radius);
  margin-bottom: var(--space-md);
}

.featured-item {
  margin-top: var(--space-md);
}

.featured-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--general-border-radius);
  margin-bottom: var(--space-sm);
}

.featured-item h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.featured-item p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: var(--space-sm);
}

/* ===== RELATED CONTENT ===== */
.related-content {
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--gray-bg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.related-card {
  position: relative;
  height: 250px;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.related-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
}

.related-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: white;
}

.related-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card:hover img {
  transform: scale(1.05);
}

/* ===== BLOG POST (FULL ARTICLE) ===== */
.post-main {
  padding: var(--space-xl) var(--space-lg);
}

.blog-post-full {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.post-header {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  text-align: center;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.post-header .post-meta {
  justify-content: center;
  flex-wrap: wrap;
}

.post-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.post-reading-time {
  display: flex;
  align-items: center;
}

.post-reading-time i {
  margin-right: var(--space-xs);
}

.featured-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  position: relative;
}

.featured-image {
  width: 100%;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  text-align: center;
}

.post-content {
  padding: var(--space-xl);
}

.post-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: var(--space-xl);
  font-weight: 500;
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--dark-bg);
}

.post-content ul, .post-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.post-content li {
  margin-bottom: var(--space-sm);
}

.post-content strong {
  color: var(--dark-bg);
}

.post-image-container {
  margin: var(--space-xl) 0;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-content .post-image {
  height: auto;
}

.collector-tip {
  background-color: rgba(106, 61, 232, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--general-border-radius) var(--general-border-radius) 0;
}

.collector-tip h4 {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.collector-tip h4 i {
  margin-right: var(--space-sm);
}

.collector-tip p {
  margin-bottom: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.tags-title {
  font-weight: 600;
  margin-right: var(--space-sm);
}

.post-navigation {
  padding: var(--space-md) var(--space-xl);
  background-color: var(--gray-bg);
  border-top: 1px solid var(--border-color);
}

.post-nav-links {
  display: flex;
  justify-content: space-between;
}

.nav-prev, .nav-next, .nav-back {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.nav-prev i, .nav-next i {
  margin: 0 var(--space-xs);
}

.post-author-bio {
  display: flex;
  padding: var(--space-xl);
  background-color: var(--gray-bg);
  border-top: 1px solid var(--border-color);
}

.author-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-lg);
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
}

.author-bio-content h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: #777;
}

.author-bio-content h4 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.author-bio-content p {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.author-social {
  display: flex;
  gap: var(--space-md);
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  transition: all var(--transition-fast);
}

.author-social a:hover {
  background-color: var(--dark-bg);
  transform: translateY(-2px);
}

.related-posts {
  padding: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.related-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.related-post-card {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-post-image {
  height: 160px;
  object-fit: cover;
}

.related-post-content {
  padding: var(--space-md);
}

.related-post-content h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.related-post-content p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

/* ===== GALLERY PAGE ===== */
.gallery-section {
  padding: var(--space-xl) var(--space-lg);
}

.gallery-filters {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.gallery-filters h3 {
  margin-bottom: var(--space-md);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  background-color: var(--gray-bg);
  color: var(--text-color);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px;
  position: relative;
}

.gallery-item-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 26, 54, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.overlay-content {
  text-align: center;
  color: white;
  padding: var(--space-md);
  transform: translateY(20px);
  transition: transform var(--transition-medium);
}

.overlay-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: white;
}

.overlay-content p {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.item-rarity {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: var(--space-md);
}

.gallery-zoom {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--button-border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-zoom:hover {
  background-color: var(--secondary-color);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  background: white;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  border-radius: var(--card-border-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.close-lightbox {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  z-index: 10;
  cursor: pointer;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

#lightbox-image {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  background-color: #f0f0f0;
}

.lightbox-details {
  padding: var(--space-lg);
  overflow-y: auto;
}

#lightbox-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

#lightbox-description {
  color: #555;
  margin-bottom: var(--space-md);
}

.item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.detail-group {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #777;
}

.lightbox-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ===== CONTACT PAGE ===== */
.contact-main {
  padding: var(--space-xl) var(--space-lg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--container-width);
  margin: 0 auto;
}

.contact-info {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.contact-info h2 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.info-card {
  padding: var(--space-md);
  text-align: center;
  background-color: var(--gray-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.info-card p, .info-card address {
  font-size: 0.9rem;
  color: #555;
  font-style: normal;
}

.location-map {
  margin-top: var(--space-xl);
}

.location-map h3 {
  margin-bottom: var(--space-md);
  text-align: center;
}

.location-map iframe {
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
}

.contact-form-section {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.contact-form-section h2 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.contact-form {
  display: grid;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--general-border-radius);
}

.form-group textarea {
  resize: vertical;
}

.upload-group input {
  padding: var(--space-md) 0;
}

.form-help {
  font-size: 0.85rem;
  color: #666;
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.checkbox-group {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: var(--space-sm);
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

/* Thank you modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  padding: var(--space-xl);
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
}

.modal-content i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: var(--space-md);
}

.modal-content h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.modal-content p {
  margin-bottom: var(--space-md);
  color: #555;
}

/* FAQ Section */
.faq-section {
  margin-top: var(--space-xxl);
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--gray-bg);
  border-radius: var(--card-border-radius);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--light-bg);
  border-radius: var(--general-border-radius);
  overflow: hidden;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: rgba(106, 61, 232, 0.05);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.faq-answer p {
  padding: var(--space-md) 0;
  margin-bottom: 0;
}

/* ===== ABOUT PAGE ===== */
.about-intro {
  padding: var(--space-xxl) var(--space-lg);
}

.about-intro-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  align-items: center;
}

.about-text p {
  margin-bottom: var(--space-md);
}

.about-image {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  height: auto;
}

.about-values {
  padding: var(--space-xxl) var(--space-lg);
  background-color: var(--gray-bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.value-card {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(106, 61, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--primary-color);
  font-size: 1.75rem;
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: #555;
  margin-bottom: 0;
}

.team-section {
  padding: var(--space-xxl) var(--space-lg);
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  color: #555;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.team-member {
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-member h3 {
  margin: var(--space-md) var(--space-md) var(--space-xs);
  font-size: 1.25rem;
}

.team-member p {
  padding: 0 var(--space-md);
  margin-bottom: var(--space-sm);
  color: #555;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.about-timeline {
  padding: var(--space-xxl) var(--space-lg);
  background-color: var(--gray-bg);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: var(--space-xl) auto;
}

.timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--light-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
  font-size: 1.25rem;
}

.timeline-content h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.timeline-content p {
  margin-bottom: 0;
  color: #555;
}

.credentials-section {
  padding: var(--space-xxl) var(--space-lg);
}

.credentials-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  align-items: center;
}

.credentials-text p {
  margin-bottom: var(--space-md);
}

.credentials-logos {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.credential-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.testimonials-section {
  padding: var(--space-xxl) var(--space-lg);
  background-color: var(--primary-color);
  color: white;
}

.testimonials-section .section-title {
  color: white;
}

.testimonials-section .section-title::after {
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.testimonial-slider {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  position: relative;
}

.testimonial {
  display: none;
}

.testimonial-content {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--card-border-radius);
  padding: var(--space-xl);
  position: relative;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  z-index: -1;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: var(--space-lg);
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-md);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.author-info h4 {
  color: white;
  margin-bottom: var(--space-xs);
}

.author-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
  color: var(--light-text);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-content p {
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.social-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-btn.facebook {
  background-color: #3b5998;
}

.social-btn.twitter {
  background-color: #1da1f2;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-btn.linkedin {
  background-color: #0077b5;
}

.social-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
  color: white;
}

.social-btn span {
  margin-left: var(--space-xs);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-section h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.9);
}

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

.social-icons {
  display: flex;
  gap: var(--space-sm);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

address {
  font-style: normal;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  display: inline-block;
  padding: var(--space-xs) 0;
  transition: transform var(--transition-fast);
}

.footer-links a:hover {
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-bg);
  color: white;
  padding: var(--space-lg);
  z-index: 1000;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-more-info {
  font-size: 0.85rem;
  opacity: 0.8;
}

.cookie-more-info a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .container,
  .footer-container {
    width: 95%;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .about-intro-content,
  .credentials-content {
    grid-template-columns: 1fr;
  }
  
  .timeline-content {
    width: 80%;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
  }
  
  .blog-main {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .navbar li {
    margin: 0.25rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .post-image {
    height: 240px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 576px) {
  header {
    flex-direction: column;
    height: auto;
    padding: var(--space-md);
  }
  
  .logo-container {
    margin-bottom: var(--space-md);
  }
  
  .navbar {
    width: 100%;
    justify-content: space-between;
  }
  
  .navbar a {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  
  .navbar a i {
    margin-right: 0;
  }
  
  .navbar li span {
    display: none;
  }
  
  .post-meta, 
  .post-details {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .post-author {
    margin-bottom: var(--space-sm);
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
  }
}

/* Animation Classes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-in-out;
}
