@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+15&family=Zen+Dots&display=swap');

html {
    font-size: 15px;
}

body {
    margin: 0px;
    font-family: "Funnel Sans", serif;
    caret-color: transparent;
    cursor:default;
}
.nav-links {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    gap: 0.5rem;
    background-color: black;
}

.nav-links a {
    text-decoration: none;
    font-size: 11px;
    padding: 10px 0;
    color: white;
    font-weight: 200;
    text-align: center;
}

header {
    color:#14213D;
}
header h1 {
    padding-left: 2%;
}
.project-title {
    background-image: url('f1-racing-databricks-files/f1_background.jpg');
    min-height: 40vh;
    display: flex;
    background-position-y:300px;
    background-position-x:50% ;
    background-size:cover;
    align-items: end;
}
h2 {
    font-family: "Zen Dots";
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    padding: 1rem;
    color: rgb(255, 255, 255);
    font-style: italic; 
}
main {
    background-color: rgb(248, 245, 242);
    padding: 0.5rem 2%;
}
.repo-link-container {
  display: flex;
  justify-content: center ;
}
.repo-link-container p {
  margin:0;
}
.repo-link a {
  display: inline-block;
  background-color: rgb(44, 44, 64);
  text-align: center;
  padding: 0.5rem;
  border-radius: 1rem;
  color: #f4f4f4;
  text-decoration: none;
}
.repo-link a:hover{
  color: #f4f4f4;
  background-color: rgb(69, 69, 69);
  text-decoration: none;
}
h3 {
    text-transform: uppercase;
    color: #14213D;
    
}
.project-goals-list {
    list-style: none;
    padding-left: 0;
}
.project-goals-list li:before {
    content: '✔️';
}
.architecture-diag {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ---- Generic table styling inside cards ---- */

.section-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.9rem;
}

.section-card th,
.section-card td {
  padding: 8px 10px;
  border-bottom: 1px solid black;
  vertical-align: top;
  background: #f5f5f5;
}

.section-card th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.medallion-architecture-overview .bronze-row th {
  border-left: 3px solid #b87333;
}
.medallion-architecture-overview .silver-row th {
  border-left: 3px solid #c0c0c0;
}
.medallion-architecture-overview .gold-row th {
  border-left: 3px solid #e6c200;
}

.medallion-architecture-layers th {
  width: 90px;                  /* keeps first column narrow and tidy */
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.layer {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;                
  padding: 16px 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);  
}

/* Tighten the layer heading */
.layer h4 {
  margin: 0 0 6px 0;                   /* a bit closer to the accordions */
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #14213D;                      /* matches your header color */
}

/* Give each layer a subtle pill label in the corner */
.layer::after {
  content: attr(data-label);          
  position: relative;
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  background: #f0f0f0;
}
.layer.bronze::after { color: #b87333; }
.layer.silver::after { color: #7f7f7f; }
.layer.gold::after   { color: #b38b00; }

.layer details {
  margin: 6px 0 8px 0;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.layer details[open] {
  border-color: #d0d0d0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.layer summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.layer summary::before {
  content: "▶";
  font-size: 0.8rem;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.layer details[open] summary::before {
  transform: rotate(90deg);
  opacity: 0.9;
}
.layer summary:hover {
  background: #f5f5f5;
}

.layer ul {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.layer li {
  background: #f7f7f7;
  border-radius: 6px;
  border: 1px solid #e2e2e2;
  padding: 4px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: #444;
}
#dominant-drivers-container {
    position: relative;
    margin-bottom: 60px;
    margin: 3rem 0rem;
}

.dominant-drivers-tooltip, .dominant-constructors-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.15s ease-out;
    white-space: nowrap;

    max-width: 80vw;           /* never wider than the viewport */
    white-space: normal;       /* allow wrapping */
    overflow-wrap: break-word; /* wrap long words if needed */
    text-align: center;
}
#dominant-constructors-container {
    position: relative;
    margin-bottom: 60px;
    margin: 3rem 0rem;
}

.analytics-diag {
    max-width: 100%;
    height: auto;
}
svg {
    width: 100%;
    height: auto;
}
/* On small screens, collapse to 1 column so it doesn't feel cramped */
@media (max-width: 600px) {
  .layer ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
.technical-highlights {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.technical-highlights details {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  padding: 0; /* let summary + content handle inner spacing */
}
.technical-highlight {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  color: #14213D;
  display: flex;
  align-items: center;
  gap: 6px;
}
.technical-highlight::before {
  content: "▶";
  font-size: 0.8rem;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.technical-highlights details[open] > summary.technical-highlight::before {
  transform: rotate(90deg);
  opacity: 0.9;
}
.technical-highlight:hover {
  background: #f7f7f7;
}
.technical-highlight-desc {
  margin: 0;
  padding: 0 14px 8px 14px;
  line-height: 1.5;
  color: #333;
}
.technical-highlights figure {
  margin: 8px 14px 14px 14px;
}
figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
  line-height: 1.4;
  text-align: center;
}
.delta-lake-history {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}
.catalog-explorer-diag {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.lineage-diag {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.center-image-div {
    display: flex;
    justify-content: center;
}
.incremental-load-diag {
    max-width: 100%;
    height: auto;
    border-radius: 5%;
    box-shadow: 0 0 10px rgba(255,255,255,0.05);
}
.adf-pipeline-top {
    background-color: white;
    gap: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.adf-pipeline-bottom {
    background-color: white;
    display: flex;
    margin-top: 1rem;;
    justify-content: center;
}

.adf-pipeline-diag, .adf-pipeline-diag-wide {
  max-width: 100%;
  margin: 10px 0;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
  vertical-align: middle;
  align-self: center;
}
td, th {
  border: 1px solid;
  
}
.resources {
    padding-bottom: 1rem;
}
footer {
    text-align: center;
    font-size: 0.75rem;
}
@media (min-width: 426px) {
    html {
        font-size: 16px;

    }
    .nav-links {
        padding: 1rem 10%;
        margin: 0;
    }
    
    .nav-links a {
        font-size: 20px;
        padding: 10px 15px;
        font-weight: 200;
    }
    main {
        font-size: 18px;
    }
    h2 {
        font-size: 4.5rem;
    }
    .project-title {
        background-image: url('f1-racing-databricks-files/f1_background.jpg');
        min-height: 40vh;
        display: flex;
        background-position-y:500px;
        background-position-x:0;
    }
    .repo-link-container {
      display: flex;
      justify-content: start ;
    }
    .project-goals-list {
        padding-left: 2rem;
    }
    
    #dominant-drivers-container {
      margin: 3rem 4rem;
    }
    #dominant-constructors-container {
      margin: 3rem 4rem;
    }
    .dominant-drivers-tooltip, .dominant-constructors-tooltip {
      padding: 4px 8px;
      font-size: 12px;
    }
}