/**
 * otosmart.com.tr - Main Stylesheet
 * Original Design System
 */

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */
:root {
  /* Color Palette */
  --bg: #ffffff;
  --text: #111;
  --muted: #6e6e6e;
  --muted2: #8a8a8a;
  --card: rgba(255, 255, 255, 0.78);
  --stroke: rgba(0, 0, 0, 0.08);
  --orange: #ff9500;
  --red-orange: #ff5500;

  /* Spacing */
  --spacing-xs: 6px;
  --spacing-sm: 10px;
  --spacing-md: 14px;
  --spacing-lg: 22px;
  --spacing-xl: 28px;
  --spacing-2xl: 38px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 6px 20px rgba(255, 85, 0, 0.15);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.08);
  --shadow-brand: 0 12px 32px rgba(255, 85, 0, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;

  /* Typography */
  --font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(255, 149, 0, 0.15), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(255, 85, 0, 0.12), transparent 55%),
              radial-gradient(900px 500px at 50% 90%, rgba(0, 0, 0, 0.04), transparent 60%),
              var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 18px;
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LAYOUT
   ======================================== */
.wrap {
  width: min(980px, 100%);
  display: grid;
  gap: var(--spacing-lg);
  justify-items: center;
  text-align: center;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.topbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-sm);
}

.lang {
  display: flex;
  gap: 8px;
  padding: var(--spacing-xs);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition-normal);
}

.lang button:hover {
  color: var(--text);
}

.lang button:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.lang button[aria-pressed="true"] {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
}

/* ========================================
   MAIN CARD
   ======================================== */
.card {
  width: 100%;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   BRAND MARK & LOGO
   ======================================== */
.o-mark {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--orange) 0%, var(--red-orange) 100%);
  position: relative;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.o-mark::before {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
}

.o-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red-orange) 100%);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.wordmark {
  font-size: clamp(48px, 9vw, 100px);
  line-height: var(--line-height-tight);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
  background: linear-gradient(90deg, #ff9500 0%, #ff7800 40%, #ff5500 75%, #ff4400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.tagline {
  margin: 12px 0 0;
  font-size: clamp(18px, 3vw, 38px);
  font-weight: 500;
  color: #7a7a7a;
  letter-spacing: 0.02em;
}

.headline {
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.01em;
  color: #333;
}

.sub {
  margin: var(--spacing-md) auto 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: var(--line-height-relaxed);
  max-width: 560px;
}

/* ========================================
   DIVIDER
   ======================================== */
.divider {
  height: 1px;
  width: min(560px, 92%);
  background: var(--stroke);
  margin: var(--spacing-xl) auto;
}

/* ========================================
   EMAIL BUTTON
   ======================================== */
.mail {
  display: inline-flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 85, 0, 0.2);
  background: rgba(255, 149, 0, 0.08);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  transition: transform var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast);
}

.mail:hover {
  transform: translateY(-2px);
  background: rgba(255, 149, 0, 0.14);
  box-shadow: var(--shadow-sm);
}

.mail:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.mail small {
  color: var(--muted2);
  font-weight: 600;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  margin-top: 24px;
  text-align: left;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #444;
  font-weight: 800;
  margin: 0;
}

.section-all {
  font-size: 12px;
  color: var(--muted2);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.55);
  transition: transform var(--transition-fast),
              background var(--transition-fast);
  white-space: nowrap;
}

.section-all:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.8);
}

.section-all:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.section-desc {
  margin: 0 0 var(--spacing-md);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ========================================
   GRID & CARD LINKS
   ======================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.card-link {
  grid-column: span 12;
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-md) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast);
}

.card-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.card-link:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Logo Container */
.logo {
  width: 52px;
  height: 52px;
  border-radius: var(--spacing-md);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Light border for definition */
  overflow: hidden;
  background: #0b0b0f;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}

/* Image styling for BlackGym logo */
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SVG Icon Styles (For CRM & Games) */
.logo svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 2;
}

/* Otosmart Specific Overrides */
/* Targeted via the new class added in HTML */
.card-os .logo {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Otosmart Mini "O" Logo Construction */
.o-mini {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* The White Circle */
.o-mini::before {
  content: "";
  width: 60%;
  height: 60%;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* The Inner Orange Dot */
.o-mini::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 22%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red-orange) 100%);
  border-radius: 50%;
}

/* Removed the old text span styling */
.logo span {
  display: none;
}

/* Card Body Improvements */
.body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  padding-left: 4px; /* Added slight spacing from logo */
}

.topline {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px; /* Improved spacing */
}

.name {
  font-weight: 700;
  font-size: 15px; /* Increased font size for readability */
  color: #1a1a1a; /* Darker black for contrast */
  margin: 0;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  color: #111;
  padding: 3px 8px;
  border-radius: 6px; /* Slightly squarer modern look */
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.desc {
  margin: 0;
  font-size: 13px; /* Increased from 12.5px */
  color: #555; /* Darker gray for better readability */
  line-height: 1.5;
  font-weight: 400;
}

.cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  padding: 8px 16px; /* Larger hit area */
  border-radius: var(--radius-full); /* Pill shape */
  border: 1px solid var(--stroke);
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all var(--transition-fast);
}

.card-link:hover .cta {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
}

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

/* Games grid: 2 columns on desktop */
@media (min-width: 720px) {
  .grid.games .card-link {
    grid-column: span 6;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .mail, .lang button, .card-link, .section-all {
    transition: none;
  }
}

@supports selector(:focus-visible) {
  .lang button:focus:not(:focus-visible),
  .mail:focus:not(:focus-visible),
  .card-link:focus:not(:focus-visible),
  .section-all:focus:not(:focus-visible) {
    outline: none;
  }
}


/* GRID & CARD LINKS */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.card-link {
  grid-column: span 12;
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-md) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast);
}

.card-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.card-link:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Logo Container */
.logo {
  width: 52px;
  height: 52px;
  border-radius: var(--spacing-md);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #0b0b0f;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}

/* Image styling for BlackGym logo */
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SVG Icon Styles */
.logo svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 2;
}

/* Otosmart Specific Overrides */
.card-os .logo {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Otosmart Mini "O" Logo Construction */
.o-mini {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red-orange) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.o-mini::before {
  content: "";
  width: 60%;
  height: 60%;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.o-mini::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 22%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red-orange) 100%);
  border-radius: 50%;
}

.logo span {
  display: none;
}

/* Card Body */
.body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  padding-left: 4px;
}

.topline {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.name {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  color: #111;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.desc {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  font-weight: 400;
}

/* CTA Button */
.cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--stroke);
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all var(--transition-fast);
}

.card-link:hover .cta {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ========================================
   RESPONSIVE DESIGN (UPDATED)
   ======================================== */

/* Tablet & Desktop */
@media (min-width: 720px) {
  .grid.games .card-link {
    grid-column: span 6;
  }
}

/* Mobile Layout Improvements */
@media (max-width: 640px) {
  .card-link {
    flex-wrap: wrap; /* Allow items to wrap */
    padding: 16px;
  }

  /* Keep Logo at top left */
  .logo {
    margin-bottom: auto; /* Align to top */
  }

  /* Body fills remaining width next to logo */
  .body {
    flex: 1 1 calc(100% - 70px); 
    padding-left: 12px;
  }

  /* Force CTA button to new line at the bottom */
  .cta {
    flex: 1 0 100%; /* Full width */
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    display: flex;
    background: #f8f8f8; /* Light background for button area */
    border: none;
  }
}

/* ========================================
   FOOTER, ETC
   ======================================== */
footer {
  color: var(--muted2);
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .mail, .lang button, .card-link, .section-all {
    transition: none;
  }
}

@supports selector(:focus-visible) {
  .lang button:focus:not(:focus-visible),
  .mail:focus:not(:focus-visible),
  .card-link:focus:not(:focus-visible),
  .section-all:focus:not(:focus-visible) {
    outline: none;
  }
}