/*
Theme Name: Twenty Twenty-Five Atlas
Description: Child theme from "Twenty Twenty-Five" for Atlas of Radiology
Template: twentytwentyfive
Text Domain: atlas
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: var(--atlas-bg-main);
    color: var(--atlas-text-primary);
    line-height: 1.6;
    margin: 0;
}


/* ===== Style fixes for blog ===== */
#wpadminbar + .header {
    top: 32px;
}

#wpadminbar + .header .mobile-menu-toggle {
    top: 48px;
}

.header a {
    text-decoration: none;
}

.header + .blog-header {
    margin-top: 95px;
}

.main.blog-main {
    margin-top: 40px;
    padding-bottom: 100px;
}

#wpadminbar + .header + .main.blog-main {
    margin-top: 120px;
}

.main.blog-main .container {
    padding: 0 60px;
}

.single .main.blog-main .container,
.page .main.blog-main .container {
    max-width: 1000px;
}


/* ===== Articles list (index.php) ===== */
article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--atlas-border-color);
}
article:last-of-type {
    border-bottom: none;
}

.entry-title {
    font-size: 2.2rem;
    margin: 0 0 1.2rem;
}
.entry-title a {
    color: var(--atlas-text-primary);
    text-decoration: none;
}
.entry-title a:hover {
    text-decoration: underline;
}

.post-thumbnail {
    margin: 1rem 0;
}
.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1rem;
    color: var(--atlas-text-primary);
}
.entry-content p {
    margin: 0 0 1em;
}

.read-more-link {
    font-weight: 600;
    color: var(--atlas-text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.read-more-link:hover {
    text-decoration: none;
}

/* ===== Post meta-data (bottom) ===== */
.post-header {
    margin-bottom: 0.3rem;
}

.post-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--atlas-text-secondary);
    border-top: 1px solid var(--atlas-border-color);
    padding-top: 1rem;
}

/* Hide meta-data block on pages (page.php) */
.page .post-footer {
    display: none;
}

/* ===== Pagination ===== */
.navigation.pagination {
    margin: 2rem 0;
    text-align: center;
}
.navigation.pagination .nav-links {
    display: inline-flex;
    gap: 0.2rem;
}
.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    color: var(--atlas-text-primary);
    text-decoration: none;
    border: 1px solid transparent;
}
.navigation.pagination .page-numbers.current {
    font-weight: 700;
    border-bottom: 2px solid var(--atlas-text-primary);
}
.navigation.pagination .page-numbers:hover:not(.current) {
    text-decoration: underline;
}

/* ===== Comments (single.php) ===== */
.comments-area {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--atlas-border-color);
}

#comments {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--atlas-border-color);
}
.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.comment-author .avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    vertical-align: middle;
}
.comment-author .fn {
    font-weight: 600;
    font-style: normal;
}
.comment-author .says {
    display: none; /* hide ":" after username */
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--atlas-text-secondary);
    margin-bottom: 0.5rem;
}
.comment-metadata a {
    color: var(--atlas-text-secondary);
    text-decoration: none;
}
.comment-metadata a:hover {
    text-decoration: underline;
}
.comment-metadata .edit-link {
    margin-left: 0.5rem;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0 0.8rem;
}
.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    font-size: 0.9rem;
}
.reply a {
    color: var(--atlas-text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.reply a:hover {
    text-decoration: none;
}

.comments-navigation {
    margin: 1rem 0;
    text-align: center;
}

/* ===== Add comment form ===== */
#respond {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--atlas-border-color);
}

#reply-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
#cancel-comment-reply-link {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--atlas-text-primary);
    text-decoration: underline;
    margin-left: 0.5rem;
}
#cancel-comment-reply-link:hover {
    text-decoration: none;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #D1D8E1;
    background: #FDFDFD;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}
.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    border-color: var(--atlas-text-primary);
    outline: none;
    background: var(--atlas-bg-main);
}
.comment-form input[type="checkbox"] + label {
    display: inline;
}
.comment-form textarea {
    resize: vertical;
}

.comment-form .form-submit {
    margin-top: 1rem;
}
.comment-form .submit {
    background: transparent;
    border: 1px solid var(--atlas-text-primary);
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--atlas-text-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.comment-form .submit:hover {
    background: var(--atlas-text-primary);
    color: var(--atlas-bg-main);
}

/* Current user info */
.logged-in-as {
    font-size: 0.9rem;
    color: var(--atlas-text-secondary);
    margin-bottom: 1rem;
}
.logged-in-as a {
    color: var(--atlas-text-primary);
    text-decoration: underline;
}
.logged-in-as a:hover {
    text-decoration: none;
}

.required-field-message {
    font-size: 0.85rem;
    color: var(--atlas-text-secondary);
}
.required {
    color: var(--atlas-error-color);
}

/* Guests info */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1rem;
}


/* ===== Quotes (wp-block-quote) ===== */
.wp-block-quote {
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-left: 2px solid #1e1e1e;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    color: #1e1e1e;
    background: transparent;
}

.wp-block-quote p {
    margin-bottom: 0;
}

.wp-block-quote cite,
.wp-block-quote .wp-block-quote__citation {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    color: #6c6c6c;
}

.wp-block-quote.is-style-large {
    font-size: 1.6rem;
    text-align: center;
    border-left: none;
    padding: 1.5rem 0;
}
.wp-block-quote.is-style-large cite {
    font-size: 1rem;
}

/* ===== blog-header ===== */
.blog-header {
    background: var(--atlas-bg-main);
    /*border-bottom: 1px solid var(--atlas-border-color);*/
    /*padding: 0.5rem 0;*/
}

.blog-header .container.flex-container {
    justify-content: space-between;
}

.blog-header .blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--atlas-text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-header .blog-title:hover {
    text-decoration: underline;
}

.blog-header .blog-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--atlas-text-secondary);
    border: 1px solid #D1D8E1;
    border-radius: 2px;
    padding: 0.1rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
}

.blog-header .blog-search {
    flex-shrink: 0;
}

.blog-header .blog-search .search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.blog-header .blog-search .search-field {
    padding: 0.3rem 0.6rem;
    border: 1px solid #D1D8E1;
    background: #FDFDFD;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--atlas-text-primary);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 180px;
}
.blog-header .blog-search .search-field:focus {
    border-color: var(--atlas-text-primary);
    background: var(--atlas-bg-main);
}

.blog-header .blog-search .search-submit {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--atlas-text-primary);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--atlas-text-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.blog-header .blog-search .search-submit:hover {
    background: var(--atlas-text-primary);
    color: var(--atlas-bg-main);
}


/* ===== Adaptive ===== */
@media (max-width: 992px) {
    #wpadminbar + .header .header-menu .header-menu-nav {
        height: 66px;
    }

    #wpadminbar + .header .header-menu.active .mobile-menu-accordion {
        transform: translateY(32px);
    }

    .main.blog-main .container {
        padding: 0 20px;
    }
}

@media screen and (max-width: 782px) {
    #wpadminbar + .header {
        top: 46px;
    }

    #wpadminbar + .header .mobile-menu-toggle {
        top: 62px;
    }

    #wpadminbar + .header .header-menu.active .mobile-menu-accordion {
        transform: translateY(46px);
    }
}

@media (max-width: 768px) {
    /*.container {
        padding: 0 1rem;
    }*/
    .entry-title {
        font-size: 1.8rem;
    }
    .single .entry-title,
    .page .entry-title {
        font-size: 2rem;
    }

    /* ===== Comments (single.php) ===== */
    .comment-author .avatar {
        width: 32px;
        height: 32px;
    }
    .comment-form .submit {
        width: 100%;
        text-align: center;
    }

    /* ===== blog-header ===== */
    .blog-header .container.flex-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .blog-header .blog-title {
        justify-content: center;
        font-size: 1.3rem;
    }
    .blog-header .blog-search .search-field {
        width: 100%;
    }
    .blog-header .blog-search .search-form {
        width: 100%;
    }
    .blog-header .blog-search .search-submit {
        flex-shrink: 0;
    }
}
