/* Modern Blog Styling with Tailwind-like utilities */

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Prose styling for blog content */
.prose {
    color: #e5e7eb;
    max-width: 65ch;
}

.prose strong {
    color: #f3f4f6;
    font-weight: 600;
}

.prose a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s;
}

.prose a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #f9fafb;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose h1 {
    font-size: 2.25em;
}

.prose h2 {
    font-size: 1.875em;
}

.prose h3 {
    font-size: 1.5em;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose code {
    color: #fbbf24;
    font-size: 0.875em;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25em 0.4em;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

.prose pre {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    padding: 1.5em;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: #e5e7eb;
}

/* Blog-specific utilities */
.prose-invert {
    --tw-prose-body: #d1d5db;
    --tw-prose-headings: #f9fafb;
    --tw-prose-links: #a78bfa;
    --tw-prose-bold: #f3f4f6;
    --tw-prose-code: #fbbf24;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

.prose-lg p {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Link animations */
a {
    transition: all 0.3s ease;
}

/* Button hover effects */
button:hover, .hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Gradient text utilities */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-purple-400 {
    --tw-gradient-from: #c084fc;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(192, 132, 252, 0));
}

.to-pink-400 {
    --tw-gradient-to: #f472b6;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Card hover effects */
.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Shadow effects */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-purple-500\/50:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

/* Focus styles for accessibility */
button:focus, a:focus {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* Improved text rendering */
body {
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    -webkit-font-feature-settings: "kern" 1;
    -moz-font-feature-settings: "kern" 1;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility classes for spacing */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Additional improvements for blog content */
.prose img {
    border-radius: 0.5rem;
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose blockquote {
    border-left: 4px solid #a78bfa;
    padding-left: 1em;
    font-style: italic;
    color: #d1d5db;
    margin: 1.5em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.prose th, .prose td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75em;
    text-align: left;
}

.prose th {
    background: rgba(139, 92, 246, 0.2);
    font-weight: 600;
}

/* Enhanced button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Improved card styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }

    .prose h1 {
        font-size: 1.875rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .prose {
        max-width: 100%;
        color: #000;
    }

    .glass, .card {
        background: white;
        border: 1px solid #ddd;
    }
}
