/*
Theme Name: Skyblog-theme
Theme URI: 
Author: Van Marty
Description: very cool theme for skyblog nostalgia
*/

/* ===== STYLE GÉNÉRAL ===== */

.site-container {
    display: flex;
    max-width: 1600px;      
    width: 95%;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

.main-content {
    flex: 1;
    padding: 10px;
    order: 2;
    height: max-content;
}

html {
    margin: 0;
    padding: 0;
    background-color: black;
    overflow-x: hidden;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
    background-image: url("img/fondecran.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: 1px !important;
    text-underline-offset: .1em;
}

.left_sidebar {
    width: 200px;
    height: 900px;
    flex-shrink: 0;
    border: solid 1px deeppink;
    padding: 10px;
    order: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: black;
    display: block;
}

.left_sidebar a {
    color: greenyellow;
}

.right_sidebar {
    width: 200px;
    height: 900px;
    flex-shrink: 0;
    border: solid 1px deeppink;
    padding: 10px;
    order: 3;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: black;
}

.logo {
    width: 15px;
}

.main-navigation {
    background-color: #adacacc5;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    flex-wrap: wrap;
}

.main-navigation a {
    padding: 10px 15px;
    color: black;
    font-size: large;
    text-decoration: none;
    display: block;
}

.main-navigation a:hover {
    color: white;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-container form {
    display: flex;
    align-items: center;
    margin: 0;
}

.search-container input[type="search"] {
    padding: 8px 12px;
    background: white;
    color: black;
    border-radius: 10px;
    font-size: 14px;
}

.search-container input[type="submit"] {
    border: none;
    color: black;
    padding: 8px 15px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.skyblog-tabs-buttons {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

.skyblog-tab {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #ccc !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
}

.skyblog-tab-active {
    color: deeppink !important;
    border-bottom: 2px solid deeppink !important;
    margin-bottom: -1px !important;
    background: transparent !important;
}

.skyblog-tab:hover:not(.skyblog-tab-active) {
    color: #fff !important;
    background: transparent !important;
}

.post {
    border: 2px solid deeppink;
    margin-bottom: 20px;
    padding: 10px;
    background-color: black;
    height: max-content;
}

.post-title {
    background-color: deeppink;
    margin-top: -10px;
    margin-right: -10px;
    margin-left: -10px;
    padding: 5px;
}

.post-footer {
    display: flex;
    margin-top: 80px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.post-date {
    color: deeppink;
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.post-thumbnail-wrap img {
    width: auto;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.simple-social-icons {
    text-align: left;
    margin-top: 15px;
}

.simple-social-icons ul li {
    margin: 0 5px 0 0 !important;
}

.post-body .wp-block-media-text {
    color: black;
}

.post-body .wp-block-media-text__content {
    color: black;
}

/* ===== SOLUTION FINALE : Image sans casser l'alignement ===== */

.post-body .wp-block-image img,
.post-body figure.alignleft img,
.post-body .alignleft img {
    max-width: 300px !important;
    height: auto !important;
    width: auto !important;
}

.wp-block-image {
    max-width: fit-content !important;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.post {
    overflow: hidden;
}

.profil-pic-wrapper,
.profil-pic-wrapper2 {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profil-pic,
.profil-pic2 {
    width: 100%;
    height: auto;
    max-width: auto;
    max-height: auto;
    object-fit: cover;
}

.mobile-drawer {
    display: none;
}
/* ===== MENU DÉROULANT DESKTOP ===== */
@media (min-width: 768px) {
    .menu {
        display: none;
    }
}

/* ===== MENU DÉROULANT ET DRAWERS MOBILES ===== */
@media (max-width: 768px) {
    .left_sidebar,
    .right_sidebar {
        display: none !important;
    }

    /* FORCE l'affichage dans les drawers */
    .mobile-drawer .left_sidebar,
    .mobile-drawer .right_sidebar {
        display: block !important;
        height: auto;
        width: 100%;
        border: none;
        background: transparent;
        padding: 0;
    }

    header {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .titre {
        font-size: 35px !important;
        margin: 0;
        flex: 1;
        text-align: center;
    }

    .banniere-header {
        width: 100%;
        height: 75px;
        margin: 0;
        box-sizing: border-box;
        justify-content: space-between !important;
    }

    .banniere {
        width: 100%;
        height: 80px !important;
        object-fit: cover;
        object-position: center center;
    }

    .menu-deroulant {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        width: max-content;
        background-color: #333;
        border: 1px solid deeppink;
        padding: 10px;
        justify-content: left;
        list-style: none;
    }

    .menu-deroulant a {
        color: white;
    }

    .menu-deroulant.active {
        display: block;
        z-index: 1000;
    }

    .mobile-drawer {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        width: 280px;
        background-color: #333;
        border: 1px solid deeppink;
        z-index: 1002;
        overflow-y: auto;
        transition: transform 0.3s ease;
        scroll-behavior: smooth;
        padding: 20px;
        box-sizing: border-box;
    }

    #drawer-left {
        left: 0;
        transform: translateX(-100%);
    }

    #drawer-left.open {
        transform: translateX(0);
    }

    #drawer-right {
        right: 0;
        transform: translateX(100%);
    }

    #drawer-right.open {
        transform: translateX(0);
    }

    #drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    #drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .site-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}