/* AnalyticSafe v2.0 — Tailwind overrides & WordPress-specific styles */

/* WordPress nav menu list items */
.nav-item {
    list-style: none;
}

/* WordPress post content typography */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #374151;
}

.prose a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #bfdbfe;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

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

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

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

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

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #374151;
}

.prose blockquote {
    border-left: 4px solid #2563eb;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #eff6ff;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #1e40af;
    font-style: italic;
}

.prose blockquote p {
    color: #1e40af;
    margin-bottom: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.prose thead {
    background: #f9fafb;
}

.prose th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.prose td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

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

.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

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

.prose code {
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
}

.prose pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
}

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

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

/* Post card hover lift */
.post-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* WordPress pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers:hover {
    background: #f3f4f6;
    color: #111827;
}

.page-numbers.current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* WordPress admin bar fix */
body.admin-bar nav.sticky {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar nav.sticky {
        top: 46px;
    }
}
