/*
=================================================
 CATTLEMANIA VIEW CATTLE PREMIUM PROFILE CSS
 CLEAN FINAL VERSION
=================================================
*/

/* =========================================
 PAGE CONTAINER
========================================= */

.cattle-profile-page {
  width: 100%;

  max-width: 1400px;

  margin: auto;

  padding: 25px;

  box-sizing: border-box;
}

/* =========================================
 HERO SECTION
========================================= */

.cattle-hero {
  position: relative;

  display: grid;

  grid-template-columns: 260px 1fr;

  gap: 30px;

  align-items: center;

  background: linear-gradient(145deg, #0f172a, #020617);

  border-radius: 25px;

  padding: 30px;

  overflow: hidden;

  border: 1px solid rgba(56, 189, 248, 0.15);
}

.cattle-hero-glow {
  position: absolute;

  width: 400px;

  height: 400px;

  background: #38bdf8;

  opacity: 0.08;

  filter: blur(100px);

  top: -100px;

  left: -100px;
}

.cattle-hero-image {
  display: flex;

  justify-content: center;

  position: relative;

  z-index: 2;
}

.cattle-image-ring {
  width: 240px;

  height: 240px;

  padding: 8px;

  border-radius: 50%;

  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.cattle-image-ring img {
  width: 100%;

  height: 100%;

  object-fit: contain;

  border-radius: 50%;

  background: #020617;
}

.cattle-hero-info {
  position: relative;

  z-index: 2;
}

.cattle-eyebrow {
  color: #94a3b8;

  font-size: 14px;

  letter-spacing: 2px;
}

.cattle-hero-info h1 {
  margin: 10px 0;

  font-size: 46px;

  color: #38bdf8;
}

.cattle-subtitle {
  color: white;

  font-size: 20px;
}

.cattle-subtitle span {
  margin: 0 8px;

  color: #94a3b8;
}

/* =========================================
 HERO STATUS
========================================= */

.cattle-status-row {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 20px;
}

.cattle-status,
.cattle-hero-stat {
  background: #111827;

  color: white;

  padding: 12px 16px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
  margin-right: 6px;
}

/* =========================================
 TAG
========================================= */

.cattle-hero-tag {
  position: absolute;

  top: 20px;

  right: 20px;

  background: #020617;

  color: white;

  padding: 12px 18px;

  border-radius: 12px;

  border: 1px solid rgba(56, 189, 248, 0.2);
}

.cattle-hero-tag span {
  display: block;

  color: #94a3b8;

  font-size: 12px;
}

.cattle-hero-tag strong {
  font-size: 18px;
}

/* =========================================
   QUICK INFO COMPACT 3 COLUMN GRID
========================================= */

.cattle-info-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-top: 20px;
}

.cattle-info-card {
  background: #111827;

  padding: 10px;

  border-radius: 10px;

  text-align: center;

  border-bottom: 2px solid #38bdf8;

  min-height: 65px;
}

.cattle-info-card span {
  display: block;

  color: #94a3b8;

  font-size: 10px;

  letter-spacing: 1px;

  margin-bottom: 3px;
}

.cattle-info-card strong {
  display: block;

  color: white;

  font-size: 15px;

  line-height: 18px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

.cattle-info-card small {
  display: block;

  color: #64748b;

  font-size: 10px;

  margin-top: 2px;
}

@media (max-width: 768px) {
  .cattle-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cattle-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
 MOBILE HERO
========================================= */

@media (max-width: 900px) {
  .cattle-profile-page {
    padding: 15px;
  }

  .cattle-hero {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .cattle-hero-info h1 {
    font-size: 34px;
  }

  .cattle-info-grid {
    grid-template-columns: 1fr;
  }

  .cattle-hero-tag {
    position: relative;

    top: auto;

    right: auto;

    margin-top: 15px;
  }
} /* =========================================
 CATTLE COMMAND CENTER STACKED
========================================= */

.cattle-command-grid {
  display: flex;

  flex-direction: column;

  gap: 25px;

  width: 100%;

  margin-top: 30px;
}

/* =========================================
 ACTION PANEL FULL WIDTH
========================================= */

.cattle-side-stack {
  width: 100%;
}

/* Actions buttons */

.cattle-actions-panel {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

  width: 100%;
}

.cattle-actions-panel a {
  display: flex;

  justify-content: center;

  align-items: center;

  min-height: 50px;

  padding: 12px;

  border-radius: 12px;

  background: linear-gradient(135deg, #0f172a, #1e293b);

  border: 1px solid rgba(56, 189, 248, 0.25);

  color: white;

  text-decoration: none;

  font-weight: 600;
}

/* =========================================
 GENETICS FULL WIDTH BELOW
========================================= */

.cattle-section {
  width: 100%;
}

.genetics-dashboard {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;
}

.genetic-card {
  background: #111827;

  padding: 12px;

  border-radius: 12px;
}

/* remove bars */

.genetic-bar,
.genetic-fill {
  display: none;
}

@media (max-width: 768px) {
  .cattle-actions-panel {
    grid-template-columns: 1fr;
  }

  .genetics-dashboard {
    grid-template-columns: 1fr;
  }
}

/* =========================================
 SECTION CARDS
========================================= */

.cattle-section,
.cattle-detail-card {
  background: linear-gradient(145deg, #0f172a, #020617);

  border-radius: 20px;

  padding: 20px;

  border: 1px solid rgba(56, 189, 248, 0.15);

  box-sizing: border-box;
}

.section-heading {
  margin-bottom: 15px;
}

.section-kicker {
  color: #38bdf8;

  font-size: 13px;

  letter-spacing: 2px;
}

.section-heading h2 {
  color: white;

  margin: 5px 0;

  font-size: 24px;
}

/* =========================================
 GENETICS DASHBOARD
========================================= */

.genetics-dashboard {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;
}

.genetic-card {
  background: #111827;

  padding: 12px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* top row only */

.genetic-card-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  color: white;
}

.genetic-card-top span {
  font-size: 14px;

  color: #94a3b8;
}

.genetic-card-top strong {
  font-size: 20px;

  color: white;
}

/* REMOVE BUBBLE + LINE UNDER STATS */

.genetic-bar,
.genetic-fill {
  display: none;
}

/* =========================================
 ACTION PANEL
 2 x 2 BUTTON GRID
========================================= */

.cattle-actions-panel {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

  width: 100%;
}

.cattle-actions-panel a {
  display: flex;

  justify-content: center;

  align-items: center;

  min-height: 55px;

  padding: 12px;

  background: linear-gradient(135deg, #0f172a, #1e293b);

  border: 1px solid rgba(56, 189, 248, 0.25);

  border-radius: 12px;

  color: white;

  text-decoration: none;

  font-weight: 600;

  text-align: center;

  box-sizing: border-box;

  transition: 0.2s ease;
}

.cattle-actions-panel a:hover {
  background: linear-gradient(135deg, #2563eb, #38bdf8);

  transform: translateY(-2px);
}

/* =========================================
 ACTION SECTION HEADER
========================================= */

.cattle-actions-panel + * {
  margin-top: 20px;
}

/* =========================================
 TABLET
========================================= */

@media (max-width: 1000px) {
  .cattle-command-grid {
    grid-template-columns: 1fr;
  }

  .genetics-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
 MOBILE
========================================= */

@media (max-width: 600px) {
  .genetics-dashboard {
    grid-template-columns: 1fr;
  }

  .cattle-actions-panel {
    grid-template-columns: 1fr;
  }
}

/* =========================================
 DETAILS CARDS
========================================= */

.cattle-detail-card {
  background: linear-gradient(145deg, #0f172a, #020617);

  border-radius: 20px;

  padding: 20px;

  border: 1px solid rgba(56, 189, 248, 0.15);
}

.cattle-detail-card h3 {
  color: #38bdf8;

  margin-bottom: 15px;
}

.detail-heading {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 15px;
}

.detail-heading span {
  font-size: 28px;
}

.detail-heading small {
  color: #94a3b8;

  letter-spacing: 1px;
}

.detail-heading h3 {
  margin: 0;

  color: white;
}

/* =========================================
 DETAIL LIST
========================================= */

.detail-list {
  display: flex;

  flex-direction: column;

  gap: 0;
}

.detail-list div {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-list div:last-child {
  border-bottom: none;
}

.detail-list span {
  color: #94a3b8;
}

.detail-list strong {
  color: white;

  text-align: right;
}

/* =========================================
 SECONDARY SECTIONS
========================================= */

.cattle-secondary {
  margin-top: 25px;

  background: linear-gradient(145deg, #0f172a, #020617);

  border-radius: 20px;

  padding: 20px;

  border: 1px solid rgba(56, 189, 248, 0.15);
}

/* =========================================
 FEED WIDGET CLEANUP
========================================= */

.feed-info {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;
}

.feed-box {
  background: #111827;

  padding: 15px;

  border-radius: 12px;

  text-align: center;

  border-bottom: 3px solid #38bdf8;
}

.feed-box span {
  display: block;

  color: #94a3b8;

  font-size: 13px;
}

.feed-box strong {
  display: block;

  margin-top: 8px;

  color: white;

  font-size: 22px;
}

/* =========================================
 NOTES
========================================= */

.notes,
.note-form {
  margin-top: 0;
}

.note-form textarea {
  width: 100%;

  min-height: 100px;

  background: #111827;

  color: white;

  border-radius: 12px;

  padding: 12px;

  border: 1px solid rgba(56, 189, 248, 0.2);

  box-sizing: border-box;
}

.note-form button {
  margin-top: 12px;

  width: 100%;

  padding: 12px;

  border-radius: 12px;

  border: none;

  background: linear-gradient(90deg, #2563eb, #38bdf8);

  color: white;

  font-weight: bold;
}

/* =========================================
 PEDIGREE
========================================= */

.family,
.pedigree-panel {
  background: #111827;

  padding: 18px;

  border-radius: 15px;

  color: white;
}

/* =========================================
 BLOODLINE
========================================= */

.bloodline-panel {
  background: #111827;

  border-radius: 15px;

  padding: 20px;

  border-left: 4px solid #22c55e;
}

.bloodline-panel h2 {
  color: #22c55e;
}

/* =========================================
 WISHLIST TOAST
========================================= */

.cattle-wishlist-toast,
.wishlist-toast {
  position: fixed;

  top: 20px;

  right: 20px;

  z-index: 9999;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);

  color: white;

  padding: 15px 22px;

  border-radius: 14px;

  font-weight: bold;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* =========================================
 GLOBAL OVERFLOW FIX
========================================= */

.cattle-profile-page,
.cattle-command-grid,
.cattle-section,
.cattle-detail-card {
  overflow: hidden;
}

img {
  max-width: 100%;
}

/* =========================================
 FINAL MOBILE CLEANUP
========================================= */

@media (max-width: 768px) {
  .cattle-profile-page {
    padding: 10px;
  }

  .detail-list div {
    flex-direction: column;

    align-items: flex-start;

    gap: 5px;
  }

  .detail-list strong {
    text-align: left;
  }

  .feed-info {
    grid-template-columns: 1fr;
  }

  .cattle-secondary {
    padding: 15px;
  }
}
