@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

:root{
    --main-white: #fff;
    --main-black: #1D1D1F;
    --main-gray: #6E6E73;
    --more-gray: #dadae0;

    --font-size-big: clamp(36px, 5.14vw, 5.14vw);
    --font-size-medium: clamp(26px, 1.81vw, 1.81vw);
    --font-size-regular: 26px;
    --font-size-small: 16px;
}

body.dark-mode {
    --main-white: #1D1D1F;
    --main-black: #fff;
    --more-gray: #6E6E73;
    --main-gray: #dadae0;
}

body{
    background-color: var(--main-white);
    color: var(--main-black);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.spacinglg{
    height: 100px;
}

header{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
}

header .header-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50%;
}

header .header-content ul{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

header .header-content a{
    text-decoration: none;
    color: var(--main-black);
    font-size: var(--font-size-small);
}

header .header-content ul li{
    list-style: none;
}

.blog-links{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.blog-links .blog{
    width: 100%;
    transition: 0.5s font-size;
    text-decoration: none;
    color: var(--main-black);
    &:hover{
        font-size: 1.1rem;
    }
}

.blog-title{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 10em;
}


.blog-title a{
    display: flex;
    justify-content: center;
}

.blog-title h1{
    font-size: var(--font-size-regular);
}

.hero{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 5%;
}

.paragraph{
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    padding-left: 45%;
    padding-right: 25%;
    padding-bottom: 10%;
}


.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--main-gray);
    border-bottom: 1px solid var(--main-black);
    margin-bottom: 50px;
    padding: 10px 50px;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-tags {
    display: flex;
    gap: 5px;
}

.tag {
    background: rgba(110, 110, 115, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    text-transform: uppercase;
}

.sort-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sort-btn {
    padding: 5px 10px;
    border: 1px solid var(--main-gray);
    background: var(--main-white);
    color: var(--main-black);
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--main-black);
    color: var(--main-white);
}

.no-results {
    text-align: center;
    color: var(--main-gray);
    padding: 40px 0;
    display: none;
}

.filter-summary {
    text-align: center;
    color: var(--main-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--main-black);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.blog {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.profile{
    height: 100%;
    width: 100%;
    padding-left: 25%;
    padding-bottom: 3%;
}

.profile h2{
    font-weight: 400;
}

.paragraph {
    line-height: 1.8;
    color: var(--main-black);
}

.paragraph p {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.paragraph h1 {
    font-size: 2.75rem;
    padding-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

.paragraph h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--main-black);
}

.paragraph h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--main-black);
}

code {
    font-family: 'Courier New', Monaco, monospace;
    line-height: 1.5;
    background-color: #f5f5f5;
    padding: 0.75em 1em;
    letter-spacing: -0.03em;
    display: block;
    border-radius: 6px;
    margin: 1rem 0;
    overflow-x: auto;
    font-size: 0.95rem;
    width: 100%;
}

table{
    width: 100%;
}

table tr{
    text-align: left;
}


.code-mini {
    font-family: 'Courier New', Monaco, monospace;
    line-height: 1.5;
    background-color: #f5f5f5;
    padding: 0.1em 0.3em;
    letter-spacing: -0.03em;
    border-radius: 3px;
}

.quote{
    font-size: 0.7rem !important;
    border-left: 3px solid var(--main-black);
    padding-left: 10px;
}

.paragraph img {
    margin-bottom: 10px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.paragraph .image-section {
    margin: 80px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.paragraph .image-section small {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

.paragraph ul li,
.paragraph ol li {
    font-size: 1.1rem;
    font-weight: 400;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}



.copyright{
    width: 100%;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright-inner{
    width: 100%;
    padding-left: 65%;
    font-size: var(--font-size-small);
}

footer{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30vh;
    color: var(--main-black);
    position: relative;
}

footer .footer-content{
    width: 100%;
    display: flex;
    align-items: center;
}

footer .footer-content p a{
    color: var(--main-black);
}

footer .footer-content p:nth-child(1){
    position: absolute;
    padding-left: 25%;
}

footer .footer-content p:nth-child(2){
    position: absolute;
    padding-left: 45%;
    z-index: 99;
}

footer .footer-content p:nth-child(3){
    position: absolute;
    padding-left: 65%;
}

.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#searchInput {
    padding: 7px 10px;
    border-radius: 0.3125rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    outline: none;
    transition: border, padding .2s ease-in-out;
    &&:focus{
        border: 1px solid rgba(0, 0, 0, 0.75);
        padding: 7px 14px;
    }
}

#tagFilter{
    padding: 7px 10px;
    background: var(--main-white);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.3125rem;
    cursor: pointer;
    outline: none;
}

@media (max-width: 768px) {
    header{
        position: relative;
        height: 200px;

    }
    header .header-content {
        flex-direction: column;
        width: 90%;
        gap: 10px;
    }

    header .header-content ul {
        flex-direction: column;
        gap: 10px;
    }

    .blog-title {
        padding: 0 2em;
        text-align: center;
        flex-direction: column;
    }

    .hero {
        padding-top: 20%;
        padding-left: 1em;
        padding-right: 1em;
    }

    .paragraph {
        padding-left: 1.5em;
        padding-right: 1.5em;
        padding-bottom: 15%;
    }

    .paragraph h1 {
        font-size: 2rem;
    }

    .paragraph h2 {
        font-size: 1.5rem;
    }

    .paragraph h3 {
        font-size: 1.25rem;
    }

    .paragraph p {
        font-size: 1rem;
    }

    .paragraph ul li,
    .paragraph ol li {
        font-size: 1rem;
        margin-left: 1rem;
    }

    .profile {
        padding-left: 1.5em;
        padding-bottom: 5%;
    }

    .copyright-inner {
        padding-left: 0;
        text-align: center;
        font-size: 0.9rem;
    }

    footer {
        flex-direction: column;
        height: auto;
        padding: 2em 1em;
        text-align: center;
    }

    footer .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    footer .footer-content p {
        position: static !important;
        padding: 0 !important;
    }

    .blog-links .blog:hover {
        font-size: 1.2rem;
    }
}
