/* =====================================================
   Game Scouter - styles.css
   ===================================================== */

/* ---------- Reset ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- Body ---------- */

body{

    min-height:100vh;

    font-family:"Blinker",sans-serif;

    color:white;

    background:
        radial-gradient(circle at top,#5f1898 0%,#25043b 35%,#120018 70%,#050505 100%);

    overflow-x:hidden;
}
/* ---------- Layout ---------- */

.container{

    max-width:760px;

    margin:0 auto;

    padding:0 30px 60px;

    display:flex;

    flex-direction:column;

    gap:28px;
}

/* =========================================
   Header
========================================= */

.header{
    display:flex;
    flex-direction:column;
    align-items:center;

    margin-top:45px;
    margin-bottom:25px;
}

.logo-title{
    display:flex;
    flex-direction:column;
    align-items:center;

    font-family:"Blinker",sans-serif;
    text-transform:uppercase;
    line-height:.82;
}

.logo-title .game{
    font-size:2.4rem;
    font-weight:800;

    color:#74ff7a;

    letter-spacing:5px;

    text-shadow:
        0 0 6px #74ff7a,
        0 0 14px #74ff7a,
        0 0 28px rgba(116,255,122,.6);
}

.logo-title .scouter{
    margin-top:-4px;

    font-size:3.4rem;
    font-weight:800;

    color:#ffffff;

    letter-spacing:4px;

    text-shadow:
        0 0 8px white,
        0 0 18px rgba(255,255,255,.9),
        0 0 30px rgba(195,150,255,.45);
}

/* ---------- Cards ---------- */

.card {
    background: #fcfffd;

    border: 5px solid hsl(191, 100%, 61%);

    border-radius: 10px;

    display: flex;

    flex-direction: column;

    gap: 0.75rem;

    box-shadow: 0 0 15px #00f2fe, inset 0 0 15px #00f2fe;

    padding: 20px;
}

.camera-view{

    width: 100%;
  
    aspect-ratio: 16/9;
        
    margin: 0px;

    margin-top:0px;

    position:relative;

    overflow:hidden;

    background:#000;

    border-radius:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    border:2px solid rgba(116,255,122,.25);

    box-shadow:
        0 0 25px rgba(116,255,122,.15);
}

.card:has(.camera-view) {
    padding: 0;
    gap: 0;
}

#videoFeed {

    width: 100%;

    height: 100%;

    object-fit: cover;
}

.scanner-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    border: 2px dashed rgba(16, 185, 129, .5);

    pointer-events: none;
}

.scanner-overlay span {

    background: rgba(15, 23, 42, .85);

    color: #6ee7b7;

    padding: .35rem .75rem;

    border-radius: 8px;

    font-size: .75rem;
}

/* ---------- Search ---------- */


.card:has(.search-row) {
    padding: 0;
}

.search-row button {
    width: 140px;
    border-radius: 0;
}


.search-row {
    display: flex;
    width: 100%;
    gap: 0px;
}

.search-row button {
    flex: 0.25;
}

.search-row input {
    flex: 1;
    width: 100%;
    border-radius: 0;
    color: black;
}

.search-row input:focus {

    outline: none;

    border-color: #10b981;

    box-shadow: 0 0 0 2px rgba(16,185,129,.2);
}

/* ---------- Buttons ---------- */

.btn {
    border: 1px solid #822ac6;
    box-shadow:
        0 0 8px #9400fe,
        inset 0 0 8px #00f2fe;

    border-radius: 16px;

    padding: .75rem 1rem;

    cursor: pointer;

    font-weight: bold;

    transition: all .2s ease;
}

.btn-green {

    background: #5938b5;

    color: white;
}

.btn-green:hover {

    background: #250b57;
}

.btn-red {

    background: #dc2626;

    color: white;
}

.btn-red:hover {

    background: #ef4444;
}

/* ---------- Results ---------- */

#resultsContainer {

    display: flex;

    flex-direction: column;

    gap: 1rem;
}

/* ---------- Tables ---------- */

table {

    width: 100%;

    border-collapse: collapse;

    font-size: .8rem;
}

thead {

    border-bottom: 1px solid #334155;

    color: #94a3b8;
}

tbody tr {

    border-bottom: 1px solid rgba(51, 65, 85, .5);
}

th {

    padding: .6rem;

    text-align: left;

    font-weight: 600;
}

td {

    padding: .65rem;

    vertical-align: top;
}

/* ---------- Utility ---------- */

.text-center {
    text-align: center;
}

.text-green {
    color: #34d399;
}

.text-red {
    color: #f87171;
}

.text-yellow {
    color: #fbbf24;
}

.small {
    font-size: .8rem;
}

.mono {
    font-family: Consolas, Monaco, monospace;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {

    .search-row {

        flex-direction: column;
    }

    .search-row button {

        width: 100%;
    }

    .title {

        font-size: 1.25rem;
    }

    table {

        font-size: .72rem;
    }

    th,
    td {

        padding: .45rem;
    }
}

.search-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.search-row input {
    max-width: 350px;
}

.section-title {
    width: 100%;
    text-align: center;
}

/* ================================
   Game Scouter Logo
================================ */
.logo-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Blinker", sans-serif;
    text-transform: uppercase;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
    white-space: nowrap;
}

.logo-text {
    display: inline-block;
    white-space: nowrap;
}

/* Green characters */
.logo-green {
    color: #74ff7a;

    text-shadow:
        0 0 1px #74ff7a,
        0 0 14px #74ff7a,
        0 0 28px rgba(116,255,122,.6);
}

/* White characters */
.logo-white {
    color: white;

    text-shadow:
        0 0 1px white,
        0 0 18px rgba(255,255,255,.9),
        0 0 30px rgba(195,150,255,.45);
}