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

body {
    background: linear-gradient(135deg, #F4F2EF 0%, #F8F6F3 50%, #F0EDE8 100%);
    background-attachment: fixed;
    font-family: "Kreon", serif;
    line-height: 1.6;
    min-height: 100vh;
    scroll-behavior: smooth;
}

#footer {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 40px;
}

/* Header */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: "Mogra", system-ui;
    color: #3b342d;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);  
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.page-title .minis {
    font-size: 92px;
    background: linear-gradient(135deg, #3b342d 0%, #5a4c3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 8px;
    margin: 0 5px;
    font-weight: 700;
}

.page-title .by {
    font-size: 40px;
    color: #0d1a33;
    font-weight: 700;
    font-style: italic;
    transform: rotate(-8deg);
    margin: 0 8px;
    position: relative;
    top: -12px;
    background: linear-gradient(45deg, #0d1a33 0%, #1a2d4a 30%, #0066ff 60%, #1a2d4a 80%, #0d1a33 100%);
    background-clip: text;
    opacity: 1;
}

.page-title .brand {
    font-size: 48px;
    color: #0d1a33;
    font-weight: 600;
    font-style: italic;
    margin: 0 8px;
    position: relative;
    transform: rotate(3deg) skewX(-5deg);
    transition: all 0.3s ease;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #0d1a33 0%, #1a2d4a 30%, #0066ff 60%, #1a2d4a 80%, #0d1a33 100%);
    background-clip: text;

}

.page-title .brand:hover {
    transform: rotate(0deg) skewX(0deg) scale(1.05);    
    background-clip: text;
}

.page-title .brand a {
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

/* Main Container - Updated Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Introduction Section - Now Compact Sidebar */
.intro-section {
    background: linear-gradient(135deg, #E8D9CD 0%, #F2E6DA 50%, #E8D9CD 100%);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 20px;
    width: 140%;
    margin-left: -80px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.intro-section h2 {
    color: #3b342d;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-section p {
    color: #3b342d;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.05);
}

/* Content Section - Now Takes Full Width */
.content-section {
    width: 100%;
    max-width: 800px;
    /* Limit max width for readability */
}

/* Mini Post Container - Simplified */
.mini-post-container {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: smoothFadeIn 0.4s ease-out forwards;
    width: 110%;
}

/* Date Tab - Simplified */
.date-tab {
    background: linear-gradient(135deg, #E8D9CD 0%, #F2E6DA 50%, #E8D9CD 100%);
    color: #3b342d;
    padding: 10px 20px;
    border-radius: 15px 15px 0 0;
    font-size: 18px;
    font-weight: 600;
    position: absolute;
    top: -35px;
    right: 20px;
    z-index: 10;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mini Post Card - Simplified */
.mini-post {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 243, 0.9) 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(232, 217, 205, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.mini-post-title {
    color: #3b342d;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.mini-post-content {
    color: #3b342d;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.mini-post-content h1,
.mini-post-content h2,
.mini-post-content h3 {
    color: #3b342d;
    margin: 15px 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.mini-post-content p {
    margin-bottom: 15px;
    font-size: 21px;
    line-height: 1.7;
}

.mini-post-content ul,
.mini-post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.mini-post-content blockquote {
    border-left: 4px solid #E8D9CD;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #5a4c3e;
    background: rgba(232, 217, 205, 0.1);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.mini-post-content code {
    background-color: rgba(232, 217, 205, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
}

.mini-post-content pre {
    background-color: rgba(232, 217, 205, 0.4);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.mini-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Loading placeholder - Simplified */
.content-loading-placeholder {
    min-height: 60px;
}

.placeholder-line {
    height: 14px;
    background: linear-gradient(90deg, rgba(232, 217, 205, 0.2) 0%, rgba(232, 217, 205, 0.4) 50%, rgba(232, 217, 205, 0.2) 100%);
    border-radius: 7px;
    margin-bottom: 10px;
    animation: shimmer 1.5s ease-in-out infinite;
}

.placeholder-line.short {
    width: 70%;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Meta section - Simplified */
.mini-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.time-tag {
    background: linear-gradient(135deg, #3b342d 0%, #5a4c3e 100%);
    color: #F4F2EF;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tag {
    background: linear-gradient(135deg, #E8D9CD 0%, #F2E6DA 100%);
    color: #3b342d;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Same date post styling */
.mini-post-container.same-date {
    margin-top: -10px;
}

.mini-post-container.same-date .date-tab {
    display: none !important;
}

/* Divider - Simplified */
.post-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(232, 217, 205, 0.4) 50%, transparent 100%);
    margin: 30px 0;
}

.post-divider.reduced {
    margin: 20px 0;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 40px;
    margin: 20px 0;
}

.loading-spinner {
    border: 3px solid rgba(232, 217, 205, 0.3);
    border-top: 3px solid #3b342d;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.load-more-btn {
    background: linear-gradient(135deg, #3b342d 0%, #5a4c3e 100%);
    color: #F4F2EF;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-family: "Kreon", serif;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #5a4c3e 0%, #6b5d50 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.load-more-btn:disabled {
    background: linear-gradient(135deg, #8b7355 0%, #9d8469 100%);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8b7355;
}

.no-results h3 {
    color: #3b342d;
    margin-bottom: 10px;
    font-size: 24px;
}

/* Animations - Simplified */
@keyframes smoothFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-post-container:nth-child(even) {
    animation-delay: 0.05s;
}

.mini-post-container:nth-child(odd) {
    animation-delay: 0.1s;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(232, 217, 205, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #E8D9CD;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b342d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        max-width: 95%;
        gap: 40px;
        grid-template-columns: 250px 1fr;
    }

    .intro-section {
        width: 130%;
        margin-left: -60px;
    }
}

@media (max-width: 968px) {
    .main-container {
        margin-top: -20px;
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 90%;
    }

    .intro-section {
        position: relative;
        margin-bottom: 30px;
        width: 100%;
        margin-left: 0;
    }

    .content-section {
        max-width: 100%;
    }

    .mini-post-container {
        width: 100%;
    }

    .date-tab {
        left: 20px;
        right: auto;
        top: -30px;
    }

    .page-title {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .page-title .by {
        transform: rotate(-5deg);
        top: -6px;
    }

    .page-title .brand {
        transform: rotate(2deg) skewX(-3deg);
        margin-top: 8px;
    }
}

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

    .header-container {
        margin-bottom: 30px;
    }

    .page-title .minis {
        font-size: 65px;
    }

    .page-title .by {
        font-size: 24px;
    }

    .page-title .brand {
        font-size: 32px;
    }

    .intro-section {
        padding: 20px;
    }

    .intro-section h2 {
        font-size: 20px;
    }

    .intro-section p {
        font-size: 15px;
    }

    .mini-post {
        padding: 25px;
    }

    .mini-post-title {
        font-size: 22px;
    }

    .mini-post-content,
    .mini-post-content p {
        font-size: 16px;
    }

    .date-tab {
        font-size: 16px;
        padding: 8px 15px;
        top: -30px;
    }

    .main-container {
        gap: 25px;
    }

    .mini-post-container {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header-container {
        margin-bottom: 20px;
    }

    .page-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.1;
        padding: 10px 15px 5px;
        gap: 6px;
    }

    .page-title .minis {
        font-size: 62px;
        margin-bottom: 2px;
    }

    .page-title .by {
        font-size: 22px;
        transform: rotate(-6deg);
        top: -6px;
        order: 2;
    }

    .page-title .brand {
        font-size: 26px;
        transform: rotate(2deg) skewX(-3deg);
        margin: 0;
        order: 3;
    }

    .mini-post {
        padding: 20px;
        border-radius: 12px;
    }

    .intro-section {
        padding: 22px;
        border-radius: 15px;
        margin-bottom: 25px;
    }

    .intro-section h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .intro-section p {
        font-size: 16px;
    }

    .date-tab {
        font-size: 14px;
        padding: 6px 12px;
        top: -25px;
        border-radius: 12px 12px 0 0;
    }

    .mini-post-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .mini-post-content,
    .mini-post-content p {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .time-tag,
    .tag {
        font-size: 14px;
        padding: 4px 10px;
    }

    .load-more-btn {
        padding: 12px 25px;
        font-size: 16px;
    }

    .loading-container {
        padding: 30px 15px;
    }

    .post-divider {
        margin: 25px 0;
    }

    .mini-post-container.same-date {
        margin-bottom: 20px;
    }
}

/* Performance optimizations */
.mini-post,
.intro-section,
.date-tab,
.time-tag,
.tag,
.load-more-btn {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}