/* Projects Page Specific Styles */
.projects-container {
  max-width: 1000px;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 3vh;
  flex: 1;
  min-height: 0;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  margin-top: 2rem;
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.back-link i {
  margin-right: 8px;
}

.back-link:hover {
  color: transparent;
  background-image: linear-gradient(to right, #ff6a4d, #e83e8c);
  -webkit-background-clip: text;
  background-clip: text;
}

.subtitle {
  max-width: 700px;
  margin: 1.5rem auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

#theme-toggle {
  position: fixed;
  bottom: 10px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e1e1e;
  color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: none;
  z-index: 100;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  width: 100%;
  min-width: 0;
  background-color: rgba(30, 30, 30, 0.95);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 100%;
}

.project-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 106, 77, 0.3);
}

.project-image {
  aspect-ratio: 1024 / 768;
  height: auto;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.project-image::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.22) 50%, rgba(0,0,0,0.10) 100%);
  pointer-events: none;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.project-info p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
  color: #e0e0e0;
  word-break: break-word;
  hyphens: auto;
  text-align: justify;
}

.project-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.project-tags span {
  background-image: linear-gradient(to right, rgba(255, 106, 77, 0.4), rgba(232, 62, 140, 0.4));
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.view-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  transition: 0.3s;
  background-image: linear-gradient(to right, rgba(255, 106, 77, 0.8), rgba(232, 62, 140, 0.8));
  padding: 8px 15px;
  border-radius: 20px;
  width: 100%;
}

.view-project i {
  margin-left: 8px;
  font-size: 0.8rem;
}

.view-project:hover {
  background-image: linear-gradient(to right, #ff6a4d, #e83e8c);
}

.view-project.outlined {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border 0.3s;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.view-project.outlined:hover, .view-project.outlined:focus {
  background-image: linear-gradient(to right, #ff6a4d, #e83e8c);
  color: #fff;
  border-color: transparent;
}

.projects-footer {
  width: 100%;
  min-height: 7.6vh;
  font-size: 0.95rem;
  color: #999;
  border-top: 1px solid #333;
  background: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 1.25rem 0 1.1rem 0;
  margin-top: auto;
  position: relative;
}

body.light .back-link:hover {
  color: transparent;
  background-image: linear-gradient(to right, #ff6a4d, #e83e8c);
  -webkit-background-clip: text;
  background-clip: text;
}

body.light .view-project:hover {
  background-image: linear-gradient(to right, #ff6a4d, #e83e8c);
}

/* Light Mode Styles */
body.light .back-link {
  color: #121212;
}

body.light .project-card {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .project-card:hover {
  border: 1px solid rgba(255, 106, 77, 0.5);
}

body.light .project-image {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .project-info h3 {
  color: #121212;
}

body.light .project-info p {
  color: #333;
}

body.light .project-tags span {
  background-image: linear-gradient(to right, rgba(255, 106, 77, 0.2), rgba(232, 62, 140, 0.2));
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.light .view-project {
  color: #ffffff;
  background-image: linear-gradient(to right, rgba(255, 106, 77, 0.8), rgba(232, 62, 140, 0.8));
}

body.light .view-project.outlined {
  background: transparent;
  color: #121212;
  border: 2px solid #121212;
}

body.light .view-project.outlined:hover, body.light .view-project.outlined:focus {
  background-image: linear-gradient(to right, #ff6a4d, #e83e8c);
  color: #fff;
  border-color: transparent;
}

body.light .projects-footer {
  color: #666;
  border-top: 1px solid #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .project-image {
    height: 180px;
  }
  
  .project-info {
    padding: 1.2rem;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .project-info p {
    font-size: 0.9rem;
  }

  .projects-container {
    padding: 0 1rem;
  }
  .projects-footer {
    font-size: 0.85rem;
    min-height: 48px;
    padding: 1rem 0 0.9rem 0;
  }
}

@media (max-width: 480px) {
  .project-image {
    height: 200px;
  }
  
  .page-header {
    margin-bottom: 1.5rem;
  }
  
  .back-link {
    margin-bottom: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
    margin: 1rem auto;
  }
  
  /* Mobil görünüm body ayarları */
  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .projects-container {
    padding: 2rem 0.5rem;
  }
  .projects-footer {
    font-size: 0.8rem;
    min-height: 32px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .view-project.outlined {
    font-size: 0.95rem;
    padding: 10px 0;
  }

  #theme-toggle {
    top: 15px;
    right: 10px;
    width: 35px;
    height: 35px;    font-size: 1rem;
  }
}

/* Placeholder Styles */
.project-card.placeholder {
  background-color: rgba(30, 30, 30, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  height: 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 1.5s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.project-card.placeholder .project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  height: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
  flex-grow: 1;
  flex-basis: 0;
}

.placeholder-image {
  width: 100%;
  aspect-ratio: 1024 / 768;
  height: 216.5px;
  background-color: #242424;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-sizing: border-box;
  display: block;
}

.placeholder-title {
  height: 1.3rem;
  width: 70%;
  background-color: rgba(255,255,255,0.13);
  margin-bottom: 1.24rem;
  border-radius: 4px;
  margin-top: 0.2rem;
}

.placeholder-desc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.7rem;
  width: 100%;
  flex-grow: 1;
  justify-content: flex-start;
}

.placeholder-desc span {
  display: block;
  height: 0.95rem;
  background-color: rgba(255,255,255,0.13);
  border-radius: 3px;
  width: 100%;
  margin-bottom: 0.1rem;
}
.placeholder-desc span:nth-child(2) {
  width: 95%;
}
.placeholder-desc span:nth-child(3) {
  width: 80%;
}

.placeholder-btn {
  height: 38px;
  width: 100%;
  background-color: rgba(255,255,255,0.13);
  border-radius: 20px;
  margin-top: auto;
  border: 2px solid #fff;
  box-sizing: border-box;
  padding: 8px 15px;
  min-height: 38px;
  flex-shrink: 0;
  margin-bottom: 0.15rem;
}

@media (max-width: 900px) {
  .placeholder-image {
    height: 262.5px;
    width: 100%;
  }
  .project-card.placeholder .project-info {
    padding: 1.2rem;
  }
}

@media (max-width: 768px) {
  .placeholder-image {
    height: 262.5px;
    width: 100%;
  }
  .project-card.placeholder .project-info {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .placeholder-image {
    aspect-ratio: 394 / 200;
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
  }
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; }
}

@keyframes shimmer {
  100% { left: 100%; }
}

.project-card.placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.01)
  );
  animation: shimmer 2s infinite;
  z-index: 1;
}

body.light .project-card.placeholder {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light .placeholder-image {
  background-color: #f5f5f5;
}

body.light .placeholder-title,
body.light .placeholder-btn,
body.light .placeholder-desc span {
  background-color: rgba(0, 0, 0, 0.06);
}

body.light .project-card.placeholder::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.01),
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.01)
  );
}