/* =========================================================
   Nia Newland | One-page recruiting flyer (flyer.html)
   A4 layout on screen, prints edge to edge, stacks on phones.
   ========================================================= */
:root {
    --skutt-green: #4CAF50;
    --dark-green: #1a4d1d;
    --flyer-bg: #000;
    --text-color: #fff;
    --faded-text: #aaa;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: #080808;
    display: flex; flex-direction: column; align-items: center;
    padding: 2rem;
}

.flyer-toolbar {
    width: 210mm; max-width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.flyer-toolbar a { color: var(--skutt-green); text-decoration: none; font-weight: 700; font-size: 0.85rem; }
.flyer-toolbar button {
    background: var(--skutt-green); color: #000; border: 0; border-radius: 999px;
    padding: 8px 16px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; cursor: pointer;
}

.flyer-page {
    width: 210mm; height: 297mm;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    position: relative; display: flex; flex-direction: column; overflow: hidden;
}

/* HEADER */
.flyer-header { height: 30%; display: flex; position: relative; }

.name-box {
    width: 60%; background: var(--flyer-bg); padding: 4rem;
    position: relative; display: flex; flex-direction: column; justify-content: center; z-index: 10;
}
.name-box h1 {
    font-size: 5rem; font-weight: 800; text-transform: uppercase;
    line-height: 0.9; color: var(--text-color); margin-bottom: 1rem; letter-spacing: -2px;
}
.name-box h2 {
    font-size: 1.5rem; font-weight: 300; text-transform: uppercase;
    color: var(--skutt-green); letter-spacing: 4px;
}

.grad-circle {
    position: absolute; top: 24px; right: calc(40% - 40px); z-index: 20;
    border: 4px solid #000;
    width: 80px; height: 80px; border-radius: 50%;
    background-color: var(--skutt-green); color: black;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-weight: 800; text-transform: uppercase;
}
.grad { font-size: 0.7rem; }
.year { font-size: 1.4rem; line-height: 1.1; }

.main-portrait-frame {
    width: 40%; height: 110%;
    position: absolute; top: -5%; right: 0;
    overflow: hidden; z-index: 5; background: var(--dark-green);
}
.main-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* SUB HEADER */
.sub-header {
    height: 8%; background: #111;
    border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-evenly; position: relative; z-index: 10;
}
.sub-box {
    width: 33.33%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.green-box { background-color: var(--dark-green); }
.sub-box .label { font-size: 0.8rem; text-transform: uppercase; color: var(--faded-text); font-weight: 500; letter-spacing: 1px; }
.sub-box .value { font-size: 1.2rem; font-weight: 700; color: var(--text-color); }

/* BODY */
.flyer-body {
    flex-grow: 1; padding: 1.6rem 3rem 1rem;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; min-height: 0;
    color: var(--text-color);
}
.info-block { margin-bottom: 1.3rem; }
.info-block h3 {
    font-size: 1.3rem; font-weight: 800; text-transform: uppercase;
    color: var(--skutt-green); letter-spacing: 2px;
    border-bottom: 2px solid var(--skutt-green); padding-bottom: 0.4rem; margin-bottom: 1rem;
}
.info-block p { font-size: 0.95rem; color: #fff; margin-bottom: 0.55rem; line-height: 1.4; }
.info-block span.label {
    font-weight: 700; color: #aaa; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 0.5px; margin-right: 8px;
}

.stat-row { display: flex; gap: 2rem; margin-bottom: 1rem; }
.acad-block .award { padding-left: 15px; border-left: 3px solid var(--skutt-green); color: var(--faded-text); font-size: 0.9rem; }


.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0.5rem; }
.stat-box {
    background: #111; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; padding: 0.6rem; text-align: center; font-weight: 800; font-size: 1.2rem;
}
.stat-box .label { font-size: 0.75rem; color: #888; font-weight: 500; }

.awards-block ul { list-style: circle; padding-left: 20px; color: var(--faded-text); }
.awards-block li { margin-bottom: 0.5rem; font-size: 0.95rem; }

.coaches-block .coach-box { margin-bottom: 0.7rem; }
.coaches-block .coach-name { font-weight: 700; color: #fff; margin-bottom: 0; }
.coaches-block p { font-size: 0.85rem; color: var(--faded-text); margin-bottom: 0.2rem; }
.coaches-block .coach-box { margin-bottom: 1rem; padding-left: 15px; border-left: 3px solid var(--skutt-green); }
.coaches-block .coach-name { font-size: 0.95rem; }
.coaches-block a { color: inherit; text-decoration: none; }

/* FOOTER */
.flyer-footer {
    flex: none; background: #0b0b0b; border-top: 3px solid var(--skutt-green);
    padding: 1.2rem 3rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    text-align: center;
}
.footer-name { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.95rem; }
.footer-name span { color: var(--skutt-green); font-weight: 500; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }
.footer-links a { color: var(--faded-text); text-decoration: none; font-size: 0.8rem; }
.footer-links a:hover { color: var(--skutt-green); }

/* PHONE: stack everything, drop the fixed A4 height */
@media (max-width: 820px) {
    body { padding: 16px; }
    .flyer-page { width: 100%; height: auto; }
    .flyer-header { height: auto; flex-direction: column; }
    .name-box { width: 100%; padding: 7rem 1.5rem 1.5rem; }
    .name-box h1 { font-size: 3rem; }
    .name-box h2 { font-size: 1rem; }
    .main-portrait-frame { position: relative; width: 100%; height: 360px; top: 0; }
    .grad-circle { top: 20px; left: 20px; right: auto; }
    .sub-header { height: auto; }
    .sub-box { padding: 0.8rem 0.3rem; text-align: center; }
    .sub-box .value { font-size: 0.95rem; }
    .flyer-body { grid-template-columns: 1fr; padding: 1.5rem; gap: 0; }
    .flyer-footer { padding: 1.2rem 1.5rem; }
    .footer-links { flex-direction: column; gap: 0.35rem; }
}

/* PRINT: one clean A4 page */
@page { size: A4; margin: 0; }
@media print {
    body { background: #000; padding: 0; display: block; }
    .flyer-toolbar { display: none; }
    .flyer-page { box-shadow: none; border: 0; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
