/* Custom styles for Tailwind CSS compatibility */

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

/* Prose styling for article content */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #111827;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }

.prose p {
    margin-bottom: 1.25rem;
}

.prose a {
    color: #3b82f6;
    text-decoration: underline;
}

.prose a:hover {
    color: #1d4ed8;
}

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

.prose ul, .prose ol {
    margin: 1.25rem 0;
    padding-left: 1.625rem;
}

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

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

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

.prose ol ol {
    list-style-type: lower-alpha;
}

.prose li {
    margin: 0.5rem 0;
}

.markdown-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2937;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    scroll-margin-top: 5rem;
}

.markdown-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    overflow: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.markdown-content code {
    font-family: 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    background-color: #eef2ff;
    color: #1e1b4b;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.95em;
}

.markdown-content blockquote {
    border-left: 4px solid #c7d2fe;
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: #475569;
    font-style: italic;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.75rem;
}

.markdown-content th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Pygments code highlighting - keep existing styles */
/* These are loaded from pygments-monokai.css */

/* Custom font styles */
.handwritten-font {
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
}

.lato-font {
    font-family: 'Figtree', sans-serif;
}

/* Map specific styles */
#map {
    height: 400px;
    width: 100%;
    position: relative;
    z-index: 0;
}

/* Print styles */
@media print {
    .navbar {
        background-color: #fff !important;
        color: #000 !important;
    }
    .navbar-brand, .nav-link {
        color: #000 !important;
    }
    .es-logo {
        -webkit-filter: brightness(0) saturate(100%) !important;
        filter: brightness(0) saturate(100%) !important;
    }
    .navbar-toggler-icon {
        display: none !important;
    }
}

/* Badge styles for downloads - maintain compatibility */
.badge-download .text-label {
    display: inline;
}

@media (max-width: 576px) {
    .badge-download .text-label {
        display: none;
    }
    .badge-download {
        padding-right: 0.4rem;
    }
}

/* Responsive text wrapping for tables */
.url-params-cell {
    max-width: 200px;
    word-break: break-all;
    white-space: normal;
    overflow-wrap: break-word;
}

.user-agent-cell {
    max-width: 250px;
    word-break: break-all;
    white-space: normal;
    overflow-wrap: break-word;
}

@media (max-width: 1200px) {
    .url-params-cell { max-width: 150px; }
    .user-agent-cell { max-width: 200px; }
}

@media (max-width: 992px) {
    .url-params-cell { max-width: 120px; }
    .user-agent-cell { max-width: 150px; }
}

@media (max-width: 768px) {
    .url-params-cell { max-width: 100px; font-size: 0.8rem; }
    .user-agent-cell { max-width: 120px; font-size: 0.8rem; }
}

@media (max-width: 576px) {
    .url-params-cell { max-width: 80px; font-size: 0.75rem; }
    .user-agent-cell { max-width: 100px; font-size: 0.75rem; }
}