/* ===================================================
   REI DO SLOT — CSS Convencional (convertido do Tailwind)
   =================================================== */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: sans-serif;
    color: #fff;
    min-height: 100vh;
    padding-bottom: 3rem;
    background-color: #212121;
    background-image: url('../images/bg_pattern.avif');
    background-size: 3.8rem 3.8rem;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Fonte especial ---------- */
@import url('https://fonts.googleapis.com/css2?family=Superstar&display=swap');
.font-superstar { font-family: 'Superstar', sans-serif; }

/* ---------- Animação gradiente ---------- */
@keyframes gradient {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* ---------- Layout utilitários ---------- */
.container {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-4         { gap: 1rem; }
.relative      { position: relative; }
.z-10          { z-index: 10; }
.w-full        { width: 100%; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.overflow-hidden{ overflow: hidden; }

/* ---------- Topo / Nav ---------- */
.nav-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
    height: 95px;
    /*background: url('../images/download.png') center / contain no-repeat;*/
}

.nav-bar a { position: relative; z-index: 10; }
.nav-bar img.nav-home     { width: 8rem; }
.nav-bar img.nav-social   { width: 6rem; }

/* ---------- Logo ---------- */
.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.logo-wrapper img {
    width: 100%;
    max-width: 290px;
    filter: drop-shadow(0 25px 25px rgba(0,0,0,.5));
}

/* ---------- Campo de busca ---------- */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: 9999px;
    border: 3px solid #757575;
    background: #161616;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 500;
    outline: none;
    transition: box-shadow .2s;
}

.search-input::placeholder { color: #555; }

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(253,224,71,.5);
}

.search-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .75rem;
    border-radius: .75rem;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.search-btn:hover { background: #fde047; }

.search-btn svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Grid de plataformas ---------- */
.platforms-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.platforms-card {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1rem;
}

/* ---------- Card de plataforma ---------- */
.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.platform-card:hover { transform: translateY(-8px); }

.circle-logo {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(255,215,0,.6);
    transition: all .3s ease;
    margin: 0 auto;
}

.circle-logo:hover {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 0 30px rgba(255,215,0,.9);
}

.circle-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fallback para imagens quebradas */
    background: #333;
}

/* Placeholder quando imagem falha */
.circle-logo img[src=""], 
.circle-logo img:not([src]) {
    visibility: hidden;
}

.platform-link-wrap {
    position: relative;
    display: block;
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(#ff0000, #ff0000);
    color: #fff;
    padding: 2px 10px;
    border-radius: 9999px;
    font-weight: 900;
    font-size: .7rem;
    border: 2px solid #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.platform-name {
    margin-top: .75rem;
    font-size: .8125rem;
    font-weight: 700;
    color: #ffca00;
    text-align: center;
    line-height: 1.25;
    transition: color .2s;
}

.platform-name:hover { color: #fff; }

/* ---------- Tabela de ganhadores ---------- */
.winners-section {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.winners-card {
    background: linear-gradient(to bottom, #facc15, #fb923c, #dc2626);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    border: 1px solid #fde047;
}

.winners-header {
    background: #b91c1c;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 4px solid #fde047;
}

.winner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.winner-table thead tr {
    background: #eab308;
    color: #000;
}

.winner-table th {
    padding: .75rem;
    text-align: left;
}

.winner-table th:last-child { text-align: right; }

.winner-table tbody {
    color: #000;
    font-weight: 500;
}

.winner-table tbody tr {
    border-top: 1px solid #fde047;
    transition: background .15s;
}

.winner-table tbody tr:hover {
    background-color: #ef4444 !important;
    color: #fff;
}

.winner-table td {
    padding: .75rem;
}

.winner-table td:last-child {
    text-align: right;
    font-weight: 700;
}

/* ---------- Admin: layout base ---------- */
.admin-body {
    background: #0a1f0a;
    color: #fff;
    min-height: 100vh;
    font-family: sans-serif;
}

.admin-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ---------- Admin: dashboard ---------- */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-topbar h1 { font-size: 1.875rem; }

.admin-topbar-actions { display: flex; gap: .75rem; align-items: center; }

.btn-primary {
    background: #16a34a;
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: .375rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-primary:hover { background: #15803d; }

.btn-danger-link { color: #f87171; font-size: .95rem; }
.btn-danger-link:hover { text-decoration: underline; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #034700;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #14532d;
}

.admin-table thead tr { border-bottom: 2px solid #166534; }

.admin-table tbody tr:hover { background: #036400; }

.admin-table img { width: 4rem; border-radius: .375rem; background: #111; }

.link-edit   { color: #60a5fa; }
.link-delete { color: #f87171; }
.link-edit:hover, .link-delete:hover { text-decoration: underline; }

/* ---------- Admin: form plataforma ---------- */
.admin-form-card {
    max-width: 32rem;
    margin: 2.5rem auto;
    background: #034700;
    padding: 2rem;
    border-radius: 1.5rem;
}

.admin-form-card h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.admin-form-card input[type="text"],
.admin-form-card input[type="url"],
.admin-form-card input[type="file"] {
    width: 100%;
    padding: .75rem;
    margin-bottom: 1rem;
    background: #000;
    border: none;
    border-radius: .375rem;
    color: #fff;
    font-size: 1rem;
}

.admin-form-card input[type="file"] { color: #ccc; cursor: pointer; }

.admin-form-card label.checkbox-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.form-current-img { margin-bottom: .5rem; font-size: .875rem; color: #ccc; }
.form-current-img img { width: 8rem; margin-top: .5rem; border-radius: .375rem; background: #111; }

.btn-submit {
    width: 100%;
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: .375rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.btn-submit:hover { background: #15803d; }

/* ---------- Admin: login ---------- */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: #034700;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #166534;
    width: 100%;
    max-width: 360px;
}

.login-card h2 { font-size: 1.5rem; text-align: center; margin-bottom: 1.5rem; }

.login-card input {
    display: block;
    width: 100%;
    margin-bottom: .75rem;
    padding: .75rem;
    border-radius: .375rem;
    background: #000;
    border: none;
    color: #fff;
    font-size: 1rem;
}

.login-card input:last-of-type { margin-bottom: 1.5rem; }

.login-card .btn-submit { margin-top: 0; }

.error-msg { color: #f87171; margin-bottom: 1rem; font-size: .9rem; }
