/* Custom styles for the blog */

/* Base typography improvements */
.prose {
    color: #0d141c;
    line-height: 1.7;
}

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

.prose h1 {
    font-size: 2rem;
}

.prose h2 {
    font-size: 1.5rem;
}

.prose h3 {
    font-size: 1.25rem;
}

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

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: #3490f3;
    text-decoration: none;
}

.prose a:hover {
    color: #2980e6;
    text-decoration: underline;
}

.prose blockquote {
    border-left: 4px solid #3490f3;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
}

.prose code {
    background-color: #e7edf4;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose pre {
    background-color: #0d141c;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
}

/* Form enhancements */
.form-input:focus {
    border-color: #3490f3 !important;
    box-shadow: 0 0 0 3px rgba(52, 144, 243, 0.1) !important;
}

/* Button hover effects */
.btn-primary {
    background-color: #3490f3;
    border-color: #3490f3;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #2980e6;
    border-color: #2980e6;
    transform: translateY(-1px);
}

/* Card hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

/* Search input styling */
.search-input {
    transition: all 0.2s ease-in-out;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 144, 243, 0.1);
}

/* Table styling improvements */
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .px-40 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-[32px] {
        font-size: 1.875rem;
    }
    
    .@xl\:flex-row {
        flex-direction: column;
    }
    
    .@xl\:px-4 {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Table improvements for mobile */
    .table-fixed {
        min-width: 800px;
    }
    
    /* Manage page responsive */
    .manage-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .manage-table th {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* TinyMCE editor styling */
.tox-tinymce {
    border: 1px solid #e7edf4 !important;
    border-radius: 0.5rem !important;
}

.tox .tox-editor-header {
    border-bottom: 1px solid #e7edf4 !important;
}

/* Flash message animations */
.flash-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-published {
    background-color: #dcfce7;
    color: #166534;
}

.status-draft {
    background-color: #f3f4f6;
    color: #374151;
}

.status-featured {
    background-color: #fef3c7;
    color: #92400e;
}

/* Image placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #3490f3 0%, #2980e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #3490f3;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
