/* ==============================
   REFERENCES - Admin Panel + Public View
============================== */

/* HERO */
.refs-hero{
  background: #eef3f7;
  padding: 40px 0 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.refs-hero-inner{
  text-align: center;
  max-width: 980px;
}

.refs-title{
  margin: 0 0 10px;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #2b2b2b;
  font-size: clamp(28px, 3.2vw, 42px);
}

.refs-lead{
  margin: 0 auto;
  color: rgba(0,0,0,.58);
  line-height: 1.7;
  font-size: 13.5px;
  max-width: 92ch;
}

/* WALL */
.refs-wall{
  background: #eef3f7;
  padding: 14px 0 52px;
}

.refs-panel{
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding: 32px 28px 36px;
}

/* ==============================
   ADMIN TABLE VIEW (Desktop)
============================== */
.refs-admin-table {
  width: 100%;
}

.refs-admin-table table {
  margin-bottom: 0;
}

.refs-admin-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.refs-admin-table thead th {
  font-weight: 600;
  color: #2b2b2b;
  font-size: 14px;
  padding: 12px 16px;
  border: none;
}

.refs-admin-table tbody tr {
  transition: background-color 0.2s ease;
}

.refs-admin-table tbody tr:hover {
  background-color: #f8f9fa;
}

.refs-admin-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-color: #e9ecef;
}

.refs-table-logo {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.refs-table-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.refs-admin-table tbody tr:hover .refs-table-logo img {
  filter: grayscale(0%);
}

/* ==============================
   MOBILE CARD VIEW
============================== */
.refs-admin-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.refs-mobile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.refs-mobile-card:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.refs-mobile-logo-full {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.refs-mobile-logo-full img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
}

.refs-mobile-actions {
  flex-shrink: 0;
}

.refs-mobile-actions .btn {
  white-space: nowrap;
}

/* ==============================
   DELETE MODAL CUSTOMIZATION
============================== */
.modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-title {
  font-weight: 600;
  color: #2b2b2b;
}

.modal-body {
  padding: 24px;
  font-size: 15px;
}

.modal-footer {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 16px 24px;
}

/* ==============================
   PUBLIC GRID VIEW (Hidden by default in admin)
============================== */
.refs-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: center;
}

/* Responsive kolonlar */
@media (max-width: 1200px){
  .refs-grid{ grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px){
  .refs-grid{ grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
}
@media (max-width: 768px){
  .refs-grid{ grid-template-columns: repeat(3, 1fr); gap: 20px 18px; }
}
@media (max-width: 576px){
  .refs-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
}
@media (max-width: 400px){
  .refs-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
}

/* SABİT BOYUTLU KART - ÇERÇEVESİZ */
.refs-item{
  aspect-ratio: 3 / 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
}

.refs-item.is-in{
  opacity: 1;
  transform: translateY(0);
}

.refs-item:hover{
  transform: translateY(-3px);
}

.refs-item .ref-logo-img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.refs-item.is-loaded .ref-logo-img{
  filter: grayscale(50%) opacity(0.85);
}

.refs-item:hover .ref-logo-img{
  filter: grayscale(0%) opacity(1);
}

.refs-item.is-placeholder{
  background: linear-gradient(110deg,
    rgba(15,36,67,.03) 0%,
    rgba(15,36,67,.07) 45%,
    rgba(15,36,67,.03) 80%);
  background-size: 220% 100%;
  animation: refsShimmer 1.3s ease-in-out infinite;
  opacity: 0.5;
  transform: none;
  border-radius: 4px;
}

.refs-item.is-shimmer-off.is-placeholder{
  animation: none;
  background: rgba(15,36,67,.03);
  opacity: 0.3;
}

@keyframes refsShimmer{
  0% { background-position: 180% 0; }
  100% { background-position: -60% 0; }
}

/* ==============================
   RESPONSIVE ADJUSTMENTS
============================== */
@media (max-width: 768px) {
  .refs-panel {
    padding: 24px 16px 28px;
  }
  
  .refs-hero {
    padding: 32px 0 16px;
  }
  
  .refs-title {
    font-size: clamp(24px, 5vw, 32px);
  }
  
  .refs-lead {
    font-size: 13px;
    padding: 0 12px;
  }
}

@media (max-width: 576px) {
  .refs-mobile-card {
    padding: 12px;
    gap: 12px;
  }
  
  .refs-mobile-logo-full {
    padding: 10px;
    min-height: 50px;
  }
  
  .refs-mobile-logo-full img {
    max-height: 60px;
  }
  
  .modal-body {
    padding: 20px 16px;
    font-size: 14px;
  }
}

/* Animasyon azaltılmışsa */
@media (prefers-reduced-motion: reduce){
  .refs-item{ 
    opacity: 1; 
    transform: none; 
    transition: none;
  }
  .refs-item.is-placeholder{ 
    animation: none;
    opacity: 0.3;
  }
  .refs-mobile-card,
  .refs-admin-table tbody tr {
    transition: none;
  }
}