/* Modern Typography - Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* π Authentication Button - Bottom Left */
.pi-auth-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: auto;
    height: auto;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
    font-weight: 400;
    user-select: none;
    padding: 0.5rem;
}

.pi-auth-button:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.pi-auth-button:active {
    transform: translateY(0) scale(0.95);
}

/* Mobile responsiveness for π button */
@media only screen and (max-width: 768px) {
    .pi-auth-button {
        bottom: 1rem;
        left: 1rem;
        font-size: 1.6rem;
    }
}

/* Override theme fonts with modern Inter */
body, .content, .content p, .content li, .content div {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Modern headings */
h1, h2, h3, h4, h5, h6,
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Glassmorphism content backgrounds */
.content {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.4rem;
    margin: 1.6rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Content article styling */
.content article {
    background: transparent !important;
    padding: 1.6rem;
    border-radius: 12px;
}

/* Modern card-like sections */
.centered .about,
.centered .error,
.list {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.4rem;
    margin: 1.6rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Improved text contrast on transparent backgrounds */
.content p, .content li, .content div {
    color: #f0f0f0 !important;
    font-weight: 400;
}

/* Better heading contrast */
.content h1, .content h2, .content h3 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Modern link styling */
.content a {
    color: #64b5f6 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.content a:hover {
    color: #90caf9 !important;
    text-decoration: underline;
}

/* Navigation enhancements */
.navigation .navigation-list .navigation-item .navigation-link {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

/* Ensure mobile menu elements are visible */
.navigation #menu-toggle {
    display: none;
}

.navigation .menu-button {
    display: none;
    cursor: pointer;
}

/* Desktop navigation - show list, hide button */
@media only screen and (min-width: 769px) {
    .navigation .navigation-list {
        display: flex !important;
    }
    
    .navigation .menu-button {
        display: none !important;
    }
}

/* Modern button/social link styling - Fixed sizing */
.centered .about ul li a {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    min-height: 3.2rem;
    transition: all 0.3s ease;
}

/* Icon sizing within the containers */
.centered .about ul li a i {
    font-size: 2.4rem !important;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.centered .about ul li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* List items modern styling */
.list ul li {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    transition: all 0.2s ease;
}

.list ul li:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(4px);
}

/* Code blocks modern styling */
pre, code {
    font-family: 'JetBrains Mono', 'Source Code Pro', Consolas, monospace !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Mobile responsiveness improvements */
@media only screen and (max-width: 768px) {
    .content {
        padding: 1.6rem;
        margin: 0.8rem 0;
    }
    
    .centered .about,
    .centered .error {
        padding: 1.6rem;
        margin: 0.8rem 0;
    }
    
    /* Fix mobile navigation menu - Android compatible */
    .navigation {
        display: block !important;
        position: relative;
    }
    
    .navigation .container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navigation .navigation-list {
        display: none;
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        background: rgba(33, 33, 33, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 8px;
        padding: 1rem 0;
        z-index: 9999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navigation #menu-toggle:checked ~ .navigation-list {
        display: block !important;
    }
    
    /* Enhanced hamburger button for better Android touch */
    .navigation .menu-button {
        display: block !important;
        background: rgba(255, 255, 255, 0.08);
        border: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        padding: 1rem;
        cursor: pointer;
        position: relative;
        z-index: 10000;
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }
    
    .navigation .menu-button:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.95);
    }
    
    .navigation .menu-button i {
        color: #ffffff;
        font-size: 1.8rem;
        pointer-events: none;
    }
    
    /* Ensure checkbox is properly positioned for Android */
    .navigation #menu-toggle {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        opacity: 0;
        cursor: pointer;
        z-index: 10001;
    }
    
    /* Mobile social icons - make them more mobile friendly */
    .centered .about ul {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .centered .about ul li {
        margin: 0.5rem;
    }
    
    .centered .about ul li a {
        padding: 1rem 1.2rem !important;
        min-width: 2.8rem !important;
        min-height: 2.8rem !important;
        font-size: 1.4rem;
    }
    
    .centered .about ul li a i {
        font-size: 2rem !important;
        width: 2rem !important;
        height: 2rem !important;
    }
    
    /* Make sure navigation text is visible and touchable */
    .navigation .navigation-list .navigation-item .navigation-link {
        color: #ffffff !important;
        padding: 1.2rem 2rem;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 48px;
        display: flex;
        align-items: center;
        text-decoration: none;
        font-weight: 500;
        font-size: 1.6rem;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
        transition: all 0.2s ease;
    }
    
    .navigation .navigation-list .navigation-item .navigation-link:hover,
    .navigation .navigation-list .navigation-item .navigation-link:active {
        background: rgba(255, 255, 255, 0.1);
        color: #64b5f6 !important;
    }
    
    .navigation .navigation-list .navigation-item:last-child .navigation-link {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
    
    .navigation .navigation-list .navigation-item:first-child .navigation-link {
        border-radius: 8px 8px 0 0;
    }
}

/* Smooth animations */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Body background for better contrast */
body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    min-height: 100vh;
} 