/**
 * ProLearners Theme CSS
 *
 * Component and utility styles beyond Tailwind.
 */

/* ===== Navigation ===== */
.prolearners-desktop-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.prolearners-mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== WordPress Pagination ===== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background-color: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.nav-links .page-numbers:hover {
    border-color: #818cf8;
    color: #4f46e5;
    background-color: #eef2ff;
}

.nav-links .page-numbers.current {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.nav-links .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ===== Prose (content pages) ===== */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #111827;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }

.prose p { margin-bottom: 1.25em; }

.prose a {
    color: #4f46e5;
    font-weight: 500;
    text-decoration: underline;
}

.prose a:hover { color: #4338ca; }

.prose ul, .prose ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5em; }

.prose blockquote {
    border-left: 4px solid #818cf8;
    padding-left: 1em;
    margin: 1.5em 0;
    color: #6b7280;
    font-style: italic;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.prose img {
    border-radius: 0.75rem;
    margin: 1.5em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75em;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* ===== Comments ===== */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
}

.comment-author {
    font-weight: 600;
    color: #111827;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* ===== Search Form ===== */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 28rem;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-form .search-field:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.search-form .search-submit {
    padding: 0.625rem 1.25rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.search-form .search-submit:hover {
    background-color: #4338ca;
}

/* ===== Widget Styles ===== */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li { margin-bottom: 0.5rem; }

.widget ul li a {
    color: #4b5563;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.widget ul li a:hover { color: #4f46e5; }

/* ===== Footer ===== */
footer ul,
footer ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer ul li {
    list-style: none !important;
}

footer ul li::marker {
    content: none;
}

/* ===== Post Navigation ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
