/* ============================================================
   GlowCard™ — Stylesheet
   Namespace: gc- (DesignSystem.md Section 14, CSS Architecture)
   Scope: static/css/glowcard.css — GlowCard component styles only.
   Follows DesignSystem.md Sections 2, 3, 4, 5, 6, 9, 12, 13, 16.
   No Bootstrap. No animations. No JavaScript. HTML unmodified.
   ============================================================ */

/* ------------------------------------------------------------
   1. Overlay — full-screen modal layer
   Z-index: 200 (Overlay layer, Section 13)
   ------------------------------------------------------------ */

.gc-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gc-overlay[hidden] {
  display: none;
}

.gc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
}

/* ------------------------------------------------------------
   2. Panel — scroll container around the card
   Per Section 12: overlay is scrollable on mobile,
   the card itself is shown at its full CSS size (not shrunk).
   ------------------------------------------------------------ */

.gc-panel{
    position:relative;
    z-index:1;

    width:100%;
    height:100%;

    overflow-y:auto;
    overflow-x:hidden;

    display:flex;
    flex-direction:column;
    align-items:center;

    padding:2rem 1.25rem 4rem;
}

.gc-close-btn {
  position: sticky;
  top: 35px;
  align-self: flex-end;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  z-index: 10;
}

.gc-close-btn:hover {
  border-color: var(--muted);
  color: var(--text);
}

.gc-close-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   3. GlowCard™ — the 540×960 export artifact
   Fixed CSS size, never shrunk. Warmer dark background,
   distinct from app UI (Section 9).
   ------------------------------------------------------------ */

.gc-card {
  position: relative;
  flex-shrink: 0;
  width: 540px;
  height: 960px;
  border-radius: 20px;
  border: 1px solid rgba(249, 115, 22, 0.26);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.07),
    0 40px 100px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.09), transparent 60%),
    linear-gradient(180deg, #111009 0%, #0c0c0c 55%, #100f09 100%);
}

/* Subtle grid texture — decorative, Section 2 GlowCard palette */
.gc-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px);
  background-size: 27px 27px;
  pointer-events: none;
}

/* Corner accents — decorative signature of the GlowCard */
.gc-corner {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  pointer-events: none;
}

.gc-corner--tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.gc-corner--tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.gc-corner--bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.gc-corner--br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

/* ------------------------------------------------------------
   4. Content column
   ------------------------------------------------------------ */

.gc-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
}

/* ------------------------------------------------------------
   5. Header
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   5. Header
------------------------------------------------------------ */

.gc-header-section{
    margin-bottom:20px;
}

.gc-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.gc-logo{
    font-size:18px;
    font-weight:800;
    color: #FF9F1C;
   
    text-shadow: 0 0 10px rgba(255, 200, 87, 0.20);
    letter-spacing:-0.02em;
}

.gc-report-label{
    font-size:11px;
    font-weight:700;
    color:var(--muted);
    letter-spacing:.22em;
    text-transform:uppercase;
}


/* ------------------------------------------------------------
   6. Photo
   ------------------------------------------------------------ */
/* ------------------------------------------------------------
   6. Identity
------------------------------------------------------------ */

.gc-identity-section{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
     margin-top: 8px;
}

.gc-sample-photo{

    width:175px;
    height:175px;

    border-radius:50%;

    overflow:hidden;

    border:2px solid rgba(255,255,255,.08);

    box-shadow:
    0 0 0 8px rgba(249,115,22,.06),
    0 0 45px rgba(249,115,22,.18),
    0 25px 50px rgba(0,0,0,.45),
    inset 0 0 18px rgba(255,255,255,.05);

    background:#161616;

    margin-bottom:0;
}

.gc-sample-photo-img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.gc-sample-photo-placeholder{
    width:100%;
    height:100%;
    background:#1b1b1b;
}

.gc-title{
    font-size:15px;
    font-weight:700;
    letter-spacing:.26em;
    text-transform:uppercase;
    color:var(--muted);
    margin-bottom:8px;
    margin-top: 8px;
}

.gc-subtitle{
    font-size:12px;
    color:var(--muted);
    opacity:.65;
    margin:0;
}


/* ------------------------------------------------------------
   7. Glow Score™ block
   card-score token: 66px fixed px (export fidelity), weight 900
   ------------------------------------------------------------ */
/* ------------------------------------------------------------
   7. Score
------------------------------------------------------------ */

.gc-score-section{
    position: relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin:8px 0 10px;
    padding:4px 0;
}

.gc-sample-score{
    position:relative;
    z-index:2;
     padding: 0 0.08em;
    line-height: 1.05;
    font-size:110px;
    line-height:.9;
    font-weight:900;
    color:#ffffff;

    letter-spacing:-5px;

    text-shadow:
        0 0 25px rgba(249,115,22,.18),
        0 8px 30px rgba(0,0,0,.45);
}
.gc-score-watermark{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:260px;
    font-weight:900;
    color:#f97316;
    opacity:.05;
    line-height:1;
    user-select:none;
    pointer-events:none;
    z-index:0;
}
.gc-sample-score-label{
    position:relative;
    z-index:2;

    margin-top:8px;

    font-size:12px;

    letter-spacing:.34em;

    color:rgba(255,255,255,.72);
}

.gc-sample-tier{

    position:relative;
    z-index:2;

    display:inline-flex;
    flex-direction:column;
    align-items:center;

    margin-top:12px;

    padding:10px 22px;

    border-radius:999px;

    border:1px solid rgba(249,115,22,.28);
    min-width:150px;
    background:rgba(249,115,22,.08);

    backdrop-filter:blur(6px);

    color:#fbbf24;

    font-weight:600;

    gap:2px;
}
.gc-tier-grade{
    font-size:18px;
    font-weight:800;
    letter-spacing:.18em;
    color:#fbbf24;
}
.gc-tier-title{

    font-size:1rem;

    letter-spacing:.28em;

    color:rgba(255,255,255,.72);
     opacity:.8;
    margin-top:4px;
    font-weight: 900;
}

/* ------------------------------------------------------------
   8. Features
------------------------------------------------------------ */

.gc-divider{
    width:100%;
    height:1px;
    background:var(--border);
    margin:12px 0 10px;
}

.gc-ranking-section{
    text-align:center;
}

.gc-ranking-title{
    font-size:13px;
    color:rgba(255,255,255,.62);;
    letter-spacing:.34em;
    text-transform:uppercase;
    font-weight:800;
}

.gc-achievements-section{
    margin-top:18px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.gc-achievement{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:10px 18px;

    border-radius:999px;

    border:1px solid rgba(255,255,255,.08);

   background:linear-gradient(
    180deg,
    rgba(255,255,255,.05),
    rgba(255,255,255,.025)
);
     transition:.2s;
    font-size:18px;
    font-weight:700;

    color:#ffffff;

    margin:8px auto;

    width:auto;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 0 25px rgba(249,115,22,.04);
}
.gc-achievement-icon{

    color:#fbbf24;

    font-size:18px;

    text-shadow:0 0 10px rgba(251,191,36,.5);
}
/* ------------------------------------------------------------
   9. Footer
   ------------------------------------------------------------ */
/* ------------------------------------------------------------
   9. Footer
------------------------------------------------------------ */

.gc-footer-section{
    margin-top:auto;
    padding-top:30px;
    border-top:1px solid var(--border);
}

.gc-footer-generated{
    text-align:center;
    color:var(--muted);
    font-size:13px;
    margin-bottom:22px;
}

.gc-footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.gc-footer-brand{
    color:var(--accent);
    font-size:13px;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.gc-footer-id{
    color:var(--muted);
    font-size:13px;
    font-weight:600;
}

/* ------------------------------------------------------------
   10. Download action (outside the card, part of the panel)
   Variant 1 — Primary, per Section 8
   ------------------------------------------------------------ */

.gc-download-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.72rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.gc-download-btn:hover {
  background: var(--accent-d);
}

.gc-download-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   11. Responsive — mobile (Section 12)
   Card keeps its full CSS size; panel scrolls to accommodate.
   ------------------------------------------------------------ */

@media (max-width:599px){

    .gc-panel{
        padding:1.25rem 1rem;
    }

}

/* ============================================================
   DNA Advantages
============================================================ */

.gc-stats-section{
    margin-top: 12px;
}

.gc-section-title{
    text-align:center;

    font-size:12px;
    font-weight:800;

    letter-spacing:.32em;
    text-transform:uppercase;

    color:rgba(255,255,255,.60);

    margin-bottom:18px;
}

.gc-stat-row{

    display:grid;

    grid-template-columns:120px 1fr 60px;

    align-items:center;

    gap:18px;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.gc-stat-name{

      color: #ffffff;
   text-shadow: 0 0 8px rgba(245, 166, 35, 0.25);
    
    font-size:16px;

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

}
.gc-stat-bar{
    width: 260px;
    height: 5px;

    background: rgba(255,255,255,.10);

    border-radius: 999px;
    overflow: hidden;

    justify-self: center;
}
.gc-stat-fill{
    height:100%;
    border-radius:999px;

    background:linear-gradient(
        90deg,
        #fbbf24,
        #f97316
    );

    box-shadow:0 0 4px rgba(249,115,22,.25);
}
.gc-stat-grade{

    text-align:right;

    color:#fbbf24;

    font-size:18px;

    font-weight:800;

}

.gc-grade-splus{
    color:#FFD54A;
}

.gc-grade-aplus{
    color:#FFC857;
}

.gc-grade-a{
    color:#D29A52;
}

.gc-grade-b{
    
     color:#E8E8E8;
}

.gc-card-actions{
    display:flex;
    justify-content:center;
    align-items:center;

    width:540px;

    margin-top:20px;
    margin-bottom:30px;

    flex-shrink:0;
}
.gc-download-btn{

    min-width:220px;

    height:52px;

}

/* ==========================================
   Playwright Render Page
========================================== */

.gc-render-page{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#0a0a0a;

    padding:40px;

}

.gc-card-frame {
    width: 540px;
    height: 960px;
    flex-shrink: 0;
}

@media (max-width: 700px) {

      .gc-panel {
        padding-left: 12px;
        padding-right: 12px;
    }


    .gc-card-frame {
        width: 335px;
        height: 620px;
        display: flex;
        justify-content: center;
        overflow: visible;
         padding-top: 12px;
        box-sizing: border-box;
    }

    .gc-card {
        transform: scale(0.62);
        transform-origin: top center;
        
    }

    .gc-card-actions {
        width: 100%;
        margin-top: 8px;
    }
}