/* FlyStayRide Custom Styles */

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

/* ===== Prose styling for blog content ===== */

/* Base typography */
.prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

/* Paragraphs */
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

/* Headings */
.prose h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
    letter-spacing: -0.02em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #e5e7eb;
}

.prose h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.75em;
    margin-bottom: 0.6em;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

/* Remove top margin from first child */
.prose > *:first-child {
    margin-top: 0;
}

/* Strong & emphasis */
.prose strong {
    font-weight: 600;
    color: #111827;
}

.prose em {
    font-style: italic;
}

/* Links */
.prose a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.prose a:hover {
    color: #1d4ed8;
    text-decoration-color: #2563eb;
}

/* Lists */
.prose ul {
    list-style-type: disc;
    padding-left: 1.75em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.75em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

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

.prose li::marker {
    color: #9ca3af;
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid #2563eb;
    padding: 0.75em 1.25em;
    margin: 1.5em 0;
    background: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #4b5563;
    font-style: italic;
}

.prose blockquote p {
    margin: 0.5em 0;
}

/* Code - inline */
.prose code {
    font-size: 0.875em;
    font-weight: 500;
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
}

/* Code - blocks */
.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25em 1.5em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-weight: 400;
}

/* Horizontal rules */
.prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.5em 0;
}

/* Images */
.prose img {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 2em auto;
    max-width: 100%;
    height: auto;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.prose thead th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 0.75em 1em;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
}

.prose tbody td {
    padding: 0.75em 1em;
    border-bottom: 1px solid #f1f5f9;
}

.prose tbody tr:hover {
    background: #f8fafc;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Travelpayouts widget container */
.tp-widget {
    min-height: 200px;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive iframe for widgets */
.widget-container iframe {
    width: 100%;
    border: none;
    border-radius: 0.75rem;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
