/* PCCloud Blog Theme — Pitch-inspired dark magazine design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ededed;
    background: #1d1d1f;
    line-height: 1.6;
}

a { color: #ededed; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

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

/* === PCCLOUD HEADER === */
.pccloud-header {
    background: #1d1d1f;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #343435;
}

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

.pccloud-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.pccloud-nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.pccloud-nav-list li a {
    display: block;
    padding: 28px 14px;
    color: #ededed;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.pccloud-nav-list li a:hover {
    opacity: 0.7;
}

.pccloud-nav-list li.active a {
    color: #fff;
    opacity: 1;
}

/* Mobile menu toggle */
.pccloud-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.pccloud-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ededed;
    transition: transform 0.3s;
}

/* === BLOG HERO === */
.blog-hero {
    padding: 60px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero-inner {
    max-width: 600px;
}

.blog-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.blog-description {
    font-size: 18px;
    color: rgba(237, 237, 237, 0.6);
    line-height: 1.5;
}

/* === POST FEED === */
.post-feed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.post-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

/* === POST CARD (Pitch style — borderless, clean) === */
.post-card {
    background: transparent;
    transition: opacity 0.2s;
}

.post-card:hover {
    opacity: 0.85;
}

.post-card-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-card-content {
    padding: 0;
}

.post-card-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(237, 237, 237, 0.5);
    margin-bottom: 8px;
}

.post-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.post-card-title a { color: #ededed; }
.post-card-title a:hover { opacity: 1; color: #fff; }

.post-card-excerpt {
    font-size: 16px;
    color: rgba(237, 237, 237, 0.6);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    font-size: 14px;
    color: rgba(237, 237, 237, 0.4);
    display: flex;
    gap: 16px;
}

/* Featured card — larger first card */
.post-card-featured {
    grid-column: 1 / -1;
}

.post-card-featured .post-card-title {
    font-size: 32px;
    letter-spacing: -0.02em;
}

.post-card-featured .post-card-excerpt {
    font-size: 18px;
}

/* === SINGLE POST === */
.post-full-header {
    padding: 60px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-full-header-inner {
    max-width: 720px;
}

.post-full-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(237, 237, 237, 0.5);
    margin-bottom: 16px;
}

.post-full-title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 20px;
}

.post-full-excerpt {
    font-size: 20px;
    color: rgba(237, 237, 237, 0.7);
    line-height: 1.5;
    margin-bottom: 20px;
}

.post-full-meta {
    font-size: 15px;
    color: rgba(237, 237, 237, 0.4);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.post-full-author {
    font-weight: 500;
    color: rgba(237, 237, 237, 0.6);
}

/* Feature image */
.post-full-image {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.post-full-image img {
    width: 100%;
    border-radius: 8px;
}

.post-full-image figcaption {
    text-align: center;
    font-size: 13px;
    color: rgba(237, 237, 237, 0.4);
    margin-top: 12px;
}

/* Post content */
.post-full-content {
    max-width: 720px;
    margin: 0 auto 60px;
    padding: 0 24px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(237, 237, 237, 0.85);
}

.post-full-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: #fff;
    letter-spacing: -0.01em;
}

.post-full-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 36px 0 12px;
    color: #fff;
}

.post-full-content p { margin-bottom: 24px; }

.post-full-content a {
    color: #ededed;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(237, 237, 237, 0.3);
}
.post-full-content a:hover {
    text-decoration-color: #ededed;
    opacity: 1;
}

.post-full-content img {
    border-radius: 8px;
    margin: 32px 0;
}

.post-full-content blockquote {
    border-left: 3px solid #343435;
    padding: 16px 24px;
    margin: 32px 0;
    color: rgba(237, 237, 237, 0.7);
    font-style: italic;
    background: rgba(52, 52, 53, 0.3);
    border-radius: 0 8px 8px 0;
}

.post-full-content ul, .post-full-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.post-full-content li { margin-bottom: 10px; }

.post-full-content pre {
    background: #111;
    color: #d4d4d4;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
    font-size: 14px;
    border: 1px solid #343435;
}

.post-full-content code {
    background: rgba(52, 52, 53, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-full-content pre code {
    background: none;
    padding: 0;
}

.post-full-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.post-full-content th, .post-full-content td {
    border: 1px solid #343435;
    padding: 12px 16px;
    text-align: left;
}

.post-full-content th {
    background: rgba(52, 52, 53, 0.5);
    font-weight: 600;
    color: #fff;
}

.post-full-content hr {
    border: none;
    border-top: 1px solid #343435;
    margin: 48px 0;
}

/* Post tags */
.post-tags {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(52, 52, 53, 0.5);
    border: 1px solid #343435;
    border-radius: 100px;
    font-size: 13px;
    color: rgba(237, 237, 237, 0.7);
    transition: all 0.2s;
}

.post-tag:hover {
    background: rgba(52, 52, 53, 0.8);
    color: #fff;
    opacity: 1;
}

/* === RELATED POSTS === */
.related-posts {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 48px 24px 0;
    border-top: 1px solid #343435;
}

.related-posts h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #fff;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card-small .post-card-title { font-size: 18px; }

/* === TAG & AUTHOR HEADERS === */
.tag-header, .author-header {
    padding: 60px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tag-header h1, .author-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.tag-header p, .author-header p {
    color: rgba(237, 237, 237, 0.6);
    margin-top: 8px;
}

.tag-count {
    font-size: 14px;
    color: rgba(237, 237, 237, 0.4);
    margin-top: 8px;
    display: block;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 48px 0;
    font-size: 14px;
    color: rgba(237, 237, 237, 0.4);
}

.pagination a {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #ededed;
    border: 1px solid #343435;
    border-radius: 100px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #343435;
    color: #fff;
    opacity: 1;
}

/* === FOOTER === */
.pccloud-footer {
    background: #111;
    color: rgba(237, 237, 237, 0.6);
    padding: 60px 24px 0;
    border-top: 1px solid #343435;
}

.pccloud-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.pccloud-footer h4 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.pccloud-footer p {
    font-size: 14px;
    line-height: 1.7;
}

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

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

.pccloud-footer ul li a {
    color: rgba(237, 237, 237, 0.6);
    font-size: 14px;
    transition: color 0.2s;
}

.pccloud-footer ul li a:hover {
    color: #fff;
    opacity: 1;
}

.pccloud-footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 24px 0;
    border-top: 1px solid #343435;
    text-align: center;
    font-size: 13px;
    color: rgba(237, 237, 237, 0.3);
}

.pccloud-footer-bottom a { color: rgba(237, 237, 237, 0.4); }
.pccloud-footer-bottom a:hover { color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .post-feed {
        gap: 40px;
    }

    .pccloud-nav-list li a {
        padding: 28px 10px;
        font-size: 14px;
    }

    .blog-hero h1 { font-size: 36px; }
    .post-full-title { font-size: 34px; }
}

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

    .pccloud-nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #1d1d1f;
        flex-direction: column;
        border-top: 1px solid #343435;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

    .pccloud-nav.open .pccloud-nav-list {
        display: flex;
    }

    .pccloud-nav-list li a {
        padding: 16px 24px;
        border-bottom: 1px solid #343435;
    }

    .post-feed {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .blog-hero h1 { font-size: 32px; }
    .post-full-title { font-size: 28px; }

    .pccloud-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero { padding: 40px 16px 24px; }
    .blog-hero h1 { font-size: 28px; }
    .post-full-title { font-size: 24px; }
    .post-full-content { font-size: 16px; }
    .post-card-title { font-size: 20px; }
}

/* === GHOST CARD COMPONENTS === */
.kg-width-wide {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 32px 0;
}

.kg-gallery-row {
    display: flex;
    gap: 8px;
}

.kg-gallery-image img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.kg-bookmark-card {
    background: rgba(52, 52, 53, 0.3);
    border: 1px solid #343435;
    border-radius: 8px;
    margin: 32px 0;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    padding: 24px;
    flex: 1;
}

.kg-bookmark-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #ededed;
}

.kg-bookmark-description {
    font-size: 14px;
    color: rgba(237, 237, 237, 0.6);
}

.kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 8px 8px 0;
}
