/* Coffee with Claude - Stylesheet
   Filename: style.css
   Path: /Library/WebServer/Documents/CwC/css/style.css
   Design: Clean, typography-focused, readable */

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background: #fafafa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 40px 0 30px;
    margin-bottom: 60px;
}

.site-title {
    font-size: 2.5em;
    font-weight: normal;
    margin-bottom: 10px;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-title a:hover {
    color: #34495e;
}

.site-tagline {
    font-size: 1.1em;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
}

.site-nav {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.site-nav a {
    color: #2c3e50;
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-nav a:hover {
    color: #3498db;
}

/* Main Content */
.site-main {
    min-height: 60vh;
}

/* Post Listings */
.post-list {
    list-style: none;
}

.post-item {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    order: 2; /* Move image to right */
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to square */
    display: block;
    border-radius: 4px;
}

.post-item-content {
    flex: 1;
    min-width: 0;
    order: 1; /* Content on left */
}

.post-title {
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 10px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #3498db;
}

.post-meta {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
}

.post-excerpt {
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95em;
}

.read-more:hover {
    text-decoration: underline;
}

/* Tags */
.post-meta-separator {
    margin: 0 8px;
    color: #bbb;
}

.post-tags {
    display: inline-block;
}

.post-tag {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    text-decoration: none;
    margin-right: 5px;
    font-style: normal;
    transition: background 0.2s ease;
}

.post-tag:hover {
    background: #3498db;
    color: #fff;
}

/* Single Post */
.post-hero-image {
    width: 100%;
    max-width: 1600px;
    height: auto;
    margin: 0 auto 40px;
    display: block;
}

.post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.post-content {
    background: #fff;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.post-content h2 {
    font-size: 1.6em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: normal;
}

.post-content h3 {
    font-size: 1.3em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: normal;
}

.post-content blockquote {
    border-left: 3px solid #3498db;
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #555;
}

/* Pages */
.page-content {
    background: #fff;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-content p {
    margin-bottom: 1.5em;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: Georgia, serif;
    font-size: 1em;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-family: Georgia, serif;
}

.btn:hover {
    background: #2980b9;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer a {
    color: #3498db;
    text-decoration: none;
}

.site-footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.footer-tagline {
    font-style: italic;
    color: #95a5a6;
    font-size: 0.9em;
}

/* Citations */
.post-citations {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.post-citations h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: normal;
}

.citations-list {
    list-style: none;
    counter-reset: citation-counter;
    padding-left: 0;
}

.citation-item {
    counter-increment: citation-counter;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.citation-item::before {
    content: "[" counter(citation-counter) "]";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #3498db;
}

.citation-link {
    color: #3498db;
    text-decoration: none;
    margin-left: 5px;
    font-size: 0.9em;
}

.citation-link:hover {
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.2s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.post-content img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.post-content img:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .site-title {
        font-size: 2em;
    }
    
    .post-title {
        font-size: 1.3em;
    }
    
    .post-content,
    .page-content,
    .contact-form {
        padding: 20px;
    }
    
    .post-item-inner {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 200px;
        height: 200px;
        order: 1; /* Image on top for mobile */
    }
    
    .post-item-content {
        order: 2;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
}