﻿/* ============================================================
   competencia.css — unified, cross-browser stable version
   Author: Modernized for clarity & consistency
   ============================================================ */

/* Normalize browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Poppins:wght@400;500;600;700&display=swap");

/* ---------- Base ---------- */
html {
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Poppins", sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
  scroll-behavior: smooth;
  }

body {
   font-family: 'Roboto', 'Poppins', sans-serif;
   font-size:16px;
   line-height: 1.6;
   background: #f5f7fa;
   color: navy;
   margin: 0;
   padding: 0;
   }


/* --------- Image ----------*/
.standard-img {
  border: 3px solid #ccc;          /* or navy, if you prefer */
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.standard-img:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  color: navy;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1em;
}

h4 {
  border-bottom: 2px solid #0d47a1;
  display: inline-block;
  padding-bottom: 4px;
}

/* ---------- Layout Containers ---------- */
header, section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(248,250,255,0.9), rgba(233,240,255,0.9));
  border-left: 4px solid #1976d2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ---------- Site Header ---------- */
.site-header {
  background: #001f3f;
  color: #fff;
  text-align: center;
  padding: 30px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.site-header h1, 
.site-header h2 {
  color: #fff;
  letter-spacing: 1px;
  margin: 5px 0;
}

/* ---------- Horizontal Rule ---------- */
hr {
  border: 0;
  height: 2px;
  width: 60%;
  margin: 50px auto;
  background: linear-gradient(to right, transparent, #1976d2, transparent);
  opacity: 0.4;
}

/* ---------- Shirt Section ---------- */
.shirt {
  text-align: center;
  margin: 40px auto;
}

.shirt h2 {
  font-size: 1.3rem;
  color: navy;
  margin-bottom: 20px;
}

/* Ensure 3 images per row, responsive fallback */
.shirt img {
  display: inline-block;
  margin: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 150px;
  width: auto;
  vertical-align: middle;
  margin-left: auto;
  margin-right: auto;
}

.shirt img:hover {
  transform: scale(1.20);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive image grid */
@media (max-width: 768px) {
  .shirt img {
    display: block;
    margin: 10px auto;
    height: auto;
    max-width: 90%;
  }
}

/* ---------- Table Styling ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
}

table.halfwidth {
  width: 90%;
  margin: 0 auto;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px 12   px;
  text-align: left;
}

th {
  background: navy;
  color: white;
  text-transform: uppercase;
  font-size: 0.85rem;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #e3f2fd;
}

/* ---------- Alignment Utilities ---------- */
.td-left {
  text-align: left !important;
  vertical-align: middle;
  padding-left: 6px;
  display: flex;
  align-items: center;       /* vertically centers elements            */
  gap: 6px;                  /* adds space between escudo/name and (#) */
}

.td-left b {
  vertical-align: middle;
  position: relative;
  top: -2px; /* adjust until aligned visually */
}

.td-center {
  text-align: center !important;
  vertical-align: middle;
}

/* ---------- Special Sections ---------- */
.transfers table,
.plantel table,
.entrenadores table,
.preseason table {
  /* width: 100%; */
  border-collapse: collapse;
}

.transfers h2,
.plantel h2,
.entrenadores h2,
.preseason h2 {
  color: navy;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.transfers th,
.plantel th,
.entrenadores th,
.preseason th {
  background: navy;
  color: white;
}

.transfers td,
.preseason td,
.entrenadores td {
  border: 1px solid #ddd;
  padding: 7px;
  text-align: left !important;
}

/* ---------- Comments / Notes ---------- */
.comments {
  background: #fafafa;
  border-left: 4px solid #1976d2;
  padding: 20px 25px;
  color: navy;
  font-size: 1rem;
  line-height: 1.6;
}

.additionalinfo {
  background: #fafafa;
  border-left: 4px solid #1976d2;
  padding: 20px 25px;
  color: navy;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.additionalinfo img {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  margin: 40px 0;
}

/* --- Image Section Styles --- */
.image-section {
  text-align: center;
  margin: 20px auto;
  max-width: 800px;
}

.toggle-images-btn {
  background-color: navy;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

.toggle-images-btn:hover {
  background-color: darkblue;
}

.images-container {
  text-align: center;
}

.img-block {
  margin-bottom: 20px;
}

.standard-img {
  border: 3px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.standard-img:hover {
  transform: scale(1.20);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ---------- for menu ---------- */

.badge-new {
  background: crimson;
  color: white;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

/* ---------- Responsive Global Adjustments ---------- */

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header, section {
    padding: 20px;
    margin: 20px auto;
  }

  table, th, td {
    font-size: 0.85rem;
  }
}
