body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

header {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    color: #000;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
    font-family: inherit;
    font-size: 0.9rem;
}

.search-form button {
    padding: 8px 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
}

.search-form button:hover {
    background-color: #333;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Nav Panel */
.mobile-nav-panel {
    display: none;
    background: #fff;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-bottom: 0px solid #eee;
}

.mobile-nav-panel.active {
    max-height: 500px;
    border-bottom-width: 1px;
}

.mobile-nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    background-color: #CC0001;
    box-shadow: 0 2px 4px rgba(204, 0, 1, 0.1);
}

.social-btn:hover {
    background-color: #a30001;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(204, 0, 1, 0.2);
}

.site-title {
    color: #CC0001;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

main {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.post-list li {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

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

.post-list h3 {
    margin: 0 0 10px 0;
}

.post-list h3 a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.post-list h3 a:hover {
    text-decoration: underline;
}

time {
    color: #888;
    font-size: 0.85rem;
    font-weight: normal;
}

.full-post h1 {
    margin-bottom: 10px;
    color: #000;
    font-weight: 600;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.share-button:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.share-button svg {
    flex-shrink: 0;
}

.content {
    margin-top: 30px;
    font-size: 1.1rem;
}

.content p {
    margin-bottom: 1.5rem;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-source {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #666;
}

.post-source a {
    color: #CC0001;
    text-decoration: none;
    word-break: break-all;
}

.post-source a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

footer p {
    margin: 0;
}

footer a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

footer a:hover {
    color: #000;
    text-decoration: underline;
}

.excerpt {
    color: #555;
    font-size: 0.95rem;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.highlight {
    color: #CC0001;
    background: transparent;
    font-weight: inherit;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 15px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav-panel {
        display: block;
    }

    header {
        padding: 15px;
    }

    .site-logo {
        height: 40px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    main {
        padding: 20px;
    }

    .full-post h1, .contact-container h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .content, .contact-container p {
        font-size: 1.05rem;
    }

    .form-group input, .form-group textarea {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }

    .contact-methods h3 {
        font-size: 1.2rem;
    }

    .contact-methods ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    footer {
        font-size: 0.8rem;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pag-link {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}

.pag-link:not(.disabled):hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.pag-link.disabled {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

.pag-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

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

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.skeleton.loaded img {
    opacity: 1;
}

.skeleton.loaded {
    animation: none;
    background: transparent;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 200 / 140;
    position: relative;
}

.source-favicon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.source-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.post-thumbnail > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.featured-image {
    margin-bottom: 20px;
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.featured-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.featured-image.skeleton {
    border-radius: 8px;
}


@media (max-width: 600px) {
    .post-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-thumbnail {
        width: 100%;
    }
    
    .post-thumbnail > a > img {
        height: 200px;
    }
}

.post-thumbnail.placeholder {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    height: 140px;
}

.post-thumbnail.placeholder img {
    width: 60px;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .post-thumbnail.placeholder {
        height: 200px;
    }
}

/* Contact Form Styles */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

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

.submit-btn {
    padding: 12px;
    background-color: #CC0001;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #a30001;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-methods {
    margin: 25px 0;
    padding: 20px;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
}

.contact-methods h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #000;
}

.contact-methods ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.contact-methods li {
    font-size: 0.95rem;
}

.contact-methods a {
    color: #CC0001;
    text-decoration: none;
}

.contact-methods a:hover {
    text-decoration: underline;
}
