/* FatCat Gesund - Custom Styles */

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #3a89ff, #9580ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Pulse slow animation */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Gradient border */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #3a89ff, #9580ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Prose overrides for dark theme */
.prose-dark {
    color: #d1d5db;
}

.prose-dark h1,
.prose-dark h2,
.prose-dark h3,
.prose-dark h4 {
    color: #f3f4f6;
}

.prose-dark a {
    color: #3a89ff;
    text-decoration: underline;
    text-decoration-color: rgba(58, 137, 255, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.prose-dark a:hover {
    color: #9580ff;
    text-decoration-color: rgba(149, 128, 255, 0.5);
}

.prose-dark strong {
    color: #f9fafb;
}

.prose-dark blockquote {
    border-left-color: #3a89ff;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose-dark code {
    color: #9580ff;
    background: rgba(149, 128, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose-dark pre {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

.prose-dark ul,
.prose-dark ol {
    color: #d1d5db;
}

.prose-dark li::marker {
    color: #3a89ff;
}

.prose-dark hr {
    border-color: rgba(255, 255, 255, 0.08);
}

.prose-dark table {
    width: 100%;
    border-collapse: collapse;
}

.prose-dark th {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prose-dark td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prose-dark tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.prose-dark img {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Form styles */
.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f3f4f6;
    width: 100%;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3a89ff;
    box-shadow: 0 0 0 3px rgba(58, 137, 255, 0.1);
}

.form-input::placeholder {
    color: #6b7280;
}

/* Button gradient */
.btn-gradient {
    background: linear-gradient(135deg, #3a89ff, #9580ff);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(58, 137, 255, 0.3);
}

/* Tag badge */
.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(58, 137, 255, 0.1);
    color: #3a89ff;
    border: 1px solid rgba(58, 137, 255, 0.2);
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: rgba(58, 137, 255, 0.2);
    border-color: rgba(58, 137, 255, 0.4);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
    background: rgba(58, 137, 255, 0.3);
    color: white;
}

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