/* =========================
   PAGE BASE
========================= */
html, body {
    height: 100%;
    margin: 0;
    background: #000;
    font-family: Arial, sans-serif;
    color: #f5c84c;
    overflow-x: hidden;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 0 20px;

    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* LEFT (USER STATUS) */
.top-bar .left {
    justify-self: start;
}

/* CENTER (SEARCH) */
.top-bar .center {
    justify-self: center;
}

/* RIGHT (CONTROL BUTTON) */
.top-bar .right {
    justify-self: end;
}

/* =========================
   SEARCH INPUT (GOLD)
========================= */
.search-form input {
    width: 600px;
    max-width: 100%;

    padding: 10px;
    border: none;
    outline: none;

    border-radius: 6px;

    background: #f5c84c;
    color: #000;

    font-weight: bold;
    text-align: center;
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.15s;
    border: none;
}

.btn:hover {
    transform: scale(1.05);
}

/* CREATOR CONTROL BUTTON */
.btn-creator {
    background: #f5c84c;
    color: #000;
}

/* =========================
   MAIN FRAME
========================= */
.ui-frame {
    margin-top: 80px;

    display: grid;
    grid-template-columns: 250px 1fr 250px;

    min-height: calc(100vh - 80px);

    margin: 20px;
    border-radius: 10px;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

/* =========================
   CENTER PANEL
========================= */
.center {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 30px;
    background: #000;
}

/* =========================
   HERO
========================= */
.hero-box {
    width: 320px;
    height: 320px;
    background: #bbb2f3;
    margin-bottom: 15px;
}

/* =========================
   LINK GRID (FINAL SYSTEM)
========================= */
.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 40px);
    justify-content: center;

    gap: 20px;
    margin-top: 20px;
}

/* =========================
   LINK ICON
========================= */
.link-icon {
    width: 40px;
    height: 40px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    border-radius: 50%;
    display: block;

    position: relative;

    transition: transform 0.15s ease, filter 0.2s ease;
}

/* INACTIVE STATE */
.link-icon:not(.live) {
    filter: grayscale(0%) brightness(0.8);
}

/* HOVER */
.link-icon:hover {
    transform: scale(1.1);
}

/* =========================
   LIVE STATE (AGGRESSIVE)
========================= */
.link-icon.live {
    filter: none;
    animation: livePulse 1.5s infinite linear;
}

/* =========================
   6-STAGE PULSE
========================= */
@keyframes livePulse {

    0%   { box-shadow: 0 0 2px rgba(255,0,0,0.4); }
    20%  { box-shadow: 0 0 6px rgba(255,0,0,0.7); }
    40%  { box-shadow: 0 0 10px rgba(255,0,0,0.9); }
    60%  { box-shadow: 0 0 14px rgba(255,0,0,1); }
    80%  { box-shadow: 0 0 8px rgba(255,0,0,0.8); }
    100% { box-shadow: 0 0 2px rgba(255,0,0,0.4); }
}