/*
Theme Name: HumanLens Landing
Description: HumanLens HomePage Theme
Version: 1.0
Author: HumanLens
*/

/* Header page specific styles - moved from header.php */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
}

.container-wrapper {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1024px;
}

@media (min-width: 768px) {
    .container-wrapper {
        flex-direction: row;
    }
}

.blue-bg-section {
    background-color: #1a237e;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-container {
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.input-field {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.icon {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(289deg) brightness(100%) contrast(100%);
}

/* Mobile Menu Styling */
#mobile-menu {
    position: relative;
    z-index: 50;
    width: 100%;
}

#mobile-menu a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    color: #374151 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.2s ease-in-out !important;
}

#mobile-menu a:last-child {
    border-bottom: none !important;
}

#mobile-menu a:hover {
    background-color: #f9fafb !important;
    color: #111827 !important;
}

#mobile-menu .mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

#mobile-menu .mobile-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#mobile-menu .mobile-menu li a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    color: #374151 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.2s ease-in-out !important;
}

#mobile-menu .mobile-menu li:last-child a {
    border-bottom: none !important;
}

#mobile-menu .mobile-menu li a:hover {
    background-color: #f9fafb !important;
    color: #111827 !important;
}

/* Chart container for Chart.js */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Error and Success Messages */
.form-message {
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.form-message.success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

.form-message.error {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

/* Alert message styling */
.alert {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.alert-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.alert-content {
    flex: 1;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Blog Page Specific Styles */
.blog-container {
    background-color: #f8fafc;
    min-height: 100vh;
}

/* Line clamp utilities for text truncation */
.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;
}

/* Blog card hover effects */
.blog-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: white;
    border: 1px solid #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.pagination .page-numbers:hover {
    background-color: #f9fafb;
    color: #374151;
}

.pagination .page-numbers.current {
    background-color: #1a237e;
    color: white;
    border-color: #1a237e;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    border-radius: 0.375rem;
}

.pagination .page-numbers.prev {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pagination .page-numbers.next {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Blog Single Post Typography and Spacing */
.single-post-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.125rem;
    max-width: 65ch;
    margin: 0 auto;
}

.single-post-content p {
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-align: justify;
    hyphens: auto;
}

.single-post-content p:first-child {
    margin-top: 0;
}

.single-post-content p:last-child {
    margin-bottom: 0;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.single-post-content h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.single-post-content h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.single-post-content h3 {
    font-size: 1.5rem;
}

.single-post-content h4 {
    font-size: 1.25rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single-post-content blockquote {
    border-left: 4px solid #1a237e;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.single-post-content a {
    color: #1a237e;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.single-post-content a:hover {
    color: #1e40af;
    text-decoration: none;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.single-post-content code {
    background-color: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: #e11d48;
}

.single-post-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

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

/* Responsive typography */
@media (max-width: 768px) {
    .single-post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .single-post-content h1 {
        font-size: 1.875rem;
    }
    
    .single-post-content h2 {
        font-size: 1.5rem;
    }
    
    .single-post-content h3 {
        font-size: 1.25rem;
    }
    
    .single-post-content p {
        margin-bottom: 1.25rem;
    }
    
    .single-post-content h1,
    .single-post-content h2,
    .single-post-content h3,
    .single-post-content h4,
    .single-post-content h5,
    .single-post-content h6 {
        margin-top: 2rem;
    }
}

/* Blog Post Container Improvements */
.single-post-article {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.single-post-article:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #3b82f6);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Improved meta styling */
.post-meta {
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.post-meta .author {
    font-weight: 500;
    color: #374151;
}

.post-meta .date {
    color: #6b7280;
}

/* Category tag improvements */
.category-tag {
    background: linear-gradient(135deg, #1a237e, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(26, 35, 126, 0.2);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: linear-gradient(135deg, #0f172a, #1e40af);
    box-shadow: 0 4px 8px rgba(26, 35, 126, 0.3);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Enhanced typography for better readability */
.single-post-content strong {
    font-weight: 600;
    color: #111827;
}

.single-post-content em {
    font-style: italic;
    color: #4b5563;
}

/* Table styling */
.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.single-post-content th,
.single-post-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.single-post-content th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.single-post-content tr:hover {
    background-color: #f8fafc;
}