/*
Theme Name: Outsource In Albania
Theme URI: https://outsourceinalbania.com
Description: Custom blog theme matching the main website design.
Version: 1.0
Author: Outsource In Albania
*/

:root {
    --primary: hsl(68 100% 50%);
    --primary-foreground: #141414;
    --background: #ffffff;
    --foreground: #141414;
    --card: #f7f7f7;
    --card-foreground: #141414;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --border: #e5e5e5;
    --surface-dark: #141414;
}

.dark {
    --background: #141414;
    --foreground: #fafafa;
    --card: #1c1c1c;
    --card-foreground: #fafafa;
    --muted: #262626;
    --muted-foreground: #a3a3a3;
    --border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--background);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

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

.site-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--foreground);
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.2s;
}

.nav-cta:hover {
    color: var(--primary);
}

.nav-cta .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
}

.mobile-toggle {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    display: block;
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.mobile-menu a:hover {
    color: var(--foreground);
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }
    .nav-cta {
        display: flex;
    }
    .mobile-toggle {
        display: none;
    }
}

/* Blog listing */
.blog-hero {
    padding: 7rem 0 2rem;
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.blog-hero p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 600px;
}

.posts-grid {
    padding: 2rem 0 4rem;
}

.posts-grid .grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .posts-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Post card */
.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-card-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--muted);
}

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

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

.post-card-body {
    padding: 1.25rem;
}

.post-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

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

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.post-card-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Single post */
.single-hero {
    padding: 7rem 0 2rem;
}

.single-hero .post-meta {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.single-hero .post-meta .category-tag {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.single-hero h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.single-featured {
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--muted);
}

.single-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    letter-spacing: -0.02em;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--muted-foreground);
}

.post-content ul, .post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--muted-foreground);
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted-foreground);
}

.post-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content code {
    background: var(--muted);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.post-content pre {
    background: var(--surface-dark);
    color: #fafafa;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
}

.pagination .current {
    background: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.footer-logo .dot {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--foreground);
}

/* Back to main site */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--foreground);
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 4rem 0;
    color: var(--muted-foreground);
}
