/* =====================================================================
   ADMIN PANEL — Anarnova
   Plantilla por: Nicolas Cattolica — +5493815090548
   ===================================================================== */

.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--ruby), var(--gold-deep));
    color: var(--cream);
    font-family: var(--f-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .3em;
    padding: .35rem .85rem;
    border-radius: 3px;
    margin-left: 1rem;
    box-shadow: 0 0 12px rgba(200, 32, 43, .35);
}

.admin-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 5;
}

/* ===== Sidebar ===== */
.admin-sidebar {
    background: linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .9));
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 6px;
    padding: 1.5rem;
    position: sticky;
    top: 7rem;
    height: fit-content;
}
.admin-sidebar__title {
    font-family: var(--f-display);
    font-size: .85rem;
    letter-spacing: .25em;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(212, 162, 78, .2);
}
.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.admin-tab {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: .65rem .85rem;
    text-align: left;
    color: var(--text-dim);
    font-family: inherit;
    font-size: .9rem;
    transition: all .2s ease;
    cursor: url('img/cursor/link.cur'), pointer;
}
.admin-tab:hover {
    background: rgba(212, 162, 78, .08);
    color: var(--gold-bright);
    border-color: rgba(212, 162, 78, .2);
}
.admin-tab.is-active {
    background: linear-gradient(90deg, rgba(212, 162, 78, .2), rgba(212, 162, 78, .05));
    color: var(--gold-bright);
    border-color: var(--gold);
    font-weight: 600;
}
.admin-sidebar__footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 162, 78, .15);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.admin-sidebar__footer .btn {
    justify-content: center;
}

/* ===== Content area ===== */
.admin-content {
    min-width: 0;
}

.admin-section { display: none; }
.admin-section.is-active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admin-section__title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 2rem;
    background: linear-gradient(180deg, var(--cream), var(--gold) 60%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .5rem;
}
.admin-section__h2 {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--gold-bright);
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(212, 162, 78, .2);
}
.admin-section__lead {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ===== Stats (overview) ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.admin-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 6px;
    padding: 1.25rem;
}
.admin-stat__icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(212, 162, 78, .4));
}
.admin-stat strong {
    display: block;
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--gold-bright);
    line-height: 1;
}
.admin-stat small {
    color: var(--text-dim);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ===== Quick action cards ===== */
.admin-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.admin-quick__card {
    background: linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: left;
    cursor: url('img/cursor/link.cur'), pointer;
    transition: all .25s ease;
    font-family: inherit;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.admin-quick__card span:first-child { font-size: 2rem; }
.admin-quick__card strong {
    color: var(--gold-bright);
    font-family: var(--f-display);
    font-size: 1.05rem;
}
.admin-quick__card small {
    color: var(--text-dim);
    font-size: .85rem;
}
.admin-quick__card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 25px -10px rgba(212, 162, 78, .4);
}

/* ===== Forms ===== */
.admin-form {
    background: linear-gradient(180deg, rgba(58, 46, 34, .3), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .2);
    border-radius: 6px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.admin-form .form__field input,
.admin-form .form__field textarea,
.admin-form .form__field select {
    background: rgba(10, 8, 7, .7);
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 4px;
    padding: .75rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: all .2s ease;
}
.admin-form .form__field input:focus,
.admin-form .form__field textarea:focus,
.admin-form .form__field select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 162, 78, .15);
}
.admin-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ===== Two-column layout (benefits) ===== */
.admin-twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.admin-fieldset {
    background: rgba(10, 8, 7, .5);
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 6px;
    padding: 1.25rem;
}
.admin-fieldset legend {
    padding: 0 .75rem;
    font-family: var(--f-display);
    color: var(--gold-bright);
    letter-spacing: .15em;
    font-size: .95rem;
}
.admin-fieldset--vip {
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 162, 78, .12), transparent 60%),
        rgba(10, 8, 7, .55);
    border-color: var(--gold);
}
.admin-fieldset__sub {
    font-family: var(--f-display);
    font-size: .7rem;
    letter-spacing: .3em;
    color: var(--gold);
    text-transform: uppercase;
    margin: 1rem 0 .5rem;
}
.benefit-rows {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.benefit-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 24px;
    gap: .5rem;
    align-items: center;
}
.benefit-row input {
    background: rgba(10, 8, 7, .85);
    border: 1px solid rgba(212, 162, 78, .2);
    border-radius: 3px;
    padding: .45rem .65rem;
    color: var(--text);
    font-size: .85rem;
    font-family: inherit;
}
.benefit-row input:focus { outline: none; border-color: var(--gold); }
.benefit-row__del {
    background: transparent;
    border: 1px solid rgba(200, 32, 43, .3);
    color: var(--ruby);
    border-radius: 3px;
    font-size: .85rem;
    cursor: url('img/cursor/link.cur'), pointer;
    padding: 0;
    width: 24px; height: 24px;
}
.benefit-row__del:hover { background: rgba(200, 32, 43, .15); }
.benefit-row__add {
    margin-top: .5rem;
    background: transparent;
    border: 1px dashed rgba(212, 162, 78, .35);
    color: var(--gold);
    border-radius: 3px;
    padding: .45rem;
    font-size: .8rem;
    cursor: url('img/cursor/link.cur'), pointer;
    width: 100%;
}
.benefit-row__add:hover { background: rgba(212, 162, 78, .08); border-style: solid; }

/* ===== Lists (news, admins) ===== */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.admin-list__item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    background: rgba(10, 8, 7, .5);
    border: 1px solid rgba(212, 162, 78, .2);
    border-radius: 4px;
    padding: .85rem 1rem;
    transition: all .2s ease;
}
.admin-list__item:hover { border-color: var(--gold); background: rgba(10, 8, 7, .7); }
.admin-list__item img { width: 60px; height: 40px; object-fit: cover; border-radius: 3px; }
.admin-list__item strong { color: var(--gold-bright); }
.admin-list__item small { color: var(--text-dim); display: block; margin-top: .15rem; }
.admin-list__item .btn { padding: .4rem .8rem; font-size: .75rem; }

/* ===== Save feedback toast ===== */
.admin-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, .25), rgba(74, 222, 128, .1));
    border: 1px solid #4ade80;
    color: #4ade80;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-family: var(--f-display);
    letter-spacing: .15em;
    font-size: .85rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    z-index: 10000;
    animation: toastIn .3s ease, toastOut .3s ease 2.5s forwards;
}
.admin-toast--error {
    background: linear-gradient(135deg, rgba(200, 32, 43, .25), rgba(200, 32, 43, .1));
    border-color: var(--ruby);
    color: #fda5a5;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .admin-page { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
    .admin-twocol { grid-template-columns: 1fr; }
}
