/* Shared Navigation Styles */
/* This file contains reusable navigation and common component styles */

/* Legacy nav-link class for backward compatibility */
.nav-link {
    color: #FFD700; /* Yellow for nav links */
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.nav-link:hover {
    color: #FF8C00; /* Orange on hover */
}

/* Enhanced Navigation Styling */
.navigation-container {
    background: linear-gradient(to right, rgb(107, 33, 168), rgb(79, 70, 229));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

/* Navigation layout improvements */
nav {
    position: relative;
    z-index: 100;
}

nav .site-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.875rem; /* text-3xl */
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fbbf24; /* text-yellow-400 */
    text-shadow: 3px 3px 0px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    nav .site-title {
        margin-bottom: 0;
    }
}

/* Navigation button enhancements */
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* gap-3 */
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    nav ul {
        gap: 1rem; /* sm:gap-4 */
    }
}

nav .btn {
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
    min-width: 100px;
    width: 100px;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced button animations for navigation */
nav .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

nav .btn:hover::before {
    left: 100%;
}

/* Mobile-specific navigation improvements */
@media (max-width: 640px) {
    nav .btn {
        padding: 0.625rem 0.75rem; /* Increased for better touch targets */
        font-size: 0.875rem; /* Slightly larger text */
        min-height: 44px; /* Apple recommended minimum touch target */
        min-width: 80px;
        width: 80px;
    }
    
    nav ul {
        gap: 0.5rem !important;
    }
    
    nav .site-title {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
    }
}

/* Better touch targets for all buttons on mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Better spacing for mobile cards */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Improve mobile modal experience */
    .markdown-body {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

/* Header styles for all pages */
.page-header {
    background: linear-gradient(to right, rgb(107, 33, 168), rgb(79, 70, 229));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

/* Common button styles - Enhanced for retro aesthetics */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Enhanced retro button effects */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Primary button styling */
.btn-primary {
    background: linear-gradient(135deg, #c000c0, #8A2BE2);
    color: #ffffff;
    border: 2px solid #c000c0;
    box-shadow: 0 0 8px #c000c0, 0 4px 15px rgba(192, 0, 192, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a000a0, #6A1BA0);
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 0 12px #a000a0, 0 0 3px #ffffff, 0 6px 20px rgba(192, 0, 192, 0.4);
}

/* Secondary button styling */
.btn-secondary {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #0d0d2b;
    border: 2px solid #ffd700;
    box-shadow: 0 0 8px #ffd700, 0 4px 15px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e6c300, #ff8c00);
    color: #0d0d2b;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 0 12px #e6c300, 0 0 3px #0d0d2b, 0 6px 20px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Enhanced focus states for accessibility */
.btn:focus, .btn:active {
    outline: 2px solid #ff00ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.6);
}

.btn-primary:focus, .btn-primary:active {
    outline: 2px solid #00e0f0;
    box-shadow: 0 0 0 4px rgba(0, 224, 240, 0.6);
}

.btn-secondary:focus, .btn-secondary:active {
    outline: 2px solid #ffd700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.6);
}

/* Retro font classes - Consistent hierarchy */
.font-retro {
    font-family: 'Press Start 2P', cursive; /* Only for main logo/site title */
}

.font-retro-nav {
    font-family: 'VT323', monospace; /* Navigation and secondary headings */
}

.font-retro-content {
    font-family: 'VT323', monospace; /* Card titles and content headings */
}

.font-inter {
    font-family: 'Inter', sans-serif; /* Body text and descriptions */
}

/* Text shadow effects */
.text-shadow-retro {
    text-shadow: 3px 3px 0px rgba(0,0,0,0.8);
}

.text-shadow-retro-light {
    text-shadow: 2px 2px 0px rgba(0,0,0,0.75);
}

/* Card styles */
.card-border-gradient {
    border: 3px solid transparent;
    border-image: linear-gradient(to bottom right, #FF1493, #8A2BE2, #00FF00);
    border-image-slice: 1;
    background: #3A2B50;
    position: relative;
    z-index: 1;
}

.card-border-gradient::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -3px;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, #FF1493, #8A2BE2, #00FF00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Background patterns */
.liquid-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233A2B50' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-20 0v-4h-2v4H0v2h4v4h2v-4h4v-2h-4zm0 40v-4h-2v4H0v2h4v4h2v-4h4v-2h-4zm0-20v-4h-2v4H0v2h4v4h2v-4h4v-2h-4zM60 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM20 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0 60v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm20 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm20 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-20 20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-20 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm40 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-40 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    background-attachment: fixed;
}
