/*
Theme Name: Oneioo Tech WP
Theme URI: 
Author: Oneioo Tech
Author URI: 
Description: Custom WordPress theme matching the Oneioo Tech main site design.
Version: 1.0
*/

/* WordPress Pagination Defaults */
.navigation.wp-pagination {
    margin-top: 48px;
    display: block;
}

.wp-pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.wp-pagination .nav-links a.page-numbers,
.wp-pagination .nav-links span.page-numbers {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none;
}

.wp-pagination .nav-links span.current {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.wp-pagination .nav-links a.page-numbers {
    color: #64748B;
    background: white;
}

.wp-pagination .nav-links a.page-numbers:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* --- WordPress Comments Styles --- */

.comments-area {
    margin-top: 16px;
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0F172A;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 28px;
}

.comment-list .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 24px;
    border-left: 2px solid #F1F5F9;
}

@media (min-width: 768px) {
    .comment-list .children {
        padding-left: 48px;
    }
}

.comment-body {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 28px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 16px;
    width: 48px;
    height: 48px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author b {
    font-size: 1.05rem;
    color: #0F172A;
    margin-right: 8px;
    font-weight: 700;
}

.comment-author .says {
    display: none;
}

.comment-metadata a {
    font-size: 0.85rem;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: var(--orange);
}

.comment-content p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 20px;
}

.reply a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    background: rgba(249, 115, 22, 0.1);
    padding: 8px 18px;
    border-radius: 9999px;
    transition: all 0.2s;
}

.reply a:hover {
    background: var(--orange);
    color: white;
}

/* --- Comment Form --- */

#respond {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0;
}

#reply-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #0F172A;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#reply-title small {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 12px;
}

#reply-title small a {
    color: #ef4444;
    text-decoration: none;
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 24px;
}

.logged-in-as a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.comment-form p {
    margin: 0;
    width: 100%;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}

.comment-form label .required {
    color: #ef4444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s;
    background: #F8FAFC;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--orange);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.comment-form textarea {
    height: 180px;
    resize: vertical;
}

@media (min-width: 768px) {

    .comment-form-author,
    .comment-form-email {
        width: calc(50% - 10px);
    }
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-form-cookies-consent input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
    color: #64748B;
    font-size: 0.85rem;
}

.form-submit {
    margin-top: 16px;
    width: 100%;
}

.form-submit input[type="submit"] {
    background: linear-gradient(135deg, var(--orange), #FB923C);
    color: white;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* --- Post Content Typography --- */
.post-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #0F172A;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
}

.post-content blockquote {
    border-left: 4px solid var(--orange);
    padding-left: 20px;
    margin: 32px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #475569;
    background: #F8FAFC;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

/* --- Responsive Blog Layout --- */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Tablets and small desktops */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-layout aside {
        max-width: 100%;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {

    /* Stack regular blog cards */
    .blog-layout .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Adjust featured post */
    .blog-layout .reveal[style*="font-size:5rem"] {
        height: 200px !important;
        /* Smaller featured image wrapper */
    }

    /* Adjust padding on featured wrapper */
    .blog-layout>div>.reveal {
        padding: 24px !important;
    }

    /* Reduce Hero font sizes */
    .page-hero h1 {
        font-size: 2.5rem;
    }

    /* Reduce Post Title sizes */
    h1[style*="font-size:2.2rem"] {
        font-size: 1.8rem !important;
    }

    h2[style*="font-size:1.6rem"] {
        font-size: 1.4rem !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .wp-pagination {
        flex-wrap: wrap;
    }
}