/* Premium Grey Scale Styles */
:root {
    --bg-color: #0a0a0a;
    --text-color: #e5e5e5;
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

::selection {
    background: rgba(255, 255, 255, 0.99);
    color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Animation for stats increment */
@keyframes pulse-white {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #fff; }
    100% { transform: scale(1); }
}

.stat-update {
    animation: pulse-white 0.3s ease-in-out;
}

/* Glassmorphism for cards */
.stats-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Liquid Glass Popup Styles */
.glass-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.glass-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-container {
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-overlay.active .glass-container {
    transform: scale(1);
}

/* macOS Explorer Style Titlebar */
.mac-titlebar {
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
}

.mac-buttons {
    display: flex;
    gap: 8px;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-close { background: #ff5f56; cursor: pointer; }
.mac-min { background: #ffbd2e; }
.mac-max { background: #27c93f; }

.mac-title {
    flex-grow: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 40px; /* Offset buttons for center alignment */
}

.glass-content {
    padding: 32px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.glass-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.glass-content p {
    margin-bottom: 16px;
}

.glass-content ul {
    list-style-type: none;
    margin-bottom: 16px;
}

.glass-content li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.glass-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
}
