/* 
  Data Unifiers - Main Stylesheet
  A comprehensive styling for an art blog with modern, elegant design
*/

/* ===== Base Styles ===== */
:root {
  --primary-color: #6b46c1;
  --primary-light: #8a6aca;
  --primary-dark: #4a3080;
  --secondary-color: #f0b429;
  --accent-color: #e53e3e;
  --text-color: #2d3748;
  --text-light: #4a5568;
  --text-dark: #1a202c;
  --background: #ffffff;
  --background-alt: #f7fafc;
  --border-color: #e2e8f0;
  --success-color: #38a169;
  --error-color: #e53e3e;
  --font-primary: 'Merriweather', Georgia, serif;
  --font-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 8px;
  --container-width: 1200px;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-light);
}

blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: #daa520;
}

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

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

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

.btn-reject:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

.btn-customize:hover {
  background-color: rgba(107, 70, 193, 0.1);
  transform: translateY(-2px);
}

/* ===== Header & Navigation ===== */
header {
  padding: 1.25rem 0;
  background-color: var(--background);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--text-color);
  padding: 0.5rem;
  position: relative;
}

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

nav a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

/* ===== Hero Section ===== */
.hero {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 5rem 0;
  background-image: linear-gradient(to right, rgba(74, 48, 128, 0.9), rgba(107, 70, 193, 0.8)), url('images/7.jpg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page Header ===== */
.page-header {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
  background-image: linear-gradient(to right, rgba(74, 48, 128, 0.9), rgba(107, 70, 193, 0.8)), url('images/7.jpg');
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* ===== Featured Posts Section ===== */
.featured-posts {
  padding: 5rem 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

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

.post-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

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

.post-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.post-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.read-more {
  font-family: var(--font-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-size: 0.95rem;
}

.read-more:after {
  content: '→';
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover:after {
  transform: translateX(4px);
}

/* ===== Expert Interview Section ===== */
.expert-interview {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

.interview-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.interview-container img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  height: 100%;
  object-fit: cover;
}

.interview-content h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.interview-intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.interview-qa {
  background-color: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.question {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.answer {
  margin-bottom: 2rem;
}

.answer:last-child {
  margin-bottom: 0;
}

/* ===== Newsletter Section ===== */
.newsletter {
  background-color: var(--primary-dark);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--secondary-color);
}

.newsletter-form button:hover {
  background-color: #daa520;
}

/* ===== Footer ===== */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-links h3, .footer-policies h3, .footer-social h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3:after, .footer-policies h3:after, .footer-social h3:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.footer-links ul, .footer-policies ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a, .footer-policies a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.social-icons {
  display: flex;
  gap: 1rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  border-top: 3px solid var(--primary-color);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.5s ease;
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

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

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
}

.cookie-more-info {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== About Page ===== */
.about-intro {
  padding: 2rem 0 5rem;
}

.about-intro .container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

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

.team {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

.team h2, .team-intro {
  text-align: center;
}

.team-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.5rem;
}

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

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

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member h3, .team-member p {
  padding: 0 1.5rem;
}

.team-member h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
}

.team-member p:last-of-type {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.values {
  padding: 5rem 0;
}

.values h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  background-color: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

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

.value-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(107, 70, 193, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
}

.join-us {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
}

.join-us h2 {
  color: white;
}

.join-us p {
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 2rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2, .contact-form-container h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.contact-info p {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(107, 70, 193, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-content p {
  margin-bottom: 0;
}

.social-contact h3 {
  margin-bottom: 1.5rem;
}

.contact-form-container {
  background-color: var(--background);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input, .form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
}

.form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 1rem;
}

.map-section {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  position: relative;
}

.map-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.map-placeholder p {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  z-index: 1;
  margin-bottom: 0;
}

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

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--background);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-dark);
}

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  color: var(--success-color);
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 2rem;
}

/* ===== Blog Post ===== */
.blog-post {
  padding: 3rem 0 5rem;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-header h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.blog-post .post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.blog-post h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.author-bio {
  display: flex;
  gap: 1.5rem;
  background-color: var(--background-alt);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

.author-bio img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio h3 {
  margin-bottom: 0.5rem;
}

.author-bio p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.post-footer {
  margin: 3rem auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 800px;
}

.tags a {
  display: inline-block;
  background-color: rgba(107, 70, 193, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(107, 70, 193, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

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

.related-posts {
  max-width: 1000px;
  margin: 0 auto;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .interview-container {
    grid-template-columns: 1fr;
  }
  
  .interview-container img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }

  .about-intro .container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    grid-row: 1;
    margin-bottom: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-card img {
    height: 250px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .post-footer {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }

  .post-header h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}
