/* osu2026 — Kurumsal panel düzeni (style.css'e dokunulmaz) */

.panel-right--white {
  background: #ffffff;
  padding: 16px;
  gap: 0;
}

.corp-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.corp-box {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.corp-box--large {
  flex: 3;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.corp-box-label {
  flex-shrink: 0;
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0d1e3a;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.corp-box--large .card-photo-frame {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid #e5e7eb;
}

.corp-box--large .card-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(13, 30, 58, 0.03) 0px,
      rgba(13, 30, 58, 0.03) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
  z-index: 0;
}

.corp-box--large .card-photo-frame::after {
  content: '📷';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 2vw, 28px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.corp-box--large .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
}

.corp-box--large .card-photo[src=''],
.corp-box--large .card-photo:not([src]) {
  opacity: 0;
}

.corp-box--large .card-photo-frame:has(.card-photo[src]:not([src=""]))::after {
  display: none;
}

.corp-box--large .card-caption {
  flex: 0 0 auto;
  flex-grow: 0;
  flex-shrink: 0;
  background: #ffffff;
  padding: 10px 14px;
  border-top: 2px solid #0d1e3a;
  overflow: visible;
}

.corp-box--large .card-title {
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 800;
  color: #0d1e3a;
  line-height: 1.3;
  margin-bottom: 4px;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.corp-box--large .card-desc {
  font-size: clamp(10px, 0.85vw, 13px);
  color: #475569;
  line-height: 1.45;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.corp-bottom {
  flex: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
  overflow: hidden;
}

.btn-gmail {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  background: #1d4ed8;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-gmail:hover {
  background: #2563eb;
}

.btn-gmail--logged-in {
  cursor: default;
}

.btn-gmail--logged-in:hover {
  background: #1d4ed8;
}

.corp-box-row {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.corp-box--small {
  min-height: 0;
  background: #f8fafc;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
}

.corp-box--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0d1e3a;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.corp-box--link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.corp-box-link-label {
  font-size: clamp(9px, 0.75vw, 12px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 6px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .panel-right--white {
    padding: 12px;
    min-height: 50vh;
  }

  .corp-bottom {
    min-height: 180px;
  }

  .corp-box-row {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 120px;
  }

  .corp-box--small {
    min-height: 64px;
  }
}
