:root {
  --primary: #ff6b6b;
  --secondary: #ffa5a5;
  --accent: #4ecdc4;
  --light: #f7fff7;
  --dark: #2d3142;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: var(--dark);
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="white"/><path d="M20 20h10v10H20zm50 0h10v10H70zm-50 50h10v10H20zm50 0h10v10H70z" fill="%23ff6b6b" opacity="0.07"/></svg>');
  background-repeat: repeat;
  font-size: 16px;
  line-height: 1.5;
}

/* Responsive font sizes */
html {
  font-size: 16px;
}
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.seasonal-info h3,
main > section:nth-of-type(3) > h2 {
    color: white !important;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  border-bottom: none !important;
}

.logo-text:hover {
  text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.3);
  transform: scale(1.05);
}

.profile-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
  background-image: url('../image/logo.png');
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
}

.profile-image:hover {
  transform: scale(1.1);
  border-color: var(--accent);
}

.social-media {
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.3s ease;
  margin-left: 15px;
}

.social-media:hover {
  color: var(--accent);
  transform: scale(1.2) rotate(10deg);
}

.search-container {
  display: flex;
  position: relative;
  margin-left: auto;
  margin-right: 15px;
  width: 250px;
}

@media (max-width: 992px) {
  .search-container {
    margin: 1rem 0;
    width: 100%;
    order: 3;
  }
}

.search-input {
  padding: 0.7rem 1rem;
  border: 2px solid #eee;
  border-radius: 25px;
  font-size: 0.9rem;
  width: 100%;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hamburger Menu için */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
    order: 2;
    margin-left: auto;
  }
}

nav {
  max-width: 1200px;
  margin: 1rem auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  nav {
    width: 100%;
    border-radius: 0;
    margin: 0 auto;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  .nav-list.active {
    max-height: 500px;
    padding: 1rem 0;
  }
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  text-decoration: none;
  color: var(--dark);
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.nav-list a:hover::after {
  width: 80%;
  left: 10%;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Abonelik formu stilleri */
.newsletter {
  background-color: var(--primary);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
  color: white;
}

.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.newsletter-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--dark);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 45px;
}

@media (min-width: 577px) {
  .newsletter-form input {
    border-radius: 30px 0 0 30px;
  }
  
  .newsletter-form button {
    border-radius: 0 30px 30px 0;
  }
}

.newsletter-form button:hover {
  background-color: var(--accent);
}

/* Kategori stilleri */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 576px) {
  .categories {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.category-image {
  height: 150px;
  background-image: url('../image/demo.jpg');
  background-size: cover;
  background-position: center;
}

.category-title {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
}

.category-link {
  text-decoration: none;
  color: inherit;
}

/* Kategori resim stilleri */
.corbalar-img {
  background-image: url('../image/corbalar.jpg');
}

.ana-yemekler-img {
  background-image: url('../image/ana-yemekler.jpg');
}

.tatlilar-img {
  background-image: url('../image/tatlilar.jpg');
}

.salatalar-img {
  background-image: url('../image/salatalar.jpg');
}

/* Bugün Ne Pişirsem bölümü stilleri */
.random-recipe {
  background-color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.random-recipe h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.random-recipe p {
  color: #666;
  margin-bottom: 1.5rem;
}

.random-recipe-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .random-recipe-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .random-recipe {
    padding: 1.5rem;
  }
}

.random-recipe-image {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  background-image: url('../image/random-recipe.jpg');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .random-recipe-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

.random-recipe-info {
  flex: 1;
}

.random-recipe-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.random-recipe-info p {
  margin-bottom: 1.5rem;
}

.random-recipe-button {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.random-recipe-button:hover {
  background-color: var(--primary);
  color: white;
}

/* Tarifler bölümü stilleri */
.recipes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .recipes {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .recipes {
    grid-template-columns: 1fr;
  }
}

.recipe-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recipe-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
  .recipe-card:hover {
    transform: translateY(-10px);
  }
}

.recipe-image {
  height: 200px;
  background-image: url('../image/demo.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.recipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 107, 107, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  opacity: 0;
  transform: scale(1.2);
  transition: all 0.3s ease;
}

.recipe-card:hover .recipe-overlay {
  opacity: 1;
  transform: scale(1);
}

.recipe-info {
  padding: 1.5rem;
}

.recipe-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

@media (max-width: 350px) {
  .recipe-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.recipe-desc {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.recipe-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.recipe-button:hover {
  background-color: var(--accent);
  transform: translateX(5px);
}

/* Sosyal medya paylaşım butonları */
.social-share {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee;
  border: none;
  color: var(--dark);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-button:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Mevsimlik tarifler bölümü */
.seasonal-recipes {
  margin-bottom: 3rem;
}

.seasonal-banner {
  height: 200px;
  border-radius: 15px;
  background-image: linear-gradient(to right, rgba(255, 107, 107, 0.9), rgba(255, 107, 107, 0.7)), url('../image/seasonal.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 2rem;
  color: white;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .seasonal-banner {
    height: auto;
    text-align: center;
    padding: 2rem 1rem;
    flex-direction: column;
  }
}

.seasonal-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.seasonal-info p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  max-width: 500px;
}

@media (max-width: 768px) {
  .seasonal-info p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.seasonal-info .recipe-button {
  background-color: white;
  color: var(--primary);
}

.seasonal-info .recipe-button:hover {
  background-color: var(--dark);
  color: white;
}

/* Porsiyon hesaplayıcı stilleri */
.portion-calculator {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  border: 1px solid #eee;
}

.portion-calculator h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.portion-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portion-button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background-color: var(--primary);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portion-display {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Püf noktaları için ikon stilleri */
.tip-icon {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Footer stilleri */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

@media (max-width: 576px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.footer-column p {
  line-height: 1.6;
  color: #ccc;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  color: #ccc;
}

.footer-contact li i {
  margin-right: 10px;
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 0.2rem;
  text-align: center;
  border-top: 1px solid var(--secondary);
  font-size: 0.9rem;
  color: #ffffff;
}

/* Animasyonlar */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating {
  animation: float 0s ease-in-out infinite;
}

/* Tarif kartı ve kategori kartı hover animasyonları */
.recipe-card:hover,
.category-card:hover,
.random-recipe-card,
.seasonal-banner {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover,
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Hamburger menü işlevsellği için JavaScript */
document.addEventListener('DOMContentLoaded', function() {
  const hamburgerMenu = document.querySelector('.hamburger-menu');
  const navList = document.querySelector('.nav-list');
  
  if (hamburgerMenu) {
    hamburgerMenu.addEventListener('click', function() {
      navList.classList.toggle('active');
      
      // Hamburger menü animasyonu
      const bars = this.querySelectorAll('span');
      bars[0].classList.toggle('rotate-45');
      bars[1].classList.toggle('opacity-0');
      bars[2].classList.toggle('rotate-minus-45');
    });
  }
  
  // Ekran boyutu değiştiğinde 
  window.addEventListener('resize', function() {
    if (window.innerWidth > 768) {
      navList.classList.remove('active');
    }
  });
});

/* Ekstra CSS sınıfları hamburger menü için */
.rotate-45 {
  transform: translateY(9px) rotate(45deg);
}

.opacity-0 {
  opacity: 0;
}

.rotate-minus-45 {
  transform: translateY(-9px) rotate(-45deg);
}