@import url('variables.css');

/* ================= RESET & TEMEL STİLLER ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= HEADER & NAVİGASYON (TÜM SAYFALARDA EŞİT) ================= */
.cobloc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 95px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  mix-blend-mode: difference;
}

.cobloc-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.cobloc-logo a {
  display: inline-flex;
  align-items: center;
}

.cobloc-logo__img {
  height: 52px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  filter: brightness(0) invert(1);
}

.cobloc-logo a:hover .cobloc-logo__img {
  opacity: 0.85;
  transform: scale(0.98);
}

.header-right-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* DİL SEÇİCİ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px 6px;
  transition: var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
  color: #ffffff;
  font-weight: 700;
}

.menu-trigger {
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-trigger__icon {
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: var(--transition-fast);
}

.menu-trigger__icon::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: #ffffff;
}

/* OVERLAY MENÜ PANELİ (SABİT EŞİT YAZI BOYUTU) */
.cobloc-nav-panel {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 10%;
  transform: translateY(-100%);
  transition: transform var(--transition-smooth);
}

.cobloc-nav-panel.is-open {
  transform: translateY(0);
}

.cobloc-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 750px;
}

.cobloc-nav-link {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 42px) !important; /* TÜM SAYFALARDA TAM EŞİT BOYUT */
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 16px;
  letter-spacing: 1.5px;
}

.cobloc-nav-link span {
  font-size: 15px;
  font-family: var(--font-body);
  opacity: 0.5;
}

.cobloc-nav-link:hover {
  color: #ffffff;
  padding-left: 16px;
}

/* ================= HERO SECTION ================= */
.cobloc-hero {
  height: 92vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 80px 48px;
  background-size: cover;
  background-position: center;
}

.cobloc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.cobloc-hero__content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
}

.cobloc-hero__subtitle {
  font-size: 18 px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: block;
}

.cobloc-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cobloc-hero__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

/* ================= KATEGORİ TABS ================= */
.cobloc-categories-bar {
  padding: 60px 48px 20px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}

.cobloc-categories-bar::-webkit-scrollbar { display: none; }

.project__categories {
  display: flex;
  gap: 36px;
  white-space: nowrap;
}

.project__category {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding-bottom: 16px;
  position: relative;
  transition: var(--transition-fast);
}

.project__category.active,
.project__category:hover {
  color: var(--text-main);
}

.project__category.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
}

/* ================= BİLEŞENLER & GRİDLER ================= */
.section-title-wrap { margin-bottom: 40px; }

.section-subtitle {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
}

.cobloc-services-section {
  padding: 100px 48px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sharp);
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.cobloc-process-section {
  padding: 100px 48px;
  background: var(--bg-dark);
  color: var(--text-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.process-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  padding: 32px 24px;
  position: relative;
}

.process-card__step {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-weight: 700;
}

.process-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.process-card__text {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 100px 48px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.bullet-list li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}

.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* MÜLK BENTO GRID */
.property-grid-section { padding: 60px 48px 120px; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 48px 32px;
}

.cobloc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cobloc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.cobloc-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e0d8cf;
}

.cobloc-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.cobloc-card:hover .cobloc-card__image { transform: scale(1.06); }

.cobloc-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cobloc-card__body { padding: 28px; }

.cobloc-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.cobloc-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.cobloc-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

.cobloc-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

/* GALERİ */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-tab-btn {
  padding: 12px 32px;
  border: 1px solid var(--border-light);
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-tab-btn.active {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img { transform: scale(1.08); }

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* FOOTER */
.cobloc-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 100px 48px 40px;
}

.cobloc-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.cobloc-footer__brand h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.cobloc-footer__brand p {
  color: rgba(255,255,255,0.5);
  max-width: 400px;
}

.cobloc-footer__watermark {
  border-top: 1px solid var(--border-dark);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.cobloc-footer__watermark a { color: var(--accent-gold); }

.cobloc-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 0;
  color: var(--text-muted);
}

/* ARAPÇA (RTL) STİLLERİ */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .cobloc-nav-link span:first-child {
  order: 1;
}

[dir="rtl"] .cobloc-nav-link span:last-child {
  order: 2;
}

[dir="rtl"] .bullet-list li {
  padding-left: 0;
  padding-right: 28px;
}

[dir="rtl"] .bullet-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .cobloc-card__badge {
  left: auto;
  right: 20px;
}

/* MOBİL KONTROLLERİ */
@media (max-width: 768px) {
  .cobloc-header { padding: 0 20px; height: 75px; }
  .cobloc-logo__img { height: 38px; }
  .cobloc-nav-link { font-size: 24px !important; }
  .cobloc-hero { padding: 40px 20px; }
  .cobloc-categories-bar { padding: 40px 20px 10px; }
  .property-grid-section, .cobloc-services-section, .cobloc-process-section, .why-us-grid { padding: 60px 20px; }
  .why-us-grid { grid-template-columns: 1fr; gap: 40px; }
  .property-grid { grid-template-columns: 1fr; }
  .cobloc-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .cobloc-footer { padding: 60px 20px 30px; }
}