/*
Theme Name: First Challenge App
Theme URI: https://example.com/
Author: First Challenge
Description: Lightweight mobile-app-style WordPress theme for the First Challenge betting and voting platform.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
*/
:root{
  --fc-green:#18a957;
  --fc-green-dark:#0d8b45;
  --fc-ink:#111827;
  --fc-muted:#667085;
  --fc-bg:#f4f7f6;
  --fc-card:#fff;
  --fc-border:#e6ebe8;
  --fc-danger:#e5484d;
  --fc-radius:22px;
  --fc-shadow:0 8px 30px rgba(17,24,39,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--fc-bg);
  color:var(--fc-ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.5;
  padding-bottom:88px;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
img{max-width:100%;height:auto}
.fc-shell{max-width:760px;margin:0 auto;min-height:100vh}
.fc-topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--fc-border);
}
.fc-topbar-inner{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 18px}
.fc-brand{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:800;letter-spacing:-.5px}
.fc-brand .green{color:var(--fc-green)}
.fc-logo{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--fc-green),#27c66b);display:grid;place-items:center;color:#fff;font-weight:900}
.fc-top-actions{display:flex;gap:8px}
.fc-icon-btn{
  width:42px;height:42px;border:1px solid var(--fc-border);border-radius:14px;
  background:#fff;display:grid;place-items:center;font-size:19px;cursor:pointer
}
.fc-main{padding:18px 14px 24px}
.fc-hero{
  border-radius:28px;padding:24px;color:#fff;
  background:linear-gradient(135deg,#101827 0%,#172536 60%,#0d8b45 150%);
  box-shadow:var(--fc-shadow);margin-bottom:16px
}
.fc-hero small{opacity:.72;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.fc-hero h1{font-size:32px;line-height:1.08;margin:8px 0}
.fc-hero p{margin:0;color:#d8e1dc}
.fc-section-title{display:flex;justify-content:space-between;align-items:center;margin:24px 4px 12px}
.fc-section-title h2{font-size:19px;margin:0}
.fc-section-title a{font-size:13px;color:var(--fc-green);font-weight:700}
.fc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.fc-card{
  background:var(--fc-card);border:1px solid var(--fc-border);border-radius:var(--fc-radius);
  padding:18px;box-shadow:0 5px 22px rgba(17,24,39,.045)
}
.fc-action{min-height:132px;display:flex;flex-direction:column;justify-content:space-between}
.fc-action .fc-symbol{font-size:28px}
.fc-action strong{display:block;font-size:17px}
.fc-action span{font-size:13px;color:var(--fc-muted)}
.fc-balance{display:flex;justify-content:space-between;align-items:end}
.fc-balance .amount{font-size:30px;font-weight:850;letter-spacing:-1px}
.fc-pill{display:inline-flex;padding:7px 10px;border-radius:999px;background:#eaf8f0;color:var(--fc-green-dark);font-size:12px;font-weight:800}
.fc-btn{
  display:inline-flex;justify-content:center;align-items:center;gap:7px;
  min-height:48px;padding:0 18px;border:0;border-radius:15px;background:var(--fc-green);
  color:#fff;font-weight:800;cursor:pointer;box-shadow:0 7px 18px rgba(24,169,87,.2)
}
.fc-btn.secondary{background:#eef2f0;color:var(--fc-ink);box-shadow:none}
.fc-btn.full{width:100%}
.fc-btn.danger{background:var(--fc-danger)}
.fc-form input,.fc-form select,.fc-form textarea{
  width:100%;min-height:50px;border:1px solid #dce3df;border-radius:15px;background:#fff;
  padding:0 15px;outline:none;margin:6px 0 12px
}
.fc-form input:focus,.fc-form select:focus,.fc-form textarea:focus{border-color:var(--fc-green);box-shadow:0 0 0 3px rgba(24,169,87,.1)}
.fc-form label{font-size:13px;font-weight:750;color:#344054}
.fc-notice{padding:13px 15px;border-radius:15px;background:#fff7e8;border:1px solid #f4dfb4;color:#72520b;margin-bottom:12px;font-size:13px}
.fc-post h1,.fc-page-title{font-size:30px;line-height:1.15;margin:8px 0 18px}
.fc-content{background:#fff;border:1px solid var(--fc-border);border-radius:var(--fc-radius);padding:20px}
.fc-bottomnav{
  position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:100;
  width:min(760px,100%);height:78px;background:rgba(255,255,255,.97);
  backdrop-filter:blur(18px);border-top:1px solid var(--fc-border);
  display:grid;grid-template-columns:repeat(5,1fr);padding:8px 8px calc(8px + env(safe-area-inset-bottom))
}
.fc-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7b8490;font-size:11px;font-weight:700;border-radius:15px}
.fc-nav-item .nav-icon{font-size:21px;line-height:1}
.fc-nav-item.active{color:var(--fc-green-dark);background:#edf9f2}
.fc-footer{text-align:center;color:#98a19c;font-size:12px;padding:20px 0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:761px){
  body{padding-bottom:20px}
  .fc-bottomnav{position:sticky;bottom:12px;border:1px solid var(--fc-border);border-radius:20px;margin:0 auto 12px;box-shadow:var(--fc-shadow)}
}
@media(max-width:430px){
  .fc-main{padding-left:10px;padding-right:10px}
  .fc-hero{padding:20px;border-radius:24px}
  .fc-hero h1{font-size:28px}
  .fc-grid{gap:9px}
  .fc-card{padding:15px;border-radius:19px}
}


/* ===== Desktop / laptop app shell ===== */
@media (min-width: 1000px){
  body{
    background:#eef2f0;
    padding-bottom:0;
  }
  .fc-shell{
    max-width:1400px;
    min-height:100vh;
    display:grid;
    grid-template-columns:245px minmax(0,1fr);
    grid-template-rows:76px 1fr;
    margin:0 auto;
    background:#f7f9f8;
  }
  .fc-topbar{
    position:sticky;
    top:0;
    grid-column:1 / -1;
    grid-row:1;
    height:76px;
    z-index:100;
    border-bottom:1px solid var(--fc-border);
  }
  .fc-topbar-inner{
    height:76px;
    max-width:none;
    padding:0 30px;
  }
  .fc-brand{font-size:23px}
  .fc-logo{width:42px;height:42px;border-radius:13px}
  .fc-top-actions{margin-left:auto}
  .fc-main{
    grid-column:2;
    grid-row:2;
    max-width:none;
    width:100%;
    padding:30px 38px 45px;
  }

  /* Desktop sidebar */
  .fc-shell:before{
    content:"";
    grid-column:1;
    grid-row:2;
    background:#fff;
    border-right:1px solid var(--fc-border);
  }
  .fc-bottomnav{
    position:fixed;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    width:calc(min(1400px,100vw) - 490px);
    max-width:760px;
    height:70px;
    border:1px solid var(--fc-border);
    border-radius:20px;
    box-shadow:0 12px 35px rgba(17,24,39,.10);
    z-index:200;
  }

  /* Convert bottom nav into a compact floating desktop navigation */
  .fc-bottomnav{
    top:92px;
    bottom:auto;
    left:calc(50% - 585px);
    transform:none;
    width:205px;
    max-width:none;
    height:auto;
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:12px;
    background:#fff;
  }
  .fc-nav-item{
    min-height:48px;
    flex-direction:row;
    justify-content:flex-start;
    gap:12px;
    padding:0 14px;
    font-size:14px;
  }
  .fc-nav-item .nav-icon{font-size:19px;width:22px;text-align:center}
  .fc-nav-item.active{font-weight:800}

  .fc-hero{
    min-height:225px;
    padding:34px 38px;
    border-radius:28px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .fc-hero h1{font-size:48px}
  .fc-hero p{font-size:17px}

  .fc-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
  }
  .fc-card{border-radius:20px}
  .fc-action{min-height:155px}
  .fc-section-title{margin-top:30px}
}

/* Wide desktop */
@media (min-width: 1250px){
  .fc-shell{grid-template-columns:255px minmax(0,1fr)}
  .fc-main{padding-left:48px;padding-right:48px}
  .fc-bottomnav{
    left:calc(50% - 585px);
    width:215px;
  }
  .fc-hero{min-height:245px}
}

/* Desktop content should breathe without becoming oversized */
@media (min-width: 1000px){
  .fc-main > .fc-grid,
  .fc-main > .fc-section-title,
  .fc-main > .fc-card,
  .fc-main > .fc-hero{
    max-width:1120px;
  }
}
