/* Additional Custom Styles */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #FF3366;
    color: #FFFFFF;
}

/* Remove default focus outline and add custom */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #FF3366;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #27272A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF3366;
}

/* Loading animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Grid border effect for tools */
.grid-border-effect {
    position: relative;
}

.grid-border-effect::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    background: #27272A;
}

.grid-border-effect::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #27272A;
}

/* Hover glow effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Code block styling */
pre {
    background-color: #0A0A0A;
    border: 1px solid #27272A;
    border-radius: 2px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background-color: #121212;
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    font-size: 0.875em;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Link styles */
a {
    text-decoration: none;
}

.prose a {
    color: #FF3366;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.prose a:hover {
    color: #E62E5C;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Table styles for blog posts */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.875rem;
}

th {
    background-color: #121212;
    border: 1px solid #27272A;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Cabinet Grotesk', sans-serif;
}

td {
    border: 1px solid #27272A;
    padding: 0.75rem;
}

tr:nth-child(even) {
    background-color: #0A0A0A;
}

tr:nth-child(odd) {
    background-color: #121212;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}