/*
 * itzCrih - Main Design System & Stylesheet
 * Refactored & Modernized for itzcrih.it
 */

:root {
    --bg-base: #090b0e;
    --bg-surface: #0e1218;
    --bg-card: linear-gradient(135deg, rgba(18, 23, 32, 0.85) 0%, rgba(13, 17, 24, 0.95) 100%);
    --bg-card-hover: linear-gradient(135deg, rgba(24, 31, 44, 0.9) 0%, rgba(16, 21, 30, 0.98) 100%);
    --bg-glass: rgba(14, 18, 25, 0.65);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: #222a35;
    --border-gold: rgba(230, 180, 34, 0.35);
    --border-gold-hover: #e6b422;
    
    --accent-gold: #e6b422;
    --accent-gold-light: #f5c542;
    --accent-gold-bright: #ffdf8c;
    --accent-gold-glow: rgba(230, 180, 34, 0.25);
    
    --accent-discord: #5865F2;
    --accent-discord-hover: #4752c4;
    
    --status-online: #23a55a;
    --status-idle: #f0b232;
    --status-dnd: #f23f43;
    --status-offline: #80848e;

    --text-primary: #eef2ff;
    --text-secondary: #cbd5e6;
    --text-muted: #8292a8;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-base);
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Lights */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 18% 18%, rgba(230, 180, 34, 0.07) 0%, transparent 55%),
        radial-gradient(circle at 82% 75%, rgba(88, 101, 242, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(10, 12, 16, 0.95) 0%, var(--bg-base) 100%);
    z-index: -2;
    pointer-events: none;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.container.is-transitioning {
    opacity: 0 !important;
    transform: translateY(6px);
    pointer-events: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(14, 18, 25, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: 1.2rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(10, 13, 18, 0.85);
    border-color: rgba(230, 180, 34, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.logo:hover {
    transform: scale(1.03);
}

.logo .brand-logo-img,
.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.45));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
    flex-shrink: 0;
}

.logo:hover .brand-logo-img,
.logo:hover img {
    transform: rotate(-6deg) scale(1.12);
    filter: drop-shadow(0 0 14px rgba(74, 222, 128, 0.85));
}

.logo i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.header-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
}

.header-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    padding: 4px 2px;
}

.header-links a:hover {
    color: var(--accent-gold-light);
}

.header-links a.btn-discord-nav {
    background: rgba(88, 101, 242, 0.15);
    color: #c7d0ff;
    border: 1px solid rgba(88, 101, 242, 0.35);
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.header-links a.btn-discord-nav:hover {
    background: var(--accent-discord);
    color: #fff;
    border-color: var(--accent-discord);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 3.5rem;
    border: 1px solid rgba(230, 180, 34, 0.2);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.6);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(1.2);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.6rem 2.4rem;
    background: linear-gradient(135deg, rgba(14, 18, 25, 0.88) 0%, rgba(10, 13, 18, 0.78) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-right {
    flex-shrink: 0;
}

/* Avatar & Discord Indicator */
.avatar-section {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 25px rgba(230, 180, 34, 0.3), 0 15px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(230, 180, 34, 0.5), 0 20px 35px rgba(0, 0, 0, 0.7);
}

.discord-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #0e1218;
    background-color: var(--status-offline);
    transition: all 0.25s ease;
    cursor: pointer;
}

.discord-badge.online {
    background-color: var(--status-online);
    box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.6);
    animation: pulse-online 2s infinite;
}

.discord-badge.idle {
    background-color: var(--status-idle);
}

.discord-badge.dnd {
    background-color: var(--status-dnd);
}

.discord-badge.offline {
    background-color: var(--status-offline);
}

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(35, 165, 90, 0); }
    100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); }
}

/* Info & Bio */
.info h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.badge-country-inline {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.italy-flag-icon {
    width: 24px;
    height: 16px;
    display: inline-block;
    background: linear-gradient(90deg, #008c45 33.3%, #f4f5f0 33.3%, #f4f5f0 66.6%, #cd212a 66.6%);
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    vertical-align: middle;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0.8rem 0 1.2rem;
    line-height: 1.6;
}

.bio strong {
    color: var(--accent-gold-light);
    font-weight: 600;
}

/* Status Badge iframe wrapper */
.status-badge {
    margin: 0.8rem 0 1rem;
}

.status-badge iframe {
    border: none;
    border-radius: 10px;
    display: block;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
}

/* Spotify Live Activity Widget */
.spotify-activity {
    margin: 0.8rem 0 1.2rem;
    max-width: 420px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.spotify-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(16, 26, 20, 0.9) 0%, rgba(10, 16, 12, 0.95) 100%);
    border: 1px solid rgba(30, 215, 96, 0.35);
    border-radius: 14px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.7), 0 0 15px -4px rgba(30, 215, 96, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.spotify-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1ed760, transparent);
    opacity: 0.9;
}

.spotify-card-inner:hover {
    border-color: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -6px rgba(0, 0, 0, 0.8), 0 0 25px rgba(30, 215, 96, 0.25);
    background: linear-gradient(135deg, rgba(20, 34, 25, 0.92) 0%, rgba(13, 22, 16, 0.98) 100%);
}

.spotify-art-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.spotify-album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotify-art-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #121212;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.spotify-art-badge i {
    color: #1ed760;
    font-size: 0.75rem;
}

.spotify-details {
    flex-grow: 1;
    min-width: 0;
}

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

.spotify-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1ed760;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.spotify-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1ed760;
    animation: spotify-pulse 1.5s infinite;
}

@keyframes spotify-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.spotify-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.spotify-equalizer .bar {
    width: 2px;
    background-color: #1ed760;
    border-radius: 2px;
    animation: bounce-eq 0.9s ease-in-out infinite alternate;
}

.spotify-equalizer .bar-1 { height: 60%; animation-delay: 0.1s; }
.spotify-equalizer .bar-2 { height: 100%; animation-delay: 0.3s; }
.spotify-equalizer .bar-3 { height: 45%; animation-delay: 0.15s; }
.spotify-equalizer .bar-4 { height: 85%; animation-delay: 0.4s; }

@keyframes bounce-eq {
    0% { height: 20%; }
    100% { height: 100%; }
}

.spotify-song {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.spotify-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 5px;
}

.spotify-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.spotify-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1ed760, #22c55e);
    width: 0%;
    border-radius: 3px;
    transition: width 0.8s linear;
}

/* Social Buttons Grid */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 0.8rem;
}

@media (min-width: 961px) {
    .links-grid {
        flex-wrap: nowrap;
    }
}

.btn-icon {
    background: rgba(22, 28, 38, 0.85);
    padding: 5.5px 9.5px;
    border-radius: 50px;
    font-size: 0.77rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-card);
    white-space: nowrap;
}

.btn-icon:hover {
    background: rgba(35, 45, 60, 0.9);
    border-color: var(--accent-gold);
    color: var(--accent-gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-icon i {
    color: var(--accent-gold);
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.btn-icon:hover i {
    transform: scale(1.1);
}

/* Featured Video Container */
.featured-video-link {
    text-decoration: none;
    display: block;
}

.featured-video-container {
    position: relative;
    width: 360px;
    max-width: 100%;
    cursor: pointer;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(230, 180, 34, 0.4);
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.75), 0 0 20px rgba(230, 180, 34, 0.15);
    transition: var(--transition-smooth);
}

.featured-video-hero {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.featured-video-container:hover {
    transform: scale(1.025);
    border-color: var(--accent-gold);
    box-shadow: 0 28px 55px -10px rgba(230, 180, 34, 0.3), 0 15px 35px rgba(0, 0, 0, 0.8);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 14, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.featured-video-container:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease;
}

.featured-video-container:hover .video-overlay i {
    transform: scale(1.1);
}

.video-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 3.5rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title i {
    color: var(--accent-gold);
    -webkit-background-clip: unset;
    background: none;
    font-size: 1.4rem;
}

.projects-grid,
.playlists-grid,
.stats-grid,
.edits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--border-gold-hover);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px -5px var(--accent-gold-glow);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    flex-wrap: wrap;
}

.card h3 i {
    color: var(--accent-gold);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.inline-badge {
    background: rgba(230, 180, 34, 0.15);
    border: 1px solid rgba(230, 180, 34, 0.35);
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-gold-light);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.inline-badge.music-badge {
    background: rgba(30, 215, 96, 0.12);
    border: 1px solid rgba(30, 215, 96, 0.35);
    color: #1ed760;
    text-transform: none;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.inline-badge.music-badge i {
    color: #1ed760;
    font-size: 0.68rem;
}

.card-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.card-link:hover {
    color: var(--accent-gold-light);
}

.card:hover .card-link {
    gap: 10px;
}

/* ==========================================================================
   Shop Showcase Section
   ========================================================================== */
.shop-showcase {
    background: radial-gradient(circle at 10% 20%, rgba(230, 180, 34, 0.12) 0%, transparent 60%),
                var(--bg-card);
    border-radius: 2rem;
    border: 1px solid rgba(230, 180, 34, 0.35);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 0 35px -5px rgba(230, 180, 34, 0.15);
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

.shop-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.shop-info {
    flex: 1.2;
    min-width: 320px;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 180, 34, 0.15);
    border: 1px solid rgba(230, 180, 34, 0.4);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.shop-badge i {
    color: var(--accent-gold);
}

.shop-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

.shop-info h2 .gold-gradient {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        var(--accent-gold-light) 50%,
        var(--accent-gold) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    white-space: nowrap;
}

.shop-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.shop-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.shop-perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #e2e8ff;
    background: rgba(14, 18, 25, 0.65);
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-perk-item i {
    color: var(--accent-gold);
    font-size: 0.95rem;
}

.shop-cta-row {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.btn-shop-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e6b422 0%, #f5b042 100%);
    color: #090b0e;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(230, 180, 34, 0.35);
    border: none;
}

.btn-shop-cta:hover {
    background: linear-gradient(135deg, #f5b042 0%, #e6b422 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(230, 180, 34, 0.5);
    color: #000;
}

.shop-subnote {
    font-size: 0.84rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shop-media {
    flex: 0.9;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.shop-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(230, 180, 34, 0.4);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(230, 180, 34, 0.2);
    background: #000;
    transition: var(--transition-smooth);
}

.shop-video-wrapper:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 25px 50px -10px rgba(230, 180, 34, 0.3), 0 0 40px rgba(230, 180, 34, 0.25);
    transform: scale(1.02);
}

.shop-video-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    aspect-ratio: 1 / 1;
}

/* Edit Cards (After Effects) */
.edit-card {
    background: var(--bg-card);
    border-radius: 1.3rem;
    padding: 1.2rem;
    border: 1px solid var(--border-card);
    transition: var(--transition-smooth);
}

.edit-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.6), 0 0 15px -4px var(--accent-gold-glow);
}

.edit-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.edit-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.edit-thumb i {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.edit-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.more-edits {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0 3rem;
}

/* Stat Numbers */
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0.4rem 0;
}

/* Speedtest Card */
.speed-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-card);
    margin: 1.5rem 0 3rem;
    transition: var(--transition-smooth);
}

.speed-card:hover {
    border-color: var(--border-gold-hover);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.speedtest-img {
    max-width: 250px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    display: block;
}

.speedtest-img:hover {
    border-color: var(--accent-gold);
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Unified Footer
   ========================================================================== */
.footer {
    margin-top: 5rem;
    padding: 3.5rem 2rem 1.8rem;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 2rem 2rem 1.5rem 1.5rem;
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(230, 180, 34, 0.25);
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.footer-brand .logo .brand-logo-img,
.footer-brand .logo img {
    width: 28px;
    height: 28px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3.5rem;
}

.footer-links-column h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links-column a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-bottom: 0.6rem;
}

.footer-links-column a i {
    width: 1.2rem;
    font-size: 0.85rem;
    color: var(--accent-gold);
    transition: transform 0.2s ease;
}

.footer-links-column a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-links-column a:hover i {
    transform: scale(1.15);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom p {
    margin: 0;
}

.footer-status-wrapper {
    display: inline-flex;
    align-items: center;
}

.footer-status-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-status-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.footer-status-wrapper iframe {
    border: none;
    border-radius: 8px;
    display: block;
    background: transparent;
    height: 30px;
    width: 220px;
}

.italy-flag-footer {
    display: inline-block;
    margin-left: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-left, .hero-right {
        width: 100%;
    }

    .info h1 {
        justify-content: center;
    }

    .bio {
        margin-left: auto;
        margin-right: auto;
    }

    .status-badge iframe {
        margin: 0 auto;
    }

    .links-grid {
        justify-content: center;
    }

    .featured-video-container {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.8rem;
    }

    .footer-status-wrapper iframe {
        margin: 0 auto;
    }

    .shop-showcase {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .shop-info h2 {
        font-size: 1.8rem;
    }

    .shop-perks {
        justify-content: center;
    }

    .shop-cta-row {
        justify-content: center;
    }

    .shop-video-wrapper {
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 0.8rem;
    }

    .header-links {
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .section-title {
        font-size: 1.4rem;
        justify-content: center;
        border-left: none;
        border-bottom: 2px solid var(--accent-gold);
        padding-bottom: 8px;
        padding-left: 0;
    }

    .speed-card {
        flex-direction: column;
        text-align: center;
    }

    .speedtest-img {
        margin: 0 auto;
    }

    .footer {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        margin: 0 auto;
    }

    .footer-links {
        justify-content: center;
        gap: 2rem;
    }

    .footer-links-column a {
        justify-content: center;
    }
}

/* ==========================================================================
   FLOATING AUDIO PLAYER WIDGET (STILL LOVE YOU)
   ========================================================================== */
.music-player-widget {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    display: flex;
    align-items: center;
    background: rgba(14, 18, 26, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 8px 14px 8px 8px;
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(74, 222, 128, 0.15);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    max-width: 390px;
    user-select: none;
}

.music-player-widget:hover {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.8), 0 0 25px rgba(74, 222, 128, 0.22);
}

/* Playback tap hint badge */
.player-tap-hint {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 8px;
    background: rgba(14, 18, 26, 0.96);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #4ade80;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(74, 222, 128, 0.3);
    pointer-events: auto;
    cursor: pointer;
    animation: hintPulse 2s ease-in-out infinite;
    display: none;
    z-index: 10000;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-tap-hint:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: #4ade80;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 22px rgba(74, 222, 128, 0.45);
}

@keyframes hintPulse {
    0%, 100% { transform: translateY(0); opacity: 0.94; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Album Art Disc */
.player-art-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: #000;
}

.player-art-btn:hover {
    border-color: #4ade80;
    transform: scale(1.05);
}

.player-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vinyl rotation animation when playing */
.music-player-widget.is-playing .player-art-img {
    animation: vinylSpin 8s linear infinite;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-art-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-art-btn:hover .player-art-overlay {
    opacity: 1;
}

/* Meta Info */
.player-track-meta {
    display: flex;
    flex-direction: column;
    margin: 0 12px 0 10px;
    min-width: 0;
    max-width: 140px;
}

.player-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-track-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.player-track-artist {
    font-size: 0.72rem;
    color: var(--accent-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    margin-top: 2px;
}

/* Mini Sound Visualizer Wave */
.player-equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
    margin-left: 2px;
}

.player-equalizer .eq-bar {
    width: 2px;
    background: #4ade80;
    border-radius: 2px;
    height: 3px;
    transition: height 0.2s ease;
}

.music-player-widget.is-playing .player-equalizer .eq-bar:nth-child(1) {
    animation: eqBounce 0.7s ease-in-out infinite alternate;
}
.music-player-widget.is-playing .player-equalizer .eq-bar:nth-child(2) {
    animation: eqBounce 1.1s ease-in-out infinite alternate 0.2s;
}
.music-player-widget.is-playing .player-equalizer .eq-bar:nth-child(3) {
    animation: eqBounce 0.8s ease-in-out infinite alternate 0.4s;
}

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 11px; }
}

/* Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

.player-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.08);
}

.player-btn.play-btn {
    width: 32px;
    height: 32px;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.player-btn.play-btn:hover {
    background: rgba(74, 222, 128, 0.3);
    color: #fff;
    transform: scale(1.12);
}

/* Volume Slider Wrapper */
.player-vol-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
}

.player-vol-wrapper .vol-btn {
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 4px;
}

.player-vol-wrapper .vol-btn:hover {
    color: var(--text-primary);
}

.music-player-widget.is-muted-state .vol-btn i {
    color: #f59e0b;
    animation: mutePulse 1.8s ease-in-out infinite;
}

.music-player-widget.is-muted-state .player-equalizer .eq-bar {
    opacity: 0.35;
    animation-play-state: paused !important;
    background: #f59e0b;
}

@keyframes mutePulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.22); color: #4ade80; }
}

.player-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 54px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
    transition: transform 0.15s ease;
}

.player-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.player-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #4ade80;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

/* Compact / Minimized State */
.music-player-widget.is-minimized {
    padding: 5px;
    border-radius: 50%;
}
.music-player-widget.is-minimized .player-track-meta,
.music-player-widget.is-minimized .player-controls,
.music-player-widget.is-minimized .player-vol-wrapper {
    display: none;
}

.player-toggle-size-btn {
    font-size: 0.65rem;
    padding: 4px;
    opacity: 0.55;
    margin-left: 2px;
}
.player-toggle-size-btn:hover {
    opacity: 1;
}

/* Responsive Audio Player */
@media (max-width: 600px) {
    .music-player-widget {
        bottom: 14px;
        right: 14px;
        padding: 6px 10px 6px 6px;
        max-width: 320px;
    }
    .player-vol-wrapper {
        display: none;
    }
    .player-track-meta {
        max-width: 110px;
        margin: 0 8px 0 6px;
    }
    .player-track-title {
        font-size: 0.75rem;
    }
}
