/* ========================================
   Tema MarioG - Plugin Themer
   ======================================== */

/* ===============================
   LOGO PRINCIPAL
   =============================== */
.mdl-logo img {
    content: url('https://nintendobrasilwiki.org/lib/tpl/nbrasilwiki/images/logo_mario.png') !important;
}

/* ===============================
   CABEÇALHO PRINCIPAL
   =============================== */
.mdl-layout__header-row {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #150025, #000 80%),
                linear-gradient(135deg, rgba(255,0,200,0.25), rgba(0,200,255,0.2));
    color: white;
    font-weight: bold;
    box-shadow: 0 6px 0 #2E0854,
                0 10px 20px rgba(0,0,0,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mdl-layout__header-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 15% 25%, white, transparent),
        radial-gradient(1px 1px at 70% 60%, #ffd, transparent),
        radial-gradient(1.5px 1.5px at 85% 30%, #aaf, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation: stars-flow 28s linear infinite;
    z-index: 0;
}

.mdl-layout__header-row::after {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 40% 40%, rgba(0,255,180,0.25), transparent 70%),
                radial-gradient(circle at 70% 60%, rgba(255,0,150,0.15), transparent 65%);
    animation: aurora-glide 20s ease-in-out infinite alternate;
    z-index: 0;
}

.mdl-layout__header-row * {
    position: relative;
    z-index: 1;
}

.mdl-layout__header-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #4A148C,
                0 14px 26px rgba(0,0,0,0.6);
}

/* ===============================
   ANIMAÇÕES CABEÇALHO
   =============================== */
@keyframes stars-flow {
    from { background-position: 0 0; }
    to { background-position: -200px -200px; }
}

@keyframes aurora-glide {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.15); }
}

/* ===============================
   DRAWER LATERAL
   =============================== */
.mdl-layout__drawer {
    background: #0a0013;
}

.drawer-top {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1a002b, #000 80%),
                linear-gradient(135deg, rgba(255,0,150,0.2), rgba(0,200,255,0.2));
    box-shadow: 0 8px 0 #2E0854,
                0 12px 20px rgba(0,0,0,0.5);
    color: white;
}

.drawer-top {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1a002b, #000 80%),
                linear-gradient(135deg, rgba(255,0,150,0.2), rgba(0,200,255,0.2));
    box-shadow: 0 8px 0 #2E0854,
                0 12px 20px rgba(0,0,0,0.5);
    color: white;
    z-index: 0;
}

.drawer-top::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, #ffd, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #aaf, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation: stars 30s linear infinite;
    z-index: 0;
    pointer-events: none; /* não bloqueia cliques */
}

.drawer-top::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0,255,200,0.2), transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(255,0,200,0.15), transparent 60%);
    animation: aurora 15s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none; /* não bloqueia cliques */
}

.drawer-top:hover {
    box-shadow: 0 10px 0 #4A148C,
                0 16px 28px rgba(0,0,0,0.6);
}

/* ===============================
   ANIMAÇÕES DRAWER
   =============================== */
@keyframes stars {
    from { background-position: 0 0; }
    to { background-position: -200px -200px; }
}

@keyframes aurora {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.2); }
}

/* ===============================
   CABEÇALHO - NOME
   =============================== */
.pagename-bar {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #140020, #000 80%),
                linear-gradient(135deg, rgba(255,0,200,0.25), rgba(0,200,255,0.2));
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    box-shadow: 0 4px 0 #2E0854,
                0 8px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pagename-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1.5px 1.5px at 60% 70%, #ffd, transparent),
        radial-gradient(1px 1px at 80% 20%, #aaf, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent);
    background-size: 180px 180px;
    animation: stars-move 25s linear infinite;
    z-index: 0;
}

.pagename-bar::after {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 40%, rgba(0,255,180,0.2), transparent 70%),
                radial-gradient(circle at 70% 60%, rgba(255,0,150,0.15), transparent 65%);
    animation: aurora-shift 18s ease-in-out infinite alternate;
    z-index: 0;
}

.pagename-bar * {
    position: relative;
    z-index: 1;
}

.pagename-bar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 #4A148C,
                0 12px 20px rgba(0,0,0,0.6);
}

/* ===============================
   ANIMAÇÕES CABEÇALHO - NOME
   =============================== */
@keyframes stars-move {
    from { background-position: 0 0; }
    to { background-position: -180px -180px; }
}

@keyframes aurora-shift {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-20deg) scale(1.2); }
}

/* ===============================
   CONTEÚDO E INFOBOX
   =============================== */
.dokuwiki .wrap_box {
    background: #4CAF50;
}

.infobox {
    position: relative;
    overflow: hidden;
    border: 1px solid #1e0931;
    background: radial-gradient(ellipse at bottom, #1a002b, #000 80%),
                linear-gradient(135deg, rgba(255,0,150,0.2), rgba(0,200,255,0.2));
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 6px 0 #2E0854,
                0 12px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.infobox:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #4A148C,
                0 16px 26px rgba(0,0,0,0.6);
}

.infobox::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, #ffd, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #aaf, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation: stars 30s linear infinite;
    z-index: 0;
    opacity: 0.6;
}

.infobox::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0,255,200,0.2), transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(255,0,200,0.15), transparent 60%);
    animation: aurora 15s ease-in-out infinite alternate;
    z-index: 0;
    opacity: 0.5;
}

.infobox-title {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid #4A148C;
    color: white;
    padding-bottom: 4px;
}

/* ===============================
   SCROLLBAR
   =============================== */
::-webkit-scrollbar-thumb {
    background-color: #6f893a;
}

/* ===============================
   CUSTOM HOME BOX
   =============================== */
.custom-home-box {
    position: relative;
    overflow: hidden;
    width: 967px;
    height: 250px;
    padding: 7px;

    background: rgba(20, 0, 40, 0.4);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-home-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 25%, white, transparent),
        radial-gradient(1px 1px at 70% 60%, #ffd, transparent),
        radial-gradient(1.5px 1.5px at 85% 30%, #aaf, transparent),
        radial-gradient(1px 1px at 45% 85%, #fff, transparent);
    background-size: 200px 200px;
    animation: stars-home 30s linear infinite;
    z-index: 0;
    opacity: 0.5;
}

.custom-home-box::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 40% 40%, rgba(0,255,180,0.15), transparent 70%),
                radial-gradient(circle at 70% 60%, rgba(255,0,150,0.12), transparent 65%);
    animation: aurora-home 18s ease-in-out infinite alternate;
    z-index: 0;
    opacity: 0.6;
}

.custom-home-box * {
    position: relative;
    z-index: 1;
}

.custom-home-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
}

@keyframes stars-home {
    from { background-position: 0 0; }
    to { background-position: -200px -200px; }
}

@keyframes aurora-home {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(20deg) scale(1.15); }
}

.custom-home-box .wrap_box table.pagelist {
    width: 100%;
}

.custom-home-box .wrap_box table.pagelist td.page {
    width: 75%; /* título ocupa mais espaço */
}

.custom-home-box .wrap_box table.pagelist td.date {
    width: 25%; /* data ocupa menos espaço */
    text-align: right;
    white-space: nowrap;
}

/* ===============================
   OUTROS ELEMENTOS
   =============================== */
.mdl-layout__header .mdl-layout__drawer-button {
    background-color: #15ff00;
}

.mdl-layout__content {
    position: relative;
    z-index: 0;
}

.mdl-layout__content::before {
    content: "";
    position: fixed; /* fica preso na tela */
    top: 0;
    left: 0;
    width: 100vw; /* ocupa toda a largura da viewport */
    height: 100vh; /* ocupa toda a altura da viewport */
    background: url('https://nintendobrasilwiki.org/lib/tpl/nbrasilwiki/images/mgb.jpg') 
                center/cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -1; /* sempre atrás do conteúdo */
}

/* ===============================
   PLUGIN SIMPLEBOX
   =============================== */
.simplebox-title {
    color: #fff;
    border-bottom: 2px solid #4CAF50;
}

.simplebox {
    border: 1px solid #4CAF50;
    background: #4CAF50;
}

/* ===============================
   PLUGIN JORNALVIEW
   =============================== */
.jornalview-block {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1a002b, #000 80%),
                linear-gradient(135deg, rgba(255,0,150,0.2), rgba(0,200,255,0.2));
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 6px 0 #2E0854,
                0 12px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jornalview-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #4A148C,
                0 16px 26px rgba(0,0,0,0.6);
}

.jornalview-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, #ffd, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #aaf, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation: stars-jornal 30s linear infinite;
    z-index: 0;
    opacity: 0.6;
}

.jornalview-block::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0,255,200,0.2), transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(255,0,200,0.15), transparent 60%);
    animation: aurora-jornal 15s ease-in-out infinite alternate;
    z-index: 0;
    opacity: 0.5;
}

.jornalview-block * {
    position: relative;
    z-index: 1;
}

@keyframes stars-jornal {
    from { background-position: 0 0; }
    to { background-position: -200px -200px; }
}

@keyframes aurora-jornal {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.2); }
}

/* ===============================
   WRAP BOX E PLUGINS
   =============================== */
.dokuwiki .wrap_box,
.dokuwiki div.wrap_box,
.dokuwiki div.wrap_danger,
.dokuwiki div.wrap_warning,
.dokuwiki div.wrap_caution,
.dokuwiki div.wrap_notice,
.dokuwiki div.wrap_safety,
.dokuwiki div.wrap_info,
.dokuwiki div.wrap_important,
.dokuwiki div.wrap_alert,
.dokuwiki div.wrap_tip,
.dokuwiki div.wrap_help,
.dokuwiki div.wrap_todo,
.dokuwiki div.wrap_download {
    position: relative;
    overflow: hidden;

    padding: 1em 1em .5em 1em;
    margin-bottom: 1.5em;
    border-radius: 18px;
    background-size: 300% 300%;

    background: radial-gradient(ellipse at bottom, #1a002b, #000 80%),
                linear-gradient(135deg, rgba(255,0,150,0.2), rgba(0,200,255,0.2));
    color: white;
    border: 1px solid #691f66;
    box-shadow: 0 6px 0 #2E0854,
                0 12px 20px rgba(0,0,0,0.5);
}

.dokuwiki .wrap_box::before,
.dokuwiki div.wrap_box::before,
.dokuwiki div.wrap_danger::before,
.dokuwiki div.wrap_warning::before,
.dokuwiki div.wrap_caution::before,
.dokuwiki div.wrap_notice::before,
.dokuwiki div.wrap_safety::before,
.dokuwiki div.wrap_info::before,
.dokuwiki div.wrap_important::before,
.dokuwiki div.wrap_alert::before,
.dokuwiki div.wrap_tip::before,
.dokuwiki div.wrap_help::before,
.dokuwiki div.wrap_todo::before,
.dokuwiki div.wrap_download::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, #ffd, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #aaf, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation: stars-warp 30s linear infinite;
    z-index: 0;
    opacity: 0.6;
}

.dokuwiki .wrap_box::after,
.dokuwiki div.wrap_box::after,
.dokuwiki div.wrap_danger::after,
.dokuwiki div.wrap_warning::after,
.dokuwiki div.wrap_caution::after,
.dokuwiki div.wrap_notice::after,
.dokuwiki div.wrap_safety::after,
.dokuwiki div.wrap_info::after,
.dokuwiki div.wrap_important::after,
.dokuwiki div.wrap_alert::after,
.dokuwiki div.wrap_tip::after,
.dokuwiki div.wrap_help::after,
.dokuwiki div.wrap_todo::after,
.dokuwiki div.wrap_download::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0,255,200,0.2), transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(255,0,200,0.15), transparent 60%);
    animation: aurora-warp 15s ease-in-out infinite alternate;
    z-index: 0;
    opacity: 0.5;
}

.dokuwiki .wrap_box * ,
.dokuwiki div.wrap_box * ,
.dokuwiki div.wrap_danger * ,
.dokuwiki div.wrap_warning * ,
.dokuwiki div.wrap_caution * ,
.dokuwiki div.wrap_notice * ,
.dokuwiki div.wrap_safety * ,
.dokuwiki div.wrap_info * ,
.dokuwiki div.wrap_important * ,
.dokuwiki div.wrap_alert * ,
.dokuwiki div.wrap_tip * ,
.dokuwiki div.wrap_help * ,
.dokuwiki div.wrap_todo * ,
.dokuwiki div.wrap_download * {
    position: relative;
    z-index: 1;
}

@keyframes stars-warp {
    from { background-position: 0 0; }
    to { background-position: -200px -200px; }
}

@keyframes aurora-warp {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.2); }
}

/* ===============================
   CONTENT CARD
   =============================== */

.content-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 300px;
    display: flow-root;
    margin: 2em 48px 2em 2em;
    background: rgba(20, 0, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;

    
    z-index: 1; 
    

    isolation: isolate; 
    

    transform: translateZ(0); 
}

.content-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, #ffd, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #aaf, transparent),
        radial-gradient(1px 1px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation: stars-card 30s linear infinite;
    

    z-index: -1; 
    opacity: 0.6;
    pointer-events: none; 
    

    will-change: background-position;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.content-card::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0,255,200,0.2), transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(255,0,200,0.15), transparent 60%);
    animation: aurora-card 15s ease-in-out infinite alternate;
    

    z-index: -1; 
    opacity: 0.5;
    pointer-events: none;
    
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.content-actions {
    position: relative; 
    z-index: 10;
}

@keyframes stars-card {
    from { background-position: 0 0; }
    to { background-position: -200px -200px; }
}

@keyframes aurora-card {
    0% { transform: translateZ(0) rotate(0deg) scale(1); }
    100% { transform: translateZ(0) rotate(15deg) scale(1.2); }
}

.page-content a,.page-content a:link,.page-content a:active,.page-content a:visited,.page-content a:hover {
    color: #c062ff !important;
    text-decoration: none;
}

.mdl-textfield__input {
    border-bottom: 1px solid rgb(255 0 0);
}

.content-actions__container {
    position: fixed;
}

.mdl-layout__header .mdl-layout__drawer-button {
    background: radial-gradient(ellipse at bottom, #150025, #000 80%),
                linear-gradient(135deg, rgba(255,0,200,0.25), rgba(0,200,255,0.2));
    border-radius: 100px;
    margin-inline: 5px;
}

