/*
Theme Name: SellySell
Theme URI: https://sellysell.com
Author: SellySell Team
Author URI: https://sellysell.com
Description: A clean, fast, mobile-first WordPress theme for multi-niche blogs. Features minimal design, excellent typography, and easy content management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sellysell
Tags: blog, one-column, two-columns, custom-colors, custom-menu, featured-images, full-site-editing, block-patterns, wide-blocks
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ss-primary: #0891b2;
    --ss-primary-dark: #0e7490;
    --ss-text-dark: #111111;
    --ss-text-medium: #222222;
    --ss-text-light: #666666;
    --ss-background: #ffffff;
    --ss-background-alt: #f8f9fa;
    --ss-border: #e5e7eb;
    --ss-border-dark: #d1d5db;
    --ss-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --ss-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --ss-radius: 4px;
    --ss-radius-lg: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ss-text-dark);
    background-color: var(--ss-background);
}

.wp-site-blocks {
    padding-top: 0 !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ss-background);
}

.top-social-bar {
    background: var(--ss-text-dark);
    padding: 8px 0;
}

.top-social-bar .social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.top-social-bar .social-icons a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-social-bar .social-icons a:hover {
    opacity: 0.8;
}

.header-main {
    padding: 20px 0;
    border-bottom: 1px solid var(--ss-border);
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ss-text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-logo:hover {
    color: var(--ss-primary);
}

.header-search {
    position: relative;
}

.header-search input[type="search"] {
    width: 280px;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    font-size: 14px;
    background: var(--ss-background-alt);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--ss-primary);
    background: var(--ss-background);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ss-text-light);
}

.nav-categories {
    background: var(--ss-background);
    border-bottom: 1px solid var(--ss-border);
    padding: 0;
}

.nav-categories ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-categories li {
    margin: 0;
}

.nav-categories a {
    display: block;
    padding: 8px 16px;
    color: var(--ss-text-medium);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--ss-radius);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-categories a:hover,
.nav-categories .current-menu-item a {
    background: var(--ss-background-alt);
    color: var(--ss-primary);
}

.wp-block-navigation__responsive-container.is-menu-open {
    background: var(--ss-background);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 900px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--ss-background);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-lg);
    padding: 24px;
}

.sidebar-widget h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ss-text-light);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ss-border);
}

.sidebar-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-widget ul li {
    margin-bottom: 8px;
}

.sidebar-widget ul li a {
    color: var(--ss-text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--ss-primary);
}

.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    font-size: 14px;
    margin-bottom: 12px;
}

.newsletter-widget button {
    width: 100%;
    padding: 12px 16px;
    background: var(--ss-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-widget button:hover {
    background: var(--ss-primary-dark);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ss-text-dark);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ss-primary);
    display: inline-block;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: var(--ss-background);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--ss-shadow-lg);
}

.post-card-horizontal {
    display: grid;
    grid-template-columns: 200px 1fr;
}

@media (max-width: 600px) {
    .post-card-horizontal {
        grid-template-columns: 1fr;
    }
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 20px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ss-text-light);
    margin-bottom: 8px;
}

.post-card-category {
    color: var(--ss-primary);
    text-decoration: none;
    font-weight: 500;
}

.post-card-category:hover {
    color: var(--ss-primary-dark);
}

.post-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--ss-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: var(--ss-primary);
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--ss-text-light);
    margin: 0;
    line-height: 1.6;
}

.archive-post-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--ss-border);
}

.archive-post-item:first-child {
    padding-top: 0;
}

.archive-post-item .post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.archive-post-item .post-title a {
    color: var(--ss-text-dark);
    text-decoration: none;
}

.archive-post-item .post-title a:hover {
    color: var(--ss-primary);
}

.archive-post-item .post-date {
    font-size: 13px;
    color: var(--ss-text-light);
    margin-bottom: 8px;
}

.archive-post-item .post-excerpt {
    font-size: 14px;
    color: var(--ss-text-light);
    margin: 0;
    line-height: 1.6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--ss-background-alt);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: var(--ss-primary);
    box-shadow: var(--ss-shadow);
}

.category-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ss-text-dark);
    margin: 0 0 4px 0;
}

.category-card-count {
    font-size: 13px;
    color: var(--ss-text-light);
}

.single-post-header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--ss-text-light);
    margin-bottom: 16px;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 600px) {
    .single-post-title {
        font-size: 1.75rem;
    }
}

.featured-image {
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: var(--ss-radius-lg);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ss-radius);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--ss-background-alt);
    border-left: 4px solid var(--ss-primary);
    font-style: italic;
}

.toc-container {
    background: var(--ss-background-alt);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-lg);
    padding: 24px;
    margin-bottom: 40px;
}

.toc-container h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ss-text-light);
    margin: 0 0 16px 0;
}

.toc-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-container li {
    margin-bottom: 8px;
}

.toc-container a {
    color: var(--ss-text-medium);
    text-decoration: none;
    font-size: 14px;
}

.toc-container a:hover {
    color: var(--ss-primary);
}

.single-post-area {
    flex: 1;
    min-width: 0;
}

.single-post-header-inline {
    margin-bottom: 24px;
}

.single-post-meta-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ss-text-light);
    margin-bottom: 12px;
}

.post-category-badge a {
    background: var(--ss-primary);
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: var(--ss-radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category-badge a:hover {
    background: var(--ss-primary-dark);
}

.single-post-title-inline {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--ss-text-dark);
}

@media (min-width: 768px) {
    .single-post-title-inline {
        font-size: 2rem;
    }
}

.single-featured-image {
    margin-bottom: 24px;
    border-radius: var(--ss-radius-lg);
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-area {
    line-height: 1.8;
}

.post-content-area p {
    margin-bottom: 1.5rem;
}

.post-content-area h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
}

.post-content-area h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.post-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ss-radius);
    margin: 1.5rem 0;
}

.post-content-area blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--ss-background-alt);
    border-left: 4px solid var(--ss-primary);
    font-style: italic;
}

.post-content-area ul,
.post-content-area ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content-area li {
    margin-bottom: 0.5rem;
}

.post-content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 14px;
}

.post-content-area th,
.post-content-area td {
    padding: 12px;
    border: 1px solid var(--ss-border);
    text-align: left;
}

.post-content-area th {
    background: var(--ss-background-alt);
    font-weight: 600;
}

.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--ss-border);
}

.comments-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid var(--ss-border);
    border-bottom: 1px solid var(--ss-border);
    margin: 40px 0;
}

.social-share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ss-text-light);
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ss-background-alt);
    border-radius: var(--ss-radius);
    color: var(--ss-text-medium);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-share a:hover {
    background: var(--ss-primary);
    color: #ffffff;
}

.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--ss-background-alt);
    border-radius: var(--ss-radius-lg);
    margin: 40px 0;
}

@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.author-info .author-role {
    font-size: 13px;
    color: var(--ss-text-light);
    margin-bottom: 8px;
}

.author-info p {
    font-size: 14px;
    color: var(--ss-text-medium);
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--ss-background);
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-lg);
    padding: 32px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.team-card:hover {
    box-shadow: var(--ss-shadow-lg);
}

.team-card.founder {
    border-color: var(--ss-primary);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.02) 0%, rgba(8, 145, 178, 0.05) 100%);
}

.team-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    background: var(--ss-background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-avatar img,
.team-card-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.team-card-role {
    font-size: 14px;
    color: var(--ss-primary);
    margin-bottom: 12px;
}

.team-card-bio {
    font-size: 14px;
    color: var(--ss-text-light);
    margin: 0;
}

.page-header {
    text-align: center;
    padding: 60px 20px;
    background: var(--ss-background-alt);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.page-header .tagline {
    font-size: 1.125rem;
    color: var(--ss-text-light);
    margin: 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ss-primary);
}

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

.contact-form button {
    padding: 14px 32px;
    background: var(--ss-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ss-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: var(--ss-primary-dark);
}

.site-footer {
    background: var(--ss-text-dark);
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #ffffff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    font-size: 14px;
    text-decoration: none;
    color: var(--ss-text-medium);
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: var(--ss-primary);
    color: var(--ss-primary);
}

.pagination .current {
    background: var(--ss-primary);
    border-color: var(--ss-primary);
    color: #ffffff;
}

.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 14px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--ss-text-light);
}

.breadcrumbs a {
    color: var(--ss-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--ss-primary);
}

.breadcrumbs li:last-child span {
    color: var(--ss-text-medium);
}

.wp-block-latest-posts.has-dates {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-latest-posts.has-dates li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ss-border);
}

.wp-block-latest-posts.has-dates li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wp-block-latest-posts__featured-image {
    margin-bottom: 0 !important;
    margin-right: 12px !important;
    flex-shrink: 0;
}

.wp-block-latest-posts__featured-image img {
    border-radius: var(--ss-radius);
    object-fit: cover;
}

.wp-block-latest-posts__featured-image.alignleft + .wp-block-latest-posts__post-title,
.wp-block-latest-posts__featured-image.alignleft ~ .wp-block-latest-posts__post-date {
    display: block;
}

.wp-block-latest-posts li {
    display: flex;
    align-items: flex-start;
}

.wp-block-latest-posts li > a:first-child:not(.wp-block-latest-posts__featured-image) {
    flex: 1;
}

.wp-block-latest-posts__post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ss-text-dark);
    text-decoration: none;
    display: block;
}

.wp-block-latest-posts__post-title:hover {
    color: var(--ss-primary);
}

.wp-block-latest-posts__post-date {
    font-size: 12px;
    color: var(--ss-text-light);
    margin-top: 4px;
}

.wp-block-search__inside-wrapper {
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
}

.wp-block-search__input {
    border: none !important;
}

.wp-block-search__button {
    background: var(--ss-primary) !important;
    border: none !important;
}

.wp-block-categories-list,
.wp-block-latest-posts__list {
    list-style: none !important;
    padding: 0 !important;
}

.wp-block-categories-list li,
.wp-block-latest-posts__list li {
    margin-bottom: 8px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.alignwide {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
