:root {
    --neon-blue: #00f3ff;
    --neon-purple: #9d00ff;
    --dark-bg: #0a0a0a;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark-bg);
    color: #fff;
}

.logo-font {
    font-family: 'Syncopate', sans-serif;
}

.cyber-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-blue) 15%, 
        var(--neon-purple) 85%, 
        transparent 100%
    );
    opacity: 0.5;
    box-shadow: 0 0 10px var(--neon-blue);
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.search-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.logo-image {
    height: 40px;
    width: auto;
}

/* Stili per le notifiche */
.notification-button {
    position: relative;
    backdrop-filter: blur(5px);
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--neon-purple);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neon-purple);
}

.notification-button.has-notifications .notification-dot {
    opacity: 1;
    transform: scale(1);
}

/* Popup Notifiche */
.notification-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--neon-blue);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
}

.notification-popup.show {
    display: block;
    animation: popupFadeIn 0.3s ease-out;
}

.notification-popup h3 {
    color: var(--neon-blue);
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification-popup p {
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.notification-popup .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.notification-popup button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid var(--neon-blue);
}

.notification-popup .allow {
    color: var(--neon-blue);
}

.notification-popup .allow:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 15px var(--neon-blue);
}

.notification-popup .deny {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.notification-popup .deny:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Toast Notifiche */
.notification-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--neon-blue);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.3s ease-out;
}

.notification-toast.error {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.2);
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stili per il popup di disattivazione */
.deactivate-popup {
    max-width: 500px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.2);
}

.deactivate-popup .popup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.deactivate-popup h3 {
    color: var(--neon-purple);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.deactivate-popup .warning-text {
    color: #ff4444;
    font-size: 0.9rem;
    opacity: 0.8;
}

.latest-articles-section {
    margin: 1.5rem 0;
}

.latest-articles-section h4 {
    color: var(--neon-blue);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.latest-articles {
    display: grid;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.latest-articles::-webkit-scrollbar {
    width: 4px;
}

.latest-articles::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.latest-articles::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 2px;
}

.article-preview {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(157, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.article-preview:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-purple);
    transform: translateX(5px);
}

.article-image {
    position: relative;
    width: 100px;
    height: 70px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(157, 0, 255, 0.2),
        rgba(0, 243, 255, 0.2)
    );
}

.article-content {
    flex: 1;
}

.article-content h4 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.article-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    font-size: 0.75rem;
    color: var(--neon-blue);
}

.deactivate-popup .buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.deactivate-popup .cancel-deactivate {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.deactivate-popup .cancel-deactivate:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 15px var(--neon-blue);
}

.deactivate-popup .confirm-deactivate {
    color: var(--neon-purple);
    border-color: var(--neon-purple);
}

.deactivate-popup .confirm-deactivate:hover {
    background: var(--neon-purple);
    color: #000;
    box-shadow: 0 0 15px var(--neon-purple);
} 