* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #333;
    line-height: 1.6;
}

main {
    background: white;
    text-align: justify;
}

/* Header Info */
.info {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

    .info h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        color: #222;
    }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

    .meta time {
        color: #444;
    }

    .meta span {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .meta i {
        font-size: 1rem;
    }

/* Post Content */
.main-article {
    overflow-x: hidden;
    word-break: break-word;
}

.post-content {
    margin-bottom: 2rem;
    margin-inline: 15%;
}

    .post-content p {
        margin-bottom: 0.1rem;
        font-size: 1.1rem;
        color: #444;
    }

    .post-content strong {
        color: #222;
        font-weight: 600;
    }

    .post-content h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
        color: #222;
    }

    .post-content ul,
    .post-content ol {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
    }

    .post-content li {
        margin-bottom: 0.5rem;
    }

    .post-content img {
        height: auto !important;
        width: 100% !important;
    }

/* Blockquote */
blockquote {
    border-left: 4px solid #0066cc;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8fafc;
    font-style: italic;
}

    blockquote p {
        margin-bottom: 0.5rem;
        color: #555;
    }

    blockquote cite {
        display: block;
        text-align: right;
        font-style: normal;
        color: #666;
        font-size: 0.9rem;
    }

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

    .tags p {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.8rem;
    }

    .tags strong {
        color: #444;
    }

    .tags a {
        text-decoration: none;
        padding: 0.3rem 0.8rem;
        background: #e6f2ff;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }

        .tags a:hover {
            background: #d0e4ff;
        }



    .author-card .content {
        display: flex;
        gap: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-inline: 15%;
    }

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    max-width: 80px;
    max-height: 80px;
}

.author-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 80px;
}

    .author-info h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--dark-color);
    }

   
    .author-info p {
        color: var(--secondary-color);
        font-size: 14px;
    }

.site-footer {
    margin-inline: 15%;
}
/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem;
    }

    .info h1 {
        font-size: 1.7rem;
    }

    .meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .post-content {
        margin-inline: 10%;
    }

    .post-content p {
        font-size: 1rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }
    .author-card {
        margin: 14px 0px;
        padding: 0px 12px;
        max-width: 100%;
    }

        .author-card .content {
            margin-inline: 10%;
        }
}

@media (max-width: 480px) {

    .container {
        max-width : 100%;
    }

    .post-content {
        margin-inline: 0%;
    }

    .info h1 {
        font-size: 1.5rem;
    }

    .meta {
        gap: 0.8rem;
        row-gap: 0.5rem;
    }

    .tags p {
        gap: 0.5rem;
    }

    .tags a {
        padding: 0.2rem 0.6rem;
        font-size: 0.85rem;
    }

    .author-card .content {
        gap: 15px;
        margin-inline: 0%;
    }

    .author-image {
        width: 75px;
        height: 75px;
        max-width: 75px;
        max-height: 75px;
    }

    .author-info h3 {
        font-size: 1.1rem;
    }

    .author-info {
        gap: 0px;
        height: 75px;
    }

    .author-info p {
        font-size: 14px;
    }

    .site-footer {
         margin-inline: 0%;
    }


}

/* Dark Mode Styles */

.dark-mode main {
    background-color: #121212;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .info h1,
.dark-mode .post-content strong,
.dark-mode .post-content h3 {
    color: #f8f9fa;
}

.dark-mode .post-content p,
.dark-mode .meta,
.dark-mode .meta time {
    color: #b0b0b0;
}

.dark-mode blockquote {
    background-color: #2d2d2d;
    border-left-color: #4dabf7;
}

.dark-mode blockquote p {
    color: #d0d0d0;
}

.dark-mode .tags a {
    background-color: #2d3a4d;
    color: #a5d8ff;
}

.dark-mode .tags a:hover {
    background-color: #3a4d6b;
}

/* SVG Icons in Dark Mode */
.dark-mode .theme-toggle svg,
.dark-mode .search svg {
    stroke: #e0e0e0;
}

.dark-mode .meta-icon {
    fill: #b0b0b0;
}

.dark-mode .author-card {
    background-color: #121212;
    color: white;
}

.dark-mode .post-content a {
    color: #9ecaf7;
}
