/*
 * Family Colbert Blog - Static Site Styles
 * Modern redesign
 */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2d3748;
    background-color: #f7fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c53030;
    text-decoration: none;
}

/* Main Wrapper */
.wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: #fff;
}

/* Film Strip Layout for Single Post View */
.filmstrip-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    background-color: #fff;
    min-height: 400px;
}

.filmstrip-nav {
    width: 140px;
    flex-shrink: 0;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filmstrip-nav a {
    display: block;
    text-decoration: none;
}

.filmstrip-thumb {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: none;
    border-radius: 8px;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.filmstrip-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.filmstrip-nav-label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #718096;
    margin-top: 10px;
}

.filmstrip-placeholder {
    width: 110px;
    height: 110px;
    background-color: #edf2f7;
    border: none;
    border-radius: 8px;
}

.filmstrip-placeholder-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background-color: #2d3748;
}

.filmstrip-icon {
    font-size: 48px;
    color: #fff;
    line-height: 1;
}

.filmstrip-main {
    flex: 1;
    max-width: 700px;
    padding: 0 30px;
}

/* Header */
header {
    background-color: #1a202c;
    padding: 20px 30px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.header-text {
    text-align: center;
    flex: 1;
}

.header-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #4a5568;
    flex-shrink: 0;
}

.header-image:hover {
    border-color: #fc8181;
}

.site-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0;
}

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

.site-title a:hover {
    color: #fc8181;
    text-decoration: none;
}

.site-subtitle {
    font-size: 14px;
    color: #a0aec0;
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.site-description {
    font-size: 13px;
    color: #718096;
    margin-top: 10px;
    font-weight: 300;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-style: italic;
}

/* Navigation */
nav {
    background-color: #2d3748;
    padding: 0;
    text-align: center;
}

nav ul {
    list-style: none;
    display: inline-block;
}

nav li {
    display: inline-block;
}

nav a {
    display: block;
    padding: 10px 18px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: #4a5568;
    color: #fff;
    text-decoration: none;
}

nav a.active {
    background-color: #4a5568;
}

/* Content Area / Posts container */
.content {
    padding: 0 40px;
    background-color: #fff;
}

/* Posts */
.post {
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

/* Post Date */
.post-date {
    display: inline-block;
    background-color: #1a202c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.post-date:hover {
    background-color: #c53030;
}

/* Post Content */
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
}

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

.post-content p:last-child {
    margin-bottom: 0;
}

/* Images */
.post-image {
    display: block;
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Photoset Grid */
.photoset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.photoset.cols-2 img {
    width: calc(50% - 4px);
}

.photoset.cols-3 img {
    width: calc(33.333% - 6px);
}

.photoset img {
    height: auto;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.photoset img:hover {
    transform: scale(1.02);
}

/* Video Embeds */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 16px;
    background-color: #1a202c;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Caption */
.post-caption {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
}

.post-caption p {
    margin-bottom: 18px;
}

.post-caption p:last-child {
    margin-bottom: 0;
}

/* Tags */
.post-tags {
    margin-top: 20px;
    font-size: 13px;
    color: #718096;
}

.post-tags a {
    color: #718096;
    margin-right: 10px;
    padding: 4px 10px;
    background-color: #edf2f7;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    color: #fff;
    background-color: #c53030;
}

.post-tags a::before {
    content: "#";
}

/* Pagination */
.pagination {
    padding: 30px 0;
    text-align: center;
    background-color: #fff;
}

.pagination a {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1a202c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin: 0 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #c53030;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination .disabled {
    background-color: #e2e8f0;
    color: #a0aec0;
    cursor: default;
}

.pagination .disabled:hover {
    background-color: #e2e8f0;
    transform: none;
}

.page-info {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #1a202c;
    padding: 30px 40px;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: #a0aec0;
}

footer a:hover {
    color: #fff;
}

/* Archive Page */
.archive-grid {
    padding: 30px 40px;
    background-color: #f7fafc;
}

.archive-year {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a202c;
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #1a202c;
}

.archive-year:first-child {
    margin-top: 0;
}

.archive-year-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-month-section {
    margin-bottom: 16px;
}

.archive-month-title {
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.archive-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.archive-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.archive-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.archive-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: block;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    background-color: #edf2f7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.archive-excerpt {
    margin-top: 12px;
    font-size: 14px;
    color: #4a5568;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-thumb-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2d3748;
}

.archive-thumb-icon {
    font-size: 32px;
    color: #fff;
}

.archive-thumb-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(26, 32, 44, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-top-left-radius: 6px;
}

.archive-thumb:hover .archive-thumb-date {
    background-color: #c53030;
}

/* Responsive adjustments */
@media (max-width: 740px) {
    .content {
        padding: 0 20px;
    }

    header {
        padding: 15px 20px;
    }

    .header-image {
        width: 70px;
        height: 70px;
    }

    .header-content {
        gap: 15px;
    }

    .site-title {
        font-size: 24px;
    }

    .site-subtitle {
        font-size: 12px;
    }

    .site-description {
        font-size: 11px;
    }

    .photoset.cols-3 img {
        width: calc(50% - 3px);
    }

    nav a {
        padding: 10px 8px;
        font-size: 10px;
    }

    .archive-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 740px) {
    .filmstrip-nav {
        width: 90px;
        padding: 0 8px;
    }

    .filmstrip-thumb,
    .filmstrip-placeholder {
        width: 75px;
        height: 75px;
    }

    .filmstrip-nav-label {
        font-size: 9px;
    }

    .archive-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .archive-item {
        padding: 12px;
    }

    .archive-excerpt {
        font-size: 13px;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

@media (max-width: 480px) {
    .mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background-color: #f7fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .mobile-nav a {
        display: inline-block;
        padding: 10px 16px;
        background-color: #1a202c;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 6px;
        text-decoration: none;
    }

    .mobile-nav a:hover {
        background-color: #c53030;
    }

    .mobile-nav-placeholder {
        width: 100px;
    }

    .mobile-nav-page {
        font-size: 12px;
        color: #718096;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .header-image {
        display: none;
    }

    .photoset.cols-2 img,
    .photoset.cols-3 img {
        width: 100%;
    }

    .pagination a {
        display: block;
        margin: 5px 0;
    }

    .filmstrip-nav {
        display: none;
    }

    .filmstrip-container {
        padding: 10px;
    }

    .archive-thumbnails {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .archive-item {
        padding: 16px;
    }

    .archive-excerpt {
        font-size: 14px;
    }
}
