/*
Theme Name: SEA Theme
Theme URI:
Author: SEA Team
Author URI:
Description: A custom WordPress theme for SEA featuring a blog with insights and ideas for smarter selling.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sea
Tags: blog, e-commerce, business, insights
*/

/* Reset and Base Styles */
h1.entry-title {
    all: revert;
}

.single-post-content-inner :is(ol, ul, menu, dl, dd, h1, h2, h3, h4, h5, h6, hr, p, a, pre) {
    all: revert;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    margin-bottom: 32px;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.site-description {
    font-size: 1.125rem;
    margin-bottom: 48px;
}

/* Navigation Tabs */
.tab-navigation {
    width: 100%;
    overflow: scroll;
}

.tab-navigation ul {
    display: flex;
    list-style: none;
    padding: 0;
}

.tab-navigation li {
    margin-right: 1rem;
}

.tab-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 9999px;
    border: 1px solid #e1e1e1;
    min-width: 100px;
    text-align: center;
}

.tab-navigation a:hover {
    color: #1c7cfa;
}

.tab-navigation a.active, .tab-navigation .current-menu-item a {
    color: #1c7cfa;
    border: 1px solid #1c7cfa;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

/* Article Card */
.article-card {
    display: block;
}

.article-card:hover .article-card-title {
    color: #1c7cfa;
}

.article-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid #0000001a;
}
.article-card-image .article-card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.article-card-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.article-card-excerpt {
    color: #888888;
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    margin-top: 2.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    margin-right: 0.75rem;
    border-radius: 4px;
    font-size: 14px;
    background-color: rgba(28, 124, 250, 0.07);
    border: 1px solid transparent;
}

.pagination .page-numbers:hover {
    color: #1c7cfa;
}

.pagination .page-numbers.current {
    color: #1c7cfa;
    border-color: #1c7cfa;
}

/* Single Post Styles */
.single-post-container .single-post-content .entry-header,
.single-post-container .single-post-content .entry-footer {
    width: calc(100% - 300px - 2rem);
}

.single-post-container .single-post-content .entry-header.has-anchor-nav{
    margin-left: calc(228px + 2rem);
}

.single-post-container .single-post-content .entry-content {
    display: flex;
    gap: 2rem;
    width: 100%;
    align-items: flex-start;
}

.single-post-container .single-post-content .entry-content .post-anchor-nav {
    width: 228px;
}

.single-post-container .single-post-content .entry-content .single-post-content-inner {
    width: calc(100% - 300px - 2rem);
}

.single-post-container .single-post-content .entry-content.has-anchor-nav .single-post-content-inner {
    width: calc(100% - 528px - 4rem);
}

.single-post-container .single-post-content .entry-content .single-post-content-inner a {
    color: #1c7cfa;
    text-decoration: none;
}

.single-post-container .single-post-content .entry-content .single-post-content-inner a:hover {
    text-decoration: underline;
}

.single-post-container .single-post-content .entry-content .single-post-content-inner ul li::marker {
    color: #1c7cfa;
}

.single-post-container .single-post-content .entry-content .single-post-content-inner .post-thumbnail,
.single-post-container .single-post-content .entry-content .single-post-content-inner .single-post-image-wrapper {
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    box-shadow:
        0px 36px 89px #0000000a,
        0px 23.3333px 52.1227px #00000008,
        0px 13.8667px 28.3481px rgba(0, 0, 0, .024),
        0px 7.2px 14.4625px #00000005,
        0px 2.93333px 7.25185px rgba(0, 0, 0, .016),
        0px 0.666667px 3.50231px #00000003;
    border-radius: 0.75rem;
    border: 1px solid #0000001a;
    overflow: hidden;
}


.single-post-container .single-post-content .entry-content .sidebar-container {
    width: 300px;
    align-self: stretch;
}

.single-post-container .single-post-content .entry-content .sidebar-container .author-info {
    width: 100%;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 1.5rem;
}

.single-post-container .single-post-content .entry-content .sidebar-container .author-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.single-post-container .single-post-content .entry-content .sidebar-container .author-info-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-container .single-post-content .entry-content .sidebar-container .author-info-name {
    font-weight: 600;
}

.single-post-container .single-post-content .entry-content .sidebar-container .author-info-bio {
    font-size: 0.875rem;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Breadcrumbs Navigation */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs.has-anchor-nav {
    margin-left: calc(228px + 2rem);
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    color: #495057;
    text-decoration: none;
}

.breadcrumbs a:first-child svg {
    margin-right: 0.5rem;
}

.breadcrumbs a:hover {
    color: #0275d8;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb-current {
    color: #6c757d;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-navigation-back {
    margin-bottom: 2rem;
}

.post-navigation-back a {
    display: inline-flex;
    align-items: center;
    color: #495057;
    font-size: 0.9rem;
    text-decoration: none;
}

.post-navigation-back svg {
    margin-right: 0.5rem;
}

.post-navigation-back a:hover {
    color: #0275d8;
}

.single-post-container .entry-header {
    margin-bottom: 2rem;
}

.single-post-container .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #343a40;
}

.single-post-container .entry-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.single-post-container .entry-meta .post-author,
.single-post-container .entry-meta .reading-time,
.single-post-container .entry-meta .publish-date {
    color: inherit;
    line-height: 1.25;
}

.single-post-container .entry-meta .reading-time,
.single-post-container .entry-meta .publish-date {
    border-left: 1px solid #AAAAAA;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
}

.single-post-container .publish-date {
    font-style: italic;
}

.single-post-container .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-container .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
    margin-bottom: 3rem;
}

.single-post-container .entry-content h2 {
    scroll-margin-top: 104px;
}

.post-anchor-nav {
    position: sticky;
    top: 104px;
    border-right: 1px solid #EEEEEE;
}

.post-anchor-title {
    font-size: 1rem;
    font-weight: 700;
    padding: 0 1rem;
    margin-bottom: 0.25rem;
}

.post-anchor-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.post-anchor-nav a {
    text-decoration: none;
    padding: 0.25rem 1rem;
    display: block;
    line-height: 1.5;
    margin: 3px 0;
}

.post-anchor-nav a:hover {
    color: #333333;
    text-decoration: underline;
}

.post-anchor-nav a.is-active {
    color: #1c7cfa;
    background-color: rgba(28, 124, 250, 0.05);
}

/* Post Sharing */
.post-sharing {
    margin: 3rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.share-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #6c757d;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-facebook {
    background-color: #3b5998;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-email {
    background-color: #6c757d;
}

.share-buttons a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.related-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .single-post-container .single-post-content .entry-header.has-anchor-nav,
    .breadcrumbs.has-anchor-nav {
        margin-left: 0;
    }

    .single-post-container .single-post-content .entry-content {
        flex-direction: column;
    }

    .single-post-container .single-post-content .entry-header,
    .single-post-container .single-post-content .entry-footer,
    .single-post-container .single-post-content .entry-content .post-anchor-nav,
    .single-post-container .single-post-content .entry-content .sidebar-container,
    .single-post-container .single-post-content .entry-content .single-post-content-inner,
    .single-post-container .single-post-content .entry-content.has-anchor-nav .single-post-content-inner {
        width: 100%;
    }

    .post-anchor-nav {
        position: static;
        margin-bottom: 1rem;
        border-right: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .single-post-container .entry-title {
        font-size: 2rem;
    }

    .single-post-container .entry-content {
        font-size: 1rem;
    }

    .breadcrumb-current {
        max-width: 150px;
    }
}
