/*
 * Lider Metal - Projeler Sayfası Stilleri V2.0
 * Modern Filter Dropdown & Card Design
 * Compatible with hakkimizda.css design system
 */

/* ============================================
   Başlık Stili (Görseldeki gibi)
   ============================================ */

.biz-kimiz-title {
  font-size: 42px;
  font-weight: 700;
  color: #31508c;
  margin-bottom: 14px;
  line-height: 1.3;
}

.biz-kimiz-title .subtitle {
  display: block;
  font-weight: 400;
  font-size: 36px;
  color: #777;
}

/* ============================================
   Filter Section - Modern Dropdown
   ============================================ */

.filter-section {
  position: relative;
  padding: 40px 0 80px;
  z-index: 50;
  width: 100%;
}

.filter-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 100;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #31508c;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-label svg {
  flex-shrink: 0;
}

/* Dropdown Container */
.filter-dropdown {
  position: relative;
  flex: 0 0 350px;
  max-width: 350px;
  z-index: 1000;
}

/* Dropdown Button */
.filter-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #31508c;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-dropdown-btn:hover {
  border-color: #31508c;
  box-shadow: 0 4px 12px rgba(49, 80, 142, 0.15);
}

.filter-dropdown-btn.open {
  border-color: #31508c;
  box-shadow: 0 4px 12px rgba(49, 80, 142, 0.2);
}

.filter-dropdown-btn .selected-text {
  flex: 1;
  text-align: left;
}

.filter-dropdown-btn .dropdown-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.filter-dropdown-btn.open .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 380px;
  overflow-y: auto;
  z-index: 10000;
}

.filter-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Scrollbar styling */
.filter-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown-menu::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 10px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* Dropdown Items */
.filter-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.filter-dropdown-item:last-child {
  border-bottom: none;
}

.filter-dropdown-item:hover {
  background: #f8f9fa;
  color: #31508c;
}

.filter-dropdown-item.active {
  background: #f0f4ff;
  color: #31508c;
  font-weight: 600;
}

/* Check Icon */
.filter-dropdown-item .item-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #31508c;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.filter-dropdown-item.active .item-check {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   Projects Main Section
   ============================================ */

.projects-main-section {
  position: relative;
  padding: 0 0 60px;
  z-index: 1;
  width: 100%;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

/* ============================================
   Project Card - Görseldeki Border Stili
   ============================================ */

.project-card {
  background: transparent;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.project-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover {
  transform: translateY(-6px) scale(1);
}

/* Project Image Box - Sol Üst Border */
.project-image-box {
  width: 100%;
  height: 220px;
  background: #d4d4d4;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Sol Üst Border (Mavi) */
.project-image-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: #31508c;
  border-radius: 0 0 60px 0;
  z-index: 2;
}

.project-card:hover .project-image-box {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-image-box::before {
  width: 90px;
  height: 90px;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image-box img {
  transform: scale(1.08);
}

/* Project Content */
.project-content {
  padding: 0;
}

/* Project Title */
.project-title {
  font-size: 18px;
  font-weight: 700;
  color: #31508c;
  margin-bottom: 14px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #2C4475;
}

/* Project Description */
.project-description {
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

/* Project Link */
.project-link {
  font-size: 14px;
  font-weight: 600;
  color: #31508c;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #31508c;
  transition: width 0.3s ease;
}

.project-card:hover .project-link {
  color: #2C4475;
  transform: translateX(4px);
}

.project-card:hover .project-link::after {
  width: calc(100% - 25px);
}

/* ============================================
   No Results Message
   ============================================ */

.no-results {
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 40px;
}

.no-results-icon {
  color: #31508c;
  margin-bottom: 24px;
  opacity: 0.6;
}

.no-results-icon svg {
  width: 64px;
  height: 64px;
}

.no-results-title {
  font-size: 24px;
  font-weight: 700;
  color: #31508c;
  margin-bottom: 12px;
}

.no-results-text {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}



/* ============================================
   RESPONSIVE - TABLET (768px - 991px)
   ============================================ */

@media (max-width: 991px) {
  .biz-kimiz-title {
    font-size: 36px;
  }

  .biz-kimiz-title .subtitle {
    font-size: 30px;
  }

  .filter-section {
    padding: 35px 0 75px;
    z-index: 50;
  }

  .filter-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .filter-label {
    font-size: 15px;
  }

  .filter-dropdown {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .filter-dropdown-btn {
    padding: 13px 18px;
    font-size: 14.5px;
  }

  .projects-main-section {
    padding: 0 0 55px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .project-image-box {
    height: 200px;
  }

  .project-image-box::before {
    width: 70px;
    height: 70px;
  }

  .project-card:hover .project-image-box::before {
    width: 80px;
    height: 80px;
  }

  .project-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .project-description {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

}

/* ============================================
   RESPONSIVE - MOBILE (576px - 767px)
   ============================================ */

@media (max-width: 767px) {
  .biz-kimiz-title {
    font-size: 32px;
  }

  .biz-kimiz-title .subtitle {
    font-size: 26px;
  }

  .filter-section {
    padding: 30px 0 70px;
    z-index: 50;
  }

  .filter-wrapper {
    align-items: flex-start;
  }

  .filter-label {
    font-size: 14px;
  }

  .filter-dropdown {
    width: 100%;
    max-width: 100%;
  }

  .filter-dropdown-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .filter-dropdown-item {
    padding: 11px 18px;
    font-size: 13.5px;
  }

  .projects-main-section {
    padding: 0 0 50px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 480px;
    margin: 0 auto 45px;
  }

  .project-image-box {
    height: 190px;
  }

  .project-image-box::before {
    width: 65px;
    height: 65px;
  }

  .project-card:hover .project-image-box::before {
    width: 75px;
    height: 75px;
  }

  .project-title {
    font-size: 16.5px;
    margin-bottom: 12px;
  }

  .project-description {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (≤ 575px)
   ============================================ */

@media (max-width: 575px) {
  .biz-kimiz-title {
    font-size: 28px;
  }

  .biz-kimiz-title .subtitle {
    font-size: 24px;
  }

  .filter-section {
    padding: 25px 0 65px;
    z-index: 50;
  }

  .filter-wrapper {
    align-items: flex-start;
  }

  .filter-label {
    font-size: 13.5px;
  }

  .filter-label svg {
    width: 18px;
    height: 18px;
  }

  .filter-dropdown {
    width: 100%;
  }

  .filter-dropdown-btn {
    padding: 11px 15px;
    font-size: 13.5px;
  }

  .filter-dropdown-btn .dropdown-icon {
    width: 18px;
    height: 18px;
  }

  .filter-dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
  }

  .projects-main-section {
    padding: 0 0 45px;
  }

  .projects-grid {
    gap: 26px;
    margin-bottom: 40px;
  }

  .project-image-box {
    height: 180px;
  }

  .project-image-box::before {
    width: 60px;
    height: 60px;
  }

  .project-card:hover .project-image-box::before {
    width: 70px;
    height: 70px;
  }

  .project-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .project-description {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .project-link {
    font-size: 13.5px;
  }

  .no-results {
    padding: 60px 20px;
  }

  .no-results-icon svg {
    width: 52px;
    height: 52px;
  }

  .no-results-title {
    font-size: 20px;
  }

  .no-results-text {
    font-size: 14px;
  }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL (≤ 379px)
   ============================================ */

@media (max-width: 379px) {
  .biz-kimiz-title {
    font-size: 24px;
  }

  .biz-kimiz-title .subtitle {
    font-size: 22px;
  }

  .filter-section {
    padding: 22px 0 60px;
  }

  .filter-dropdown-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .filter-dropdown-item {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .projects-main-section {
    padding: 0 0 40px;
  }

  .projects-grid {
    gap: 24px;
  }

  .project-image-box {
    height: 170px;
  }

  .project-image-box::before {
    width: 55px;
    height: 55px;
  }

  .project-card:hover .project-image-box::before {
    width: 65px;
    height: 65px;
  }

  .project-title {
    font-size: 15px;
  }

  .project-description {
    font-size: 12.5px;
  }

  .project-link {
    font-size: 13px;
  }

}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .filter-section {
    display: none;
  }

  .projects-main-section {
    padding: 30px 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    opacity: 1;
    transform: none;
  }

  .project-card:hover {
    transform: none;
    box-shadow: none;
  }

  .project-image-box::before {
    display: none;
  }

  .no-results {
    display: none;
  }
}

/* ============================================
   Animation Keyframes
   ============================================ */

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

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