/* ==========================================================================
   Altıncaba Group - Modern Web Clone & Style System
   ========================================================================== */

:root {
  --color-primary: #111827;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-overlay-hover: rgba(255, 255, 255, 0.12);
  --color-overlay-active: rgba(255, 255, 255, 0.22);
  --color-border-glow: rgba(245, 158, 11, 0.4);
  --color-focus-ring: rgba(245, 158, 11, 0.7);
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-quick: all 0.2s ease-in-out;
}

/* --------------------------------------------------------------------------
   Reset & Base Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0d1117;
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Background Portal Container
   -------------------------------------------------------------------------- */
.portal-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  background-image: url('../../altincabagroup.jpg');
  background-image: -webkit-image-set(url('../images/altincabagroup.jpg') 1x, url('../../altincabagroup.jpg') 1x);
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

/* --------------------------------------------------------------------------
   Interactive Clickable Sectors (Areas)
   -------------------------------------------------------------------------- */
.portal-sectors {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
}

.area {
  position: relative;
  flex: 1 1 33.333%;
  width: 33.333%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-smooth);
  overflow: hidden;
}

/* Column subtle divider and interactive light overlay */
.area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.16) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.area::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition-smooth);
  border-radius: 4px;
  pointer-events: none;
}

/* Hover & Focus Interaction */
.area:hover::before,
.area:focus-visible::before {
  opacity: 1;
}

.area:hover::after,
.area:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.area:focus-visible {
  box-shadow: inset 0 0 0 3px var(--color-focus-ring);
}

.area:active {
  background-color: var(--color-overlay-active);
}

/* Optional Ripple Animation on Click */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  background-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Sector Hover Badges / Tooltips (Modern polish)
   -------------------------------------------------------------------------- */
.sector-indicator {
  position: absolute;
  bottom: 24px;
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition-smooth);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sector-indicator svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-accent);
  transition: transform 0.25s ease;
}

.area:hover .sector-indicator,
.area:focus-visible .sector-indicator {
  opacity: 1;
  transform: translateY(0);
}

.area:hover .sector-indicator svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Accessibility & SEO
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   Responsive Rules:
   - >= 993px: Masaüstü (YAN YANA 3 Sütun)
   - <= 992px: Mobil & Tablet (HER ZAMAN ALT ALTA 3 Satır)
   -------------------------------------------------------------------------- */

/* Masaüstü (993px ve üzeri): Yan Yana */
@media (min-width: 993px) {
  .portal-container {
    background-image: url('../images/altincabagroup.jpg'), url('../../altincabagroup.jpg');
    background-size: 100% 100%;
    background-position: center center;
  }

  .portal-sectors {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: 100% !important;
  }

  .area {
    display: flex !important;
    flex: 0 0 33.3333% !important;
    width: 33.3333% !important;
    height: 100% !important;
  }
}

/* Mobil & Tablet (992px ve altı - 518px dahil): Kesinlikle Alt Alta */
@media (max-width: 992px) {
  .portal-container {
    background-image: url('../images/altincabagroup-mobile.jpg'), url('../../altincabagroup-mobile.jpg');
    background-size: cover;
    background-position: center center;
  }

  .portal-sectors {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
  }

  .area {
    display: flex !important;
    flex: 0 0 33.3333% !important;
    width: 100% !important;
    height: 33.3333% !important;
    justify-content: flex-end;
    align-items: center;
  }

  /* Mobil blok aydınlatması */
  .area::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0.14) 100%
    );
  }

  .area::after {
    top: auto;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 3px;
  }

  .sector-indicator {
    bottom: 12px;
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* Print Styles */
@media print {
  .portal-container {
    height: auto;
    background: none;
  }
  .area {
    display: block;
    padding: 20px;
    color: #000;
  }
}
