/* ==========================================================================
   RESET & VARIABILI COLORI - TROPICAL FRUTIGER AERO (WINDOWS 7 / AQUA BEACH)
   ========================================================================== */
:root {
    --bg-gradient: linear-gradient(160deg, #a0e0ff 0%, #46b3e6 40%, #2082bf 75%, #0d5289 100%);
    --container-bg: rgba(220, 243, 255, 0.55);
    --box-bg: rgba(255, 255, 255, 0.85);
    --box-border: rgba(255, 255, 255, 0.95);
    --text-color: #112d4e;
    --accent-color: #0088cc;
    --accent-hover: #005580;
    --border-glow: #8be0ff;
    --font-family: 'Fredoka', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-family);
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================================================
   BACKGROUND BUBBLES ANIMATION (ACCELERATA DA GPU)
   ========================================================================== */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -60px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2) 60%, rgba(135, 206, 250, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: inset -2px -2px 6px rgba(0, 85, 128, 0.3), 0 4px 10px rgba(255, 255, 255, 0.5);
    animation: floatUp 12s infinite ease-in-out;
    will-change: transform, opacity;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(-105vh) scale(1.1);
        opacity: 0;
    }
}

/* ==========================================================================
   CONTENITORE PRINCIPALE (AERO GLASS EFFECT)
   ========================================================================== */
.site-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    max-width: 980px;
    width: 100%;
    gap: 20px;
    background: var(--container-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid var(--box-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 
        inset 0 2px 2px rgba(255, 255, 255, 0.9),
        0 16px 40px rgba(0, 40, 80, 0.3);
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.profile-box, .nav-menu, .sidebar-widget, .box-content {
    background: var(--box-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--box-border);
    border-bottom: 2px solid rgba(0, 136, 204, 0.4);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 
        inset 0 1px 0 #ffffff,
        0 6px 16px rgba(0, 80, 140, 0.12);
}

.avatar-wrapper {
    position: relative;
    width: 130px;
    margin: 0 auto 10px auto;
}

.avatar {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar:hover {
    transform: scale(1.06) rotate(2deg);
}

.online-badge {
    position: absolute;
    bottom: 6px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #00e676;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e676;
}

.profile-box h2 {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.35rem;
    text-shadow: 0 1px 0 #fff;
}

.status {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 4px;
}

/* MENU DI NAVIGAZIONE GLOSSY */
.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu li:last-child {
    margin-bottom: 0;
}

.nav-menu a {
    display: block;
    padding: 10px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #e1f3ff 50%, #c4e6ff 51%, #dcf0ff 100%);
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid rgba(139, 224, 255, 0.8);
    border-radius: 10px;
    font-weight: 600;
    text-align: left;
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    background: linear-gradient(180deg, #6fd3ff 0%, #1898e0 50%, #0077be 51%, #24a1e8 100%);
    color: white;
    border-color: #005580;
    box-shadow: 0 0 14px rgba(0, 136, 204, 0.6), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateX(4px);
}

/* MINI AQUA MUSIC PLAYER */
.aqua-player {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(200,235,255,0.9) 100%);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.player-header h3 {
    font-size: 0.95rem;
    color: var(--accent-color);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff3366;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff3366;
    animation: blink 1.2s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.track-info {
    margin-bottom: 10px;
}

.track-title {
    font-weight: bold;
    font-size: 0.9rem;
}

.track-artist {
    font-size: 0.78rem;
    color: #555;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aqua-btn-small {
    padding: 6px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #b3e3ff 100%);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--accent-hover);
    font-weight: bold;
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.aqua-btn-small:hover {
    background: var(--accent-color);
    color: white;
}

/* EQUALIZER ANIMATION */
.equalizer {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 16px;
}

.equalizer span {
    width: 3px;
    background: var(--accent-color);
    height: 4px;
    border-radius: 2px;
}

.equalizer.playing span {
    animation: eqPulse 0.6s infinite alternate ease-in-out;
}

.equalizer.playing span:nth-child(1) { animation-delay: 0.1s; }
.equalizer.playing span:nth-child(2) { animation-delay: 0.3s; }
.equalizer.playing span:nth-child(3) { animation-delay: 0.2s; }
.equalizer.playing span:nth-child(4) { animation-delay: 0.4s; }

@keyframes eqPulse {
    0% { height: 4px; }
    100% { height: 16px; }
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-icon {
    font-size: 1.6rem;
}

.weather-text {
    font-size: 0.8rem;
}

/* ==========================================================================
   MAIN CONTENT & HEADER BANNER
   ========================================================================== */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* HEADER BANNER ANIMATO ED EFFETTO SHEEN */
.header-banner {
    position: relative;
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 50%, #003366 100%);
    color: white;
    padding: 26px 20px;
    border-radius: 18px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        inset 0 3px 4px rgba(255, 255, 255, 0.8),
        0 10px 24px rgba(0, 60, 120, 0.35);
    overflow: hidden;
}

/* SCIABOLA DI LUCE SUL BANNER */
.banner-gloss {
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: bannerShine 6s infinite ease-in-out;
}

@keyframes bannerShine {
    0% { left: -60%; }
    20% { left: 130%; }
    100% { left: 130%; }
}

.banner-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.banner-content h1 {
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.banner-content p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* ONDA DECORATIVA IN BASSO AL BANNER */
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: radial-gradient(circle at 10px -5px, transparent 12px, rgba(255,255,255,0.4) 13px);
    background-size: 20px 20px;
}

/* BOX CONTENT */
.box-content h2 {
    color: var(--accent-color);
    border-bottom: 2px solid rgba(139, 224, 255, 0.8);
    padding-bottom: 6px;
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-shadow: 0 1px 0 #fff;
}

.box-content p {
    line-height: 1.55;
    margin-bottom: 10px;
}

.alert-box {
    background: linear-gradient(180deg, #e6f7ff 0%, #cceeff 100%);
    border-left: 4px solid var(--accent-color);
    padding: 10px 14px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.88rem;
}

.feature-list {
    list-style: none;
    margin-top: 8px;
}

.feature-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 136, 204, 0.2);
}

.text-link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* BLOG ENTRIES */
.blog-entry {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(139, 224, 255, 0.6);
    margin-bottom: 10px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.entry-date {
    font-size: 0.75rem;
    color: #666;
    font-weight: bold;
}

.badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.blog-entry h3 {
    font-size: 1.05rem;
    color: var(--accent-hover);
    margin-bottom: 4px;
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.gallery-item {
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(139, 224, 255, 0.8);
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.25 ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.img-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item p {
    font-size: 0.78rem;
    margin-top: 5px;
    font-weight: bold;
}

/* ==========================================================================
   SEZIONE 88x31 WEB BUTTONS (STILE RETRO & NEOCITIES)
   ========================================================================== */
.buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

/* Pulsante Standard 88x31px */
.web-button {
    width: 88px;
    height: 31px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.web-button:hover {
    transform: scale(1.08);
    box-shadow: 
        0 0 10px rgba(0, 170, 255, 0.8),
        0 3px 6px rgba(0,0,0,0.3);
}

.btn-text-main {
    line-height: 1;
    letter-spacing: 0.5px;
}

.btn-text-sub {
    font-size: 7px;
    opacity: 0.85;
    margin-top: 1px;
}

/* Stili individuali dei bottoni */
.button-fedeweb {
    background: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%);
}

.button-aero {
    background: linear-gradient(180deg, #a1ffce 0%, #faffd1 100%);
    color: #005533;
}

.button-html5 {
    background: linear-gradient(180deg, #e44d26 0%, #f16529 100%);
}

.button-neocities {
    background: linear-gradient(180deg, #ff9900 0%, #cc6600 100%);
}

.button-liminal {
    background: linear-gradient(180deg, #4b6cb7 0%, #182848 100%);
}

.button-wii {
    background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 100%);
    color: #0099cc;
}

.button-code-box {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.6);
    padding: 8px 12px;
    border-radius: 8px;
}

.button-code-box input {
    flex-grow: 1;
    min-width: 200px;
    padding: 6px 10px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.78rem;
    background: #fff;
}

/* LINKS GRID */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.link-card {
    flex: 1;
    min-width: 130px;
    padding: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #e8f5ff 100%);
    border: 1px solid rgba(139, 224, 255, 0.8);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.link-card:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* UPDATE LOG */
.update-log p {
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.update-log span {
    font-weight: bold;
    color: var(--accent-color);
}

/* FOOTER */
.footer {
    text-align: center;
    font-size: 0.82rem;
    padding: 12px;
    margin-top: auto;
    color: #1a4260;
}

.footer-sub {
    font-size: 0.72rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* SCROLLBAR STILIZZATA FRUTIGER AERO */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #bce3f7;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3ea2e0 0%, #176cb0 100%);
    border-radius: 5px;
    border: 2px solid #bce3f7;
}

/* ==========================================================================
   RESPONSIVE (SMARTPHONE E TABLET)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .site-container {
        flex-direction: column;
        padding: 14px;
        gap: 14px;
    }
    
    .sidebar {
        width: 100%;
    }

    .header-banner h1 {
        font-size: 1.5rem;
    }
}