/* Animations */
@keyframes tilt {
0%, 100% {
transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}
25% {
transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
}
75% {
transform: perspective(1000px) rotateX(-1deg) rotateY(1deg);
}
}

.tilt-card {
animation: tilt 6s ease-in-out infinite;
}

.tilt-card:hover {
animation-play-state: paused;
}

@keyframes marquee {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-50%);
}
}

.marquee-content {
animation: marquee 30s linear infinite;
}

.marquee-content:hover {
animation-play-state: paused;
}

.marquee-container .marquee-content {
width: max-content;
}

/* Prose Styling for Markdown Content */
.prose {
color: #F4E4C1;
line-height: 1.7;
}

.prose h2 {
color: #D4AF37;
font-size: 1.875rem;
font-weight: 700;
margin-top: 2em;
margin-bottom: 1em;
line-height: 1.3;
letter-spacing: -0.025em;
}

.prose h3 {
color: #D4AF37;
font-size: 1.5rem;
font-weight: 600;
margin-top: 1.6em;
margin-bottom: 0.8em;
line-height: 1.4;
}

.prose h4 {
color: #F4E4C1;
font-size: 1.25rem;
font-weight: 600;
margin-top: 1.4em;
margin-bottom: 0.6em;
}

.prose p {
margin-top: 1.25em;
margin-bottom: 1.25em;
color: #F4E4C1;
opacity: 0.95;
}

.prose a {
color: #D4AF37;
text-decoration: underline;
text-decoration-color: rgba(212, 175, 55, 0.3);
text-underline-offset: 0.2em;
transition: all 0.2s ease;
}

.prose a:hover {
color: #F4E4C1;
text-decoration-color: #D4AF37;
}

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

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

.prose ul {
list-style-type: disc;
}

.prose ol {
list-style-type: decimal;
}

.prose li {
margin-top: 0.5em;
margin-bottom: 0.5em;
color: #F4E4C1;
opacity: 0.9;
}

.prose li::marker {
color: #D4AF37;
}

.prose blockquote {
border-left: 0.25rem solid #D4AF37;
padding-left: 1.5em;
font-style: italic;
color: #F4E4C1;
opacity: 0.9;
margin-top: 1.5em;
margin-bottom: 1.5em;
background: rgba(212, 175, 55, 0.05);
padding-top: 1em;
padding-bottom: 1em;
border-radius: 0.25rem;
}

.prose table {
width: 100%;
max-width: 100%;
border-collapse: collapse;
margin-top: 2em;
margin-bottom: 2em;
background: #2D2D2D;
border: 1px solid rgba(212, 175, 55, 0.2);
border-radius: 0.5rem;
overflow: hidden;
}

.prose thead {
background: rgba(212, 175, 55, 0.1);
}

.prose th {
padding: 0.75rem 1rem;
text-align: left;
color: #D4AF37;
font-weight: 600;
border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.prose td {
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(212, 175, 55, 0.1);
color: #F4E4C1;
}

.prose tbody tr:last-child td {
border-bottom: none;
}

.prose tbody tr:hover {
background: rgba(212, 175, 55, 0.05);
}

.prose img {
max-width: 100%;
height: auto;
border-radius: 0.5rem;
margin-top: 2em;
margin-bottom: 2em;
border: 1px solid rgba(212, 175, 55, 0.2);
}

.prose code {
background: rgba(212, 175, 55, 0.1);
color: #D4AF37;
padding: 0.2em 0.4em;
border-radius: 0.25rem;
font-size: 0.875em;
font-family: ui-monospace, monospace;
}

.prose pre {
background: #2D2D2D;
border: 1px solid rgba(212, 175, 55, 0.2);
border-radius: 0.5rem;
padding: 1.5em;
overflow-x: auto;
margin-top: 1.5em;
margin-bottom: 1.5em;
}

.prose pre code {
background: none;
padding: 0;
border-radius: 0;
color: #F4E4C1;
}

.prose hr {
border: none;
border-top: 1px solid rgba(212, 175, 55, 0.2);
margin-top: 3em;
margin-bottom: 3em;
}

/* Table Responsive Wrapper */
.table-responsive {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin-top: 1.5em;
margin-bottom: 1.5em;
}

.table-responsive table {
min-width: 600px;
}

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

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