:root {
    --custom-purple: #8a2be2; /* Viola vibrante */
    --custom-purple-dark: #7b24cb;
    --custom-purple-light: #9d4edd;
    --gradient-start: #9d4edd;
    --gradient-end: #8a2be2;
}

body {
    background-color: #2c2a4a; /* Viola Gengar scuro */
}

.navbar-logo {
    height: 35px;
    border-radius: 50%; /* Rende il logo rotondo */
}

/* Stile Navbar */
.navbar.sticky-top {
    background: rgba(30, 30, 33, 0.65);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Stile moderno per titoli principali */
h1.main-title, .navbar-brand {
    font-weight: 700; /* Grassetto */
    letter-spacing: 1px;
    background: linear-gradient(145deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding-bottom: 5px; /* Spazio per il gradiente */
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.4); /* Leggera ombra viola */
}

.navbar-brand {
    font-size: 1.75rem; /* Rende il brand più grande */
}

h2, h3, .card-title {
    color: var(--custom-purple-light) !important;
}

/* Layout a griglia per i servizi */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Stile card di servizio (ispirato a glassmorphism) */
.service-card {
    background: rgba(44, 44, 52, 0.6);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.1rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: saturate(180%) blur(4px);
    -webkit-backdrop-filter: saturate(180%) blur(4px);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative; /* Necessario per posizionare l'indicatore */
}

/* Indicatore di stato */
.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #6c757d; /* Grigio di default */
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.status-indicator.online {
    background-color: #198754; /* Verde successo */
}
.status-indicator.offline {
    background-color: #dc3545; /* Rosso pericolo */
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(55, 55, 62, 0.8);
    color: var(--custom-purple-light);
}

/* Stile per i pulsanti standard con gradiente */
.btn-primary {
    background: linear-gradient(145deg, var(--gradient-start), var(--gradient-end));
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--custom-purple);
}

.nav-link:hover {
    color: var(--custom-purple-light);
}

.card-header {
    background-color: rgba(var(--bs-tertiary-bg-rgb), 0.5);
    color: var(--custom-purple-light);
    font-weight: bold;
}

/* Contenitore Spotify in stile card */
.spotify-container {
    background: rgba(44, 44, 52, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: saturate(180%) blur(4px);
    -webkit-backdrop-filter: saturate(180%) blur(4px);
    margin-top: 40px;
}

.spotify-container iframe {
    border-radius: 12px;
    width: 100%;
    height: 352px;
    border: none; /* Il bordo è già sul container */
}
