/* NBC News Theme - Custom CSS */

/* Additional Styles for Single Post */
.single-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--nbc-border);
    padding-bottom: 20px;
}

.entry-category {
    display: inline-block;
    color: var(--nbc-red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--nbc-black);
}

.entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--nbc-text-gray);
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--nbc-text-gray);
    padding: 10px 0;
    font-style: italic;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--nbc-dark-gray);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--nbc-red);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: var(--nbc-dark-gray);
}

.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--nbc-border);
}

.tags-links {
    margin-bottom: 20px;
}

.tags-links a {
    display: inline-block;
    background-color: var(--nbc-gray);
    padding: 5px 15px;
    margin: 5px 5px 5px 0;
    border-radius: 3px;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.tags-links a:hover {
    background-color: var(--nbc-red);
    color: var(--nbc-white);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--nbc-black);
}

.related-posts .section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
}

/* Comments */
.comments-area {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px 20px;
    border-top: 3px solid var(--nbc-black);
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--nbc-border);
}

.comment-list .children {
    list-style: none;
    margin-left: 40px;
    margin-top: 20px;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-meta {
    flex: 1;
}

.comment-author .fn {
    font-weight: 700;
    font-size: 16px;
    color: var(--nbc-black);
    font-style: normal;
}

.comment-metadata {
    font-size: 13px;
    color: var(--nbc-text-gray);
    margin-top: 5px;
}

.comment-content {
    margin-top: 15px;
    line-height: 1.6;
}

.reply {
    margin-top: 10px;
}

.reply a {
    color: var(--nbc-red);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--nbc-dark-gray);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    padding: 12px;
    border: 1px solid var(--nbc-border);
    border-radius: 3px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--nbc-red);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    background-color: var(--nbc-red);
    color: var(--nbc-white);
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background-color: #b32418;
}

/* Archive Pages */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--nbc-black);
}

.page-title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-description {
    margin-top: 15px;
    color: var(--nbc-text-gray);
    font-size: 16px;
}

/* Pagination */
.pagination {
    margin: 60px 0 40px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 10px;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination .active {
    display: block;
    padding: 10px 15px;
    background-color: var(--nbc-white);
    border: 1px solid var(--nbc-border);
    color: var(--nbc-dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .active {
    background-color: var(--nbc-red);
    color: var(--nbc-white);
    border-color: var(--nbc-red);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 20px 0;
}

.search-form label {
    flex: 1;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--nbc-border);
    border-radius: 3px;
    font-size: 15px;
}

.search-form input[type="submit"] {
    padding: 12px 30px;
    background-color: var(--nbc-red);
    color: var(--nbc-white);
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background-color: #b32418;
}

/* Header Search Form */
.header-search-form {
    background-color: var(--nbc-black);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-search-form .search-form {
    margin: 0;
}

.header-search-form input[type="search"] {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--nbc-white);
}

.header-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Search Toggle Button */
.search-toggle {
    background: none;
    border: none;
    color: var(--nbc-white);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: var(--nbc-red);
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 .page-header {
    border: none;
    padding-bottom: 0;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .search-form {
    margin: 40px auto;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.no-results .search-form {
    margin: 40px auto;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip Link */
.skip-link {
    background-color: var(--nbc-black);
    color: var(--nbc-white);
    padding: 10px;
    position: absolute;
    left: -9999px;
    z-index: 100000;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Mobile Menu Toggle (will be styled via JS) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--nbc-white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--nbc-black);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .entry-title {
        font-size: 1.75rem;
    }

    .entry-content {
        font-size: 16px;
    }

    .comment-list .children {
        margin-left: 20px;
    }
}
