/*
Theme Name: Nanime Official Portal
Theme URI: https://nanime.site/
Author: Nanime Team
Description: Tema Portal Link Super Cepat, SEO Friendly, & Skor 100 PageSpeed.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: nanime
*/

:root {
  --bg: #0b0e14;
  --card: #161b22;
  --primary: #3b82f6;
  --text: #f0f6fc;
  --text-dim: #8b949e;
  --tg: #24A1DE;
  --fb: #1877F2;
  --yt: #FF0000;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body { 
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
  background-color: var(--bg); 
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  line-height: 1.4;
}

.wrapper { width: 100%; max-width: 400px; padding: 24px; text-align: center; }

.avatar { 
  width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--primary); 
  background: var(--card); object-fit: cover; margin-bottom: 16px;
}

h1 { font-size: 20px; font-weight: 800; margin-bottom: 24px; text-transform: uppercase; }

.nav-links { display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  padding: 14px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--card); border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.15s ease;
}

.btn:active { transform: scale(0.97); }
.btn-main { background: var(--primary); border: none; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.btn-tg { border-left: 4px solid var(--tg); }
.btn-fb { border-left: 4px solid var(--fb); }
.btn-yt { border-left: 4px solid var(--yt); }

.icon { width: 18px; height: 18px; margin-right: 12px; fill: currentColor; }
.footer { margin-top: 32px; font-size: 12px; color: var(--text-dim); }
.footer strong { color: var(--primary); }

.avatar-wrapper {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.avatar-wrapper img, 
.avatar-wrapper .custom-logo { 
    width: 96px !important; 
    height: 96px !important; 
    border-radius: 50%; 
    border: 3px solid var(--primary); 
    background: var(--card); 
    object-fit: cover;
    display: block;
}

.ads-container {
    margin: 20px auto;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ads-container::before {
    content: "ADVERTISEMENT";
    position: absolute;
    top: 2px;
    left: 5px;
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.ads-container ins, 
.ads-container img, 
.ads-container iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

@media (max-width: 768px) {
    .ads-container {
        max-width: 320px;
        min-height: 50px;
    }
}

.floating-ads {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 728px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    display: none;
    border-top: 2px solid var(--primary);
}

.close-ads {
    position: absolute;
    top: -25px;
    right: 0;
    background: #ff0000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    text-transform: uppercase;
}

.floating-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

@media (max-width: 768px) {
    .floating-ads { max-width: 320px; }
    .floating-content { min-height: 50px; }
}