/* =============================================
   Çalışma Alanları Sayfası - Modern ve Responsive
   ============================================= */

/* === Banner === */
.practice-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height, 80px);
}

.practice-banner-container {
  width: 100%;
  max-width: 100%;
}

.practice-banner-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.practice-banner-image img {
  height: auto;
  display: block;
  object-fit: cover;
}

/* === Content Section === */
.practice-content-section {
  padding: 20px;
}

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

.practice-main-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a5f5a;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.practice-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Grid === */
.practice-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

/* === Card === */
.practice-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  background: #000;
  height: 380px;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* === Image Container === */
.practice-card-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.practice-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.practice-card:hover .practice-card-image img {
  transform: scale(1.06);
  filter: brightness(0.8);
}

/* === Overlay === */
.practice-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.3) 40%, 
    rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  transition: all 0.5s ease;
}

.practice-card:hover .practice-card-overlay {
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.2) 0%, 
    rgba(0, 0, 0, 0.6) 40%, 
    rgba(0, 0, 0, 0.85) 100%);
}

/* === Light Effect === */
.practice-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, 
    rgba(255, 255, 255, 0.15), 
    transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.6s ease, transform 0.8s ease;
  z-index: 1;
  pointer-events: none;
}

.practice-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* === Content === */
.practice-card-overlay-content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  transition: all 0.5s ease;
}

.practice-card-overlay-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.practice-card:hover .practice-card-overlay-title {
  font-size: 19px;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.practice-card-overlay-text {
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.practice-card:hover .practice-card-overlay-text {
  opacity: 1;
  transform: translateY(-2px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  -webkit-line-clamp: 4;
}

/* === Button === */
.practice-card-overlay-btn {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 9px 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: transparent;
  text-transform: uppercase;
}

.practice-card:hover .practice-card-overlay-btn {
  opacity: 1;
  transform: scale(1);
}

.practice-card-overlay-btn:hover {
  background: #fff;
  color: #1a5f5a;
  border-color: #fff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .practice-content-container {
    max-width: 1400px;
  }
  
  .practice-card {
    height: 400px;
  }
}

/* Desktop (1200px - 1399px) - Default yukarıda tanımlı */

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
  .practice-content-section {
    padding: 50px 20px;
  }
  
  .practice-main-title {
    font-size: 32px;
  }
  
  .practice-subtitle {
    font-size: 15px;
  }
  
  .practice-card {
    height: 350px;
  }
  
  .practice-card-overlay {
    padding: 22px;
  }
  
  .practice-card-overlay-title {
    font-size: 17px;
  }
  
  .practice-card-overlay-text {
    font-size: 12px;
  }
}

/* Tablet Portrait (768px - 991px): 2 sütun */
@media (max-width: 991px) {
  .practice-areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .practice-main-title {
    font-size: 28px;
  }
  
  .practice-subtitle {
    font-size: 14px;
    margin-bottom: 40px;
  }
  
  .practice-card {
    height: 340px;
  }
  
  .practice-card-overlay {
    padding: 20px;
  }
  
  .practice-card:hover .practice-card-overlay {
    padding: 20px;
  }
  
  .practice-card-overlay-title {
    font-size: 16px;
  }
  
  .practice-card:hover .practice-card-overlay-title {
    font-size: 17px;
  }
  
  .practice-card-overlay-text {
    font-size: 12px;
  }
  
  .practice-card-overlay-btn {
    font-size: 9px;
    padding: 8px 18px;
  }
}

/* Mobile Large (577px - 767px): Slider */
@media (max-width: 767px) {
  .practice-content-section {
    padding: 40px 15px;
  }
  
  .practice-main-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  
  .practice-subtitle {
    font-size: 14px;
    margin-bottom: 35px;
    padding: 0 10px;
  }
  
  .practice-subtitle br {
    display: none;
  }
  
  /* Slider Container */
  .practice-areas-grid {
    display: block;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #1a5f5a #e0e0e0;
    padding-bottom: 20px;
  }
  
  .practice-areas-grid::-webkit-scrollbar {
    height: 6px;
  }
  
  .practice-areas-grid::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
  }
  
  .practice-areas-grid::-webkit-scrollbar-thumb {
    background: #1a5f5a;
    border-radius: 10px;
  }
  
  /* Slider Inner Wrapper */
  .practice-areas-grid::before {
    content: "";
    display: block;
  }
  
  .practice-areas-grid {
    display: flex;
    gap: 16px;
    padding: 10px 5px 20px;
  }
  
  .practice-card {
    flex: 0 0 85%;
    max-width: 400px;
    height: 360px;
    scroll-snap-align: start;
    margin: 0;
  }
  
  .practice-card-overlay {
    padding: 22px;
  }
  
  /* Mobile'de yazılar her zaman görünür */
  .practice-card-overlay-text {
    opacity: 1;
    transform: translateY(0);
    font-size: 12px;
    margin-bottom: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }
  
  .practice-card-overlay-btn {
    opacity: 1;
    transform: scale(1);
    font-size: 9px;
    padding: 8px 18px;
  }
  
  .practice-card-overlay-title {
    font-size: 17px;
    margin-bottom: 8px;
  }
  
  /* Slider hint */
  .practice-areas-grid::after {
    content: "→ Kaydırın";
    position: absolute;
    bottom: 0;
    right: 20px;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    pointer-events: none;
    animation: slideHint 2s ease-in-out infinite;
  }
  
  @keyframes slideHint {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
  }
}

/* Mobile Medium (481px - 576px) */
@media (max-width: 576px) {
  .practice-main-title {
    font-size: 24px;
  }
  
  .practice-subtitle {
    font-size: 13px;
  }
  
  .practice-card {
    flex: 0 0 90%;
    height: 340px;
  }
  
  .practice-card-overlay {
    padding: 20px;
  }
  
  .practice-card-overlay-title {
    font-size: 16px;
  }
  
  .practice-card-overlay-text {
    font-size: 11px;
    line-height: 1.5;
  }
  
  .practice-card-overlay-btn {
    font-size: 9px;
    padding: 7px 16px;
  }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
  .practice-content-section {
    padding: 30px 10px;
  }
  
  .practice-main-title {
    font-size: 22px;
  }
  
  .practice-subtitle {
    font-size: 12px;
    margin-bottom: 30px;
  }
  
  .practice-card {
    flex: 0 0 92%;
    height: 320px;
  }
  
  .practice-card-overlay {
    padding: 18px;
  }
  
  .practice-card-overlay-title {
    font-size: 15px;
    margin-bottom: 7px;
  }
  
  .practice-card-overlay-text {
    font-size: 11px;
    margin-bottom: 12px;
  }
  
  .practice-card-overlay-btn {
    font-size: 8px;
    padding: 7px 14px;
  }
}

/* Extra Small Mobile (< 360px) */
@media (max-width: 359px) {
  .practice-card {
    flex: 0 0 95%;
    height: 300px;
  }
  
  .practice-card-overlay-title {
    font-size: 14px;
  }
  
  .practice-card-overlay-text {
    font-size: 10px;
  }
  
  .practice-card-overlay-btn {
    font-size: 8px;
    padding: 6px 12px;
  }
}

/* =============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================= */

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .practice-card,
  .practice-card-image img,
  .practice-card-overlay,
  .practice-card-overlay-content,
  .practice-card-overlay-title,
  .practice-card-overlay-text,
  .practice-card-overlay-btn,
  .practice-card::before {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus states for keyboard navigation */
.practice-card:focus {
  outline: 3px solid #1a5f5a;
  outline-offset: 4px;
}

.practice-card:focus-visible {
  outline: 3px solid #1a5f5a;
  outline-offset: 4px;
}

/* Print styles */
@media print {
  .practice-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  .practice-card-overlay-text {
    opacity: 1;
    transform: none;
    max-height: none;
  }
  
  .practice-card::before {
    display: none;
  }
}