/* 
 * MewMertr - Main Stylesheet
 * Theme: Turkish Lifestyle Blog
 */

/* Base Styles & Reset */
:root {
  --primary-color: #e35a24;
  --secondary-color: #005481;
  --tertiary-color: #8e432e;
  --light-color: #f5f5f5;
  --dark-color: #333333;
  --text-color: #444444;
  --border-color: #e0e0e0;
  --hover-color: #ff7e3f;
  --footer-color: #002e46;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --gray-color: #757575;
  --light-gray: #eeeeee;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --content-width: 1200px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
}

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

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

ul, ol {
  list-style: none;
}

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

button, .btn {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.8rem;
}

h6 {
  font-size: 1.6rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Layout & Containers */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

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

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

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

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

.btn-tertiary:hover {
  background-color: var(--light-gray);
  color: var(--dark-color);
}

/* Header */
header {
  background-color: #ffffff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo img {
  height: 6rem;
  width: auto;
}

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

nav a {
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--dark-color);
  padding: 0.5rem 0;
  position: relative;
}

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

nav a:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover:after, nav a.active:after {
  width: 100%;
}

/* Welcome Banner */
.welcome-banner {
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 0;
  text-align: center;
}

.welcome-banner p {
  margin: 0;
  font-size: 1.6rem;
}

/* Spell Check Button */
#spell-check-btn {
  background-color: var(--light-color);
  color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--secondary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

#spell-check-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 12rem 0;
}

.hero h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  color: white;
}

.hero p {
  font-size: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Featured Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
  gap: 3rem;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.post-image {
  height: 24rem;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-content {
  padding: 2rem;
}

.post-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.post-meta {
  color: var(--gray-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

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

.read-more:hover:after {
  margin-left: 1rem;
}

.view-all {
  text-align: center;
  margin-top: 4rem;
}

/* Newsletter */
.newsletter {
  background-color: var(--light-gray);
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1.5rem;
}

.newsletter p {
  max-width: 700px;
  margin: 0 auto 3rem;
}

#newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

#newsletter-form input {
  flex: 1;
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1.6rem;
}

/* Footer */
footer {
  background-color: var(--footer-color);
  color: white;
  padding: 6rem 0 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
}

.footer-logo img {
  height: 5rem;
  margin-bottom: 1.5rem;
}

.footer-links h3, .footer-contact h3 {
  color: white;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-contact i {
  margin-right: 1rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  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);
}

/* Blog Page */
.page-header {
  background-color: var(--light-gray);
  text-align: center;
  padding: 8rem 0;
}

.blog-posts {
  padding-bottom: 8rem;
}

/* Blog Post */
.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-featured-image {
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.blog-post h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 2.8rem;
}

.blog-post ul, .blog-post ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.blog-post ul {
  list-style-type: disc;
}

.blog-post ol {
  list-style-type: decimal;
}

.blog-post li {
  margin-bottom: 1rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0;
}

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  background-color: var(--light-gray);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.4rem;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.post-share span {
  font-weight: 600;
}

.post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  background-color: var(--light-gray);
  border-radius: 50%;
  color: var(--dark-color);
}

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

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 6rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.related-posts {
  background-color: var(--light-gray);
}

/* About Page */
.about-content {
  max-width: 800px;
  margin: 0 auto 6rem;
}

.about-content ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin-bottom: 3rem;
}

.team-section {
  margin-top: 6rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.team-member {
  text-align: center;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.team-member img {
  width: 18rem;
  height: 18rem;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

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

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 6rem;
  margin-bottom: 6rem;
}

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

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background-color: var(--light-gray);
  border-radius: 50%;
  color: var(--primary-color);
}

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

.form-group {
  margin-bottom: 2rem;
}

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1.6rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.map-container {
  height: 40rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.responsive-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 4rem;
  border-radius: var(--border-radius);
  max-width: 50rem;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--gray-color);
  cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 2rem 0;
  display: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  
  .header-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  }
  
  #newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 8rem 0;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    text-align: center;
  }
}

/* Icon styles for custom text icons */
[class^="icon-"] {
  font-family: 'Arial', sans-serif;
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: middle;
}

.icon-location:before {
  content: '📍';
}

.icon-phone:before {
  content: '📞';
}

.icon-email:before {
  content: '✉️';
}
