/* imports */
body {
    background: linear-gradient(135deg, rgb(0, 9, 41), rgb(10, 20, 70));
    color: rgb(200, 215, 220);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;

}



/* header*/
header {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);

    display: flex;
    align-items: center;

    justify-content: flex-start;
    gap: 20px;
    padding: 10px 15px;
    position: fixed;
    width: 100%;

    z-index: 1000;


}

/*logo */
.logo {
    width: 50px;
    height: 50px;
    display: block;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*links mobile */
header #Links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;

    background: rgba(20, 20, 30, 0.95);

    max-height: 0;
    overflow: hidden;

    opacity: 0;
    pointer-events: none;

    transition: max-height 0.3s ease, opacity 0.2s ease;
    z-index: 1001;
}
/* open mobile menu */
header #Links.open {
    max-height: 500px;
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

/* links */
header #Links a {
    display: block;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: 0.2s cubic-bezier(.33, -0.02, .44, 1.01);
    border: 2px;
    border-style: solid;
    border-color: yellow;

}

header #Links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/*Hambuger*/
header .icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: black;
    width: 40px;
    cursor: pointer;
    border-style: none;
}

/* bars */
header .icon span {
    height: 3px;
    background: rgb(255, 255, 255);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* X animation */
header .icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

header .icon.active span:nth-child(2) {
    opacity: 0;
}

header .icon.active span:nth-child(3) {
    transform: rotate(-49deg) translate(5px, -5px);
}

/* Desktop */
@media (min-width: 769px) {

    /* show links inline */
    header #Links {
        display: flex;
        flex-direction: row;
        gap: 15px;

        position: static;
        max-height: none;
        height: 100%;
        opacity: 1;
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }


    header #Links a {
        display: inline-block;
        padding: 10px 12px;
        background-color: transparent;
        color: white;
        border-color: rgb(15, 14, 80);
    }

    /*  hamburger */
    header .icon {
        display: none;
    }

}

/* header end*/
/* List*/
.content li::marker {
    color: rgb(90, 120, 200);
    font-size: 22px;
}

/* Content */
.content {
    margin: 50px;
}

.content a {
    color: #5865F2;
    transition: color 0.2s ease
}

.content a:hover {
    color: #638ba2;
}

/* Post card */
.post_card {
    flex: 1 2 210px;
    /* key fix */
    max-width: 300px;

    display: flex;
    flex-direction: column;
    background: linear-gradient(212deg, rgba(150, 216, 235, 1) 0%, rgba(58, 73, 92, 1) 100%);
    border-radius: 3px;
    align-items: stretch;
    transition: all 0.1s ease;
    text-align: center;
    padding-top: 10px;
}

.post_card:hover {
    transform: scale(1.01) translateY(-5px);
}

.post_card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: blur(0.5px);
    margin-bottom: 10px;
    transition: all 0.1s ease;
}

.post_card:hover img {
    transform: scale(0.97) translateY(5px);
}

.post_card h3 {
    margin-bottom: 5px;
    margin-top: 0px;
}

.post_card p {

    margin: 5px 0;
    flex: 1;
    word-wrap: break-word;
    margin: 10px;
}

.post_card a {
    margin: 10px;
    color: rgb(200, 200, 255);
    background: rgb(0, 9, 41, 0.5);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 20px;
}

.post_card .links {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

/* Post card container */
.posts {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    align-items: flex-start;
    background-color: rgb(0, 9, 41);
    padding: 20px;
}

.post_view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    color: #eaeaea;
}

/* links */
.post_view a {
    color: rgb(168, 170, 236);
    text-decoration: none;
}

.post_view a:hover {
    text-decoration: underline;
}

/* divider */
.post_view hr {
    width: 100%;
    max-width: 900px;
    opacity: 0.4;
    margin: 15px 0;
}

/* TOP SECTION */
.post_view .text_image {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    align-items: flex-start;

    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* text block */
.post_view .text_image .text_content {
    flex: 1;
    min-width: 0;
}

/* title */
.post_view h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* paragraph */
.post_view p {
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
}

/* image */
.post_view .text_image img {
    width: 100%;
    max-width: 360px;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* standalone link under post */
.post_view>a {
    margin-top: 10px;
    display: inline-block;
}

/* SOCIAL SECTION */
.post_view .social_links {
    max-width: 900px;
    width: 100%;
    margin-top: 15px;
}

.post_view .social_links ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    justify-content: flex-start;
}

/* social button */
.sl {
    background-color: rgb(0, 9, 41);
    border: 1px solid #5865F2;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sl:hover {
    transform: translateY(-2px);
    background-color: rgb(0, 12, 60);
}

.sl a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* platform colors */
.sl.github a {
    color: #333;
}

.sl.youtube a {
    color: #ff0000;
}

.sl.discord a {
    color: #5865F2;
}

.sl.twitter a {
    color: #000;
}

.sl span {
    color: white;
    font-size: 0.9rem;
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */
@media (max-width: 768px) {

    .post_view {
        padding: 15px 12px;
    }

    .post_view .text_image {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .post_view h1 {
        font-size: 1.5rem;
    }

    .post_view p {
        font-size: 0.95rem;
    }

    .post_view .text_image img {
        max-width: 100%;
        max-height: 220px;
        border-radius: 10px;
    }

    .post_view hr {
        width: 100%;
    }

    .post_view .social_links ul {
        justify-content: center;
    }
}

.post_link_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 15px;
    padding: 10px 14px;

    background: linear-gradient(135deg, rgb(0, 9, 41), rgb(10, 20, 80));
    border: 1px solid #5865F2;
    border-radius: 999px;

    color: #fff;
    text-decoration: none;
    font-weight: 500;

    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.post_link_btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgb(10, 20, 80), rgb(20, 30, 120));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.post_link_btn:active {
    transform: translateY(0px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}