/*
Theme Name: Copywriter Portfolio
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A clean, minimal portfolio theme designed specifically for copywriters. Features elegant typography, smooth animations, and a focus on showcasing written work.
Version: 1.0.3
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: copywriter-portfolio
Tags: portfolio, minimal, clean, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --charcoal: #1a1a1a;
    --stone: #4a4a4a;
    --sand: #f5f3f0;
    --cream: #fefdfb;
    --accent: #2a5a4a;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header.site-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    animation: fadeInDown 0.8s ease-out;
}

nav.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.site-logo a,
.site-logo .custom-logo-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--charcoal);
    text-decoration: none;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

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

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--stone);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: var(--stone);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.8;
}

/* Work Categories */
.categories {
    padding: 80px 0;
    background: var(--sand);
    animation: fadeIn 1s ease-out 0.4s both;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 60px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.08);
}

.category-card {
    background: var(--cream);
    padding: 50px 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 90, 74, 0.03), transparent);
    transition: left 0.6s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    background: #fff;
}

.category-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}

.category-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.category-card p {
    font-size: 15px;
    color: var(--stone);
    line-height: 1.7;
    font-weight: 300;
}

/* Portfolio Samples */
.portfolio {
    padding: 120px 0;
    animation: fadeIn 1s ease-out 0.6s both;
}

.work-item {
    margin-bottom: 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.work-item:nth-child(even) {
    direction: rtl;
}

.work-item:nth-child(even) > * {
    direction: ltr;
}

.work-content {
    animation: slideInLeft 0.8s ease-out;
}

.work-item:nth-child(even) .work-content {
    animation: slideInRight 0.8s ease-out;
}

.work-meta {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.work-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.3;
}

.work-description {
    color: var(--stone);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.work-image {
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    animation: fadeInScale 0.8s ease-out;
    background: var(--sand);
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.work-image:hover img {
    transform: scale(1.03);
}

.image-placeholder {
    background: white;
    padding: 80px 40px;
    text-align: center;
    color: var(--stone);
    font-size: 15px;
    font-style: italic;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.view-project:hover {
    gap: 12px;
}

.view-project::after {
    content: '→';
    transition: transform 0.3s ease;
}

.view-project:hover::after {
    transform: translateX(4px);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--sand);
    animation: fadeIn 1s ease-out 0.8s both;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.3;
}

.about p {
    font-size: 17px;
    color: var(--stone);
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.cta-button:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(42, 90, 74, 0.2);
}

/* Footer */
footer.site-footer {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.social-links li {
    list-style: none;
}

.social-links a {
    color: var(--stone);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

footer p {
    color: var(--stone);
    font-size: 13px;
    font-weight: 300;
}

/* Blog Archive Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 80px 0;
}

.blog-post-card {
    background: white;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-post-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.blog-post-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
}

.blog-post-card h2 a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h2 a:hover {
    color: var(--accent);
}

.post-meta {
    font-size: 13px;
    color: var(--stone);
    margin-bottom: 15px;
}

.post-excerpt {
    color: var(--stone);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 15px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 54px;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
}

.single-post .entry-header {
    margin-bottom: 40px;
}

.single-post .entry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 54px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.single-post .post-thumbnail {
    margin-bottom: 40px;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post .entry-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--charcoal);
}

.single-post .entry-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    margin: 50px 0 20px;
}

.single-post .entry-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin: 40px 0 15px;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    color: var(--stone);
}

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

.single-post .entry-content a:hover {
    text-decoration: none;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 20px 0 20px 30px;
    line-height: 1.9;
}

.project-link {
    text-align: center;
    margin-top: 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .page-numbers {
    padding: 10px 15px;
    color: var(--charcoal);
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
}

.comment-body {
    padding: 20px;
    background: var(--sand);
}

.comment-author {
    font-weight: 500;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 13px;
    color: var(--stone);
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    nav.main-navigation {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .nav-menu {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 40px 0 80px;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .work-item:nth-child(even) {
        direction: ltr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .single-post {
        padding: 40px 24px;
    }

    .single-post .entry-title {
        font-size: 36px;
    }
}
