/**
 * ───────────────────────────────────────────────────────────────
 * 🌐 luminix.app - Twitter Clone Underground Edition
 * 📁 Fichier : main.css
 * 🧠 Développé par Matthis aka le Goat de luminix
 * 🛠️ Projet personnel sans copyright (pour l'instant)
 * ❌ Tu voles ? Tu pues.
 * 🐙 Code libre, mais t'abuses pas.
 * ───────────────────────────────────────────────────────────────
*/

body {
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at bottom right, rgba(29, 161, 242, 0.4), rgba(29, 161, 242, 0.1), transparent 70%), #121316;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 5px;
}

body::-webkit-scrollbar-track {
    background: rgba(24,26,27,1);
}

body::-webkit-scrollbar-thumb {
    background-color: #25292b;
    border-radius: 0px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: rgb(29, 161, 242);
}

.profile-menu {
    position: absolute;
    right: 25px;
    top: 14px;
    display: inline-block;
}

#openPostPopup {
    position: absolute;
    right: 80px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 15px;
    background-color: #1da1f2;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #1da1f2;
    cursor: pointer;
    color: #fff;
    display: inline-block;
}

#openPostPopup:hover {
    background-color: #1da0f294;
    color: #fff;
    border: 1px solid #1da0f294;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 53px;
    margin-left: -139px;
    border: 1px solid #555;
    background-color: #16181c;
    padding: 10px;
    border-radius: 0px 0px 10px 10px;
    font-weight: bold;
    width: 157px;
}

.profile-dropdown a {
    text-align: left;
    font-size: 15px;
    color: #8899a6;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 5px;
    border: none;
}

.profile-dropdown a:hover {
    background-color: #25292b;
    color: #fff;
}

.profile-dropdown.active {
    display: block;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #555;
    z-index: 100;
    background-color: transparent;
    backdrop-filter: blur(0px);
}

header h1 {
    position: absolute;
    top: -9px;
    left: 19px;
    border-radius: 10px;
    padding: 3px;
    color: #8899a6;
    cursor: pointer;
}

header h1:hover {
    color: #fff;
}

header a {
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    background-color: #16181c;
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    color: #fff;
}

header a:hover {
    background-color: #25292b;
}

header button {
    color: red;
}
header {
    backdrop-filter: blur(20px);
    height: 35px;
}
main {
    position: relative;
    top: 70px;
    padding: 20px;
    padding-bottom: 50px;
    border-radius: 5px;
    margin-left: 340px;
    margin-right: 375px;
}


h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.return-btn {
    position: absolute;
    right: 10px;
    top: 17px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 15px;
    background-color: #16181c;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    color: #8899a6;
    display: inline-block;
}

.return-btn:hover {
    color: #fff;
    background-color: #25292b;
}

.sidebar-left {
    position: fixed;
    top: 67px;
    width: 200px;
    padding: 10px;
    height: calc(100% - 170px);
    overflow-y: auto;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
}

.sidebar-left::-webkit-scrollbar {
    width: 6px;
}

.sidebar-left::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-left::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
    border: 1px solid transparent;
}

.sidebar-left:hover::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.sidebar-left {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.sidebar-left h3 {
    text-align: center;
    margin-top: 10px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    color: #8899a6;
    cursor: pointer;
    border-left: 1px solid transparent;
}

.sidebar-user:hover {
    background-color: #25292b65;
    border-radius: 10px;
}

.sidebar-user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    gap: 10px;
}

.sidebar-user-link img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-user button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

.sidebar-user span {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 2px;
}

.sidebar-user-link  {
    text-decoration: none;
}

.follow-btn {
    padding: 5px 10px;
    font-size: 0.85em;
    border-radius: 12px;
    border: none;
    background-color: #1da1f2;
    color: #8899a6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.follow-btn:hover {
    color: #0d8ce0;
}

.follow-btn.followed {
    background-color: #444;
    cursor: default;
}

.unfollow-btn {
    padding: 5px 10px;
    font-size: 0.85em;
    border-radius: 10px;
    border: none;
    border: 1px solid #2f3336;
    background-color: transparent;
    color: #8899a6;
    cursor: pointer;
}

.unfollow-btn:hover {
    color: #0d8ce0;
}

.badge {
    position: relative;
    top: 0px;
    position: relative;
    font-size: 0.8em;
}

.badge-blue {
    color: #1da1f2;
}

.badge-gold {
    color: gold;
}

.badge-luminix {
    color: #ff0055;
    font-weight: bold;
}

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #25292b;
    color: #8899a6;
    padding: 6px 10px;
    font-size: 15px;
    border-radius: 6px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
}

.level-box {
    position: fixed;
    bottom: 0px;
    left: 0px;
    background: transparent;
    color: #fff;
    padding: 12px;
    /* border-radius: 8px; */
    font-size: 14px;
    border-right: 1px solid #555;
    width: 196px;
    z-index: 1000;
}

.level-box small {
    color: #8899a6;
    font-weight: bold;
    font-size: 15px;
}

.level-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 15px;
}

.progress-bar {
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    border-radius: 2px;
    margin-bottom: 5px;
}

.progress-fill {
    height: 10px;
    background: linear-gradient(90deg, #c5f8ff, #1da0f2);
    width: 0%;
    transition: width 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.animated-bar {
    transition: width 0.8s ease;
}

.levelinfo-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #16181c;
    color: #fff;
    padding: 20px;
    border: 1px solid #2f3336;
    border-radius: 8px;
    z-index: 10001;
    max-width: 500px;
    width: 90%;
}

.levelinfo-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
}

.level-title button {
    background-color: transparent;
    border: none;
    color: #8899a6;
    cursor: pointer;
    font-size: 15px;
    float: right;
    font-weight: bold;
}

.level-title button:hover {
    color: #fff;
}

.levelinfo-content h2, .levelinfo-content h3 {
    margin-top: 0;
}

.levelinfo-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.levelinfo-content li {
    font-weight: bold;
    margin: 6px 0;
}

.levelinfo-content small {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #8899a6;
}

.levelinfo-panel .close {
    float: right;
    cursor: pointer;
    background-color: transparent;
    color: #8899a6;
    border: 1px solid #555;
    border-radius: 10px;
    padding: 6px 12px;
    margin-left: 2px;
    margin-top: 1px;
}

.levelinfo-panel .close:hover {
    color: #fff;
    border: 1px solid #fff;
}

.reposted-box {
    border: 1px solid transparent;
    background: transparent;
    cursor: default!important;
    margin-top: 12px;
    border-radius: 6px;
    opacity: 0.95;
    margin-bottom: -65px !important;
}

.content-post-text-repost {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 450;
    margin: 10px 0;
    font-size: 15px;
    margin-bottom: -30px;
    line-height: 1.4;
    color: #fff;
    width: 100%;
    margin-top: 45px;
    word-break: break-word;
    white-space: normal;
}

.nameandppforpost-repost {
    position: absolute;
    width: 97.1%;
    height: 40px;
    background-color: #25292b;
    border-radius: 20px 5px 5px 20px;
}

.nameandppforpost-repost strong {
    color: #fff;
    position: absolute;
    top: 9px;
    margin-left: 10px;
    font-size: 20px;
}

.repost-content-limit {
    margin-top: 60px;
    max-height: 5.5em;
    position: relative;
    line-height: 1.3em;
    min-width: 100%!important;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.repost-content-limit.collapsed {
    max-height: 120px; /* Hauteur fermée */
}

.repost-content-limit.expanded {
    max-height: 1000px; /* Tu peux ajuster si besoin */
}

.mini-repost-info {
    font-size: 15px;
    font-weight: bold;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    margin-left: -10px;
}

.image-grid-repost:has(img:nth-child(1)):not(:has(img:nth-child(2))) {
    grid-template-columns: 1fr;
    
}

.image-grid-repost:has(img:nth-child(2)):not(:has(img:nth-child(3))) {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 250px;
}

.image-grid-repost:has(img:nth-child(3)):not(:has(img:nth-child(4))) {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.image-grid-repost:has(img:nth-child(3)):not(:has(img:nth-child(4))) img:nth-child(1) {
    grid-row: 1 / span 2;
}

.image-grid-repost:has(img:nth-child(3)):not(:has(img:nth-child(4))) img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.image-grid-repost:has(img:nth-child(3)):not(:has(img:nth-child(4))) img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.image-grid-repost:has(img:nth-child(4)) {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
}

.image-grid-repost {
    display: grid;
    gap: 5px;
    margin-top: 35px;
    margin-bottom: 10px;
}

.image-grid-repost img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.image-grid-repost-fade {
    transition: all 0.3s ease;
}

.repost-section {
    position: absolute;
    right: 70px;
}

.repost-section button {
    font-family: "Segoe UI", Roboto, Arial, sans-serif!important;
    font-weight: 500!important;
    background-color: transparent;
    color: #8899a6!important;
    border: none!important;
    padding: 6px 10px;
    height: 33px;
    font-size: 13px!important;
    border-radius: 10px!important;
    cursor: pointer;
    font-weight: bold;
    margin-right: -80px;
}

.repost-section button:hover {
    background-color: transparent!important;
    color: #fff!important;
}

.repost-section button span {
    position: relative;
    top: -1px;
}

img.avatar-user-list {
    object-fit: cover;
}

.comment-toggle {
    font-family: "Segoe UI", Roboto, Arial, sans-serif!important;
    font-weight: 500!important;
    border: none!important;
    color: #8899a6!important;
    border: 1px solid #25292b !important;
    cursor: pointer;
    font-size: 13px!important;
    border-radius: 10px !important;
}

.comment {
    border: 1px solid #25292b!important;
}

.comment-toggle:hover {
    color: #fff!important;
}

.comment-section {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 1px solid #1da1f2;
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
}

.comment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment .comment-content {
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    right: 3px;
    position: relative;
}

.comment strong {
    font-family: 'Roboto Mono', monospace!important;
    font-weight: bold!important;
    font-size: 15px!important;
    color: #1da1f2!important;
    position: relative!important;
    padding: 0px!important;
}

.avatar-comment-section {
    width: 30px;
    max-width: 30px;
    min-width: 30px;
    height: 30px;
    max-height: 30px;
    min-height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

img.avatar-comment-section {
    margin-top: 10px !important;
}

.comment-form {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    padding-left: 0px;
}

.comment-form input.comment-input {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 500;
    flex: 1;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid transparent;
    background: #25292b;
    color: #fff;
}

.comment-form input.comment-input::placeholder {
    color: #8899a6;
}

.comment-form input:focus {
    border: 1px solid #1da1f2;
    outline: #1da1f2;
}

.comment-form button.send-comment-btn {
    background: #1da1f2;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.comment-form button.send-comment-btn:hover {
    background: #1da1f294;
}

span.reply-btn-btn {
    color: #1da1f294;
    cursor: pointer;
    font-size: 11px;
    margin-top: 4px;
}

span.reply-btn-btn:hover {
    text-decoration: underline;
    color: #1da1f2;
}

span.supp-btn-btn {
    font-family: "Segoe UI", Roboto, Arial, sans-serif!important;
    font-weight: 500!important;
    color: #1da0f294!important;
    font-size: 11px!important;
    cursor: pointer!important;
    background-color: transparent!important;
    border: none!important;
    right: 10px!important;
    position: relative!important;
}

span.supp-btn-btn:hover {
    color: rgba(255, 0, 0, 0.45)!important;
    text-decoration: underline!important;
}

button.delete-comment-btn {
    background-color: transparent;
    border: none;
}

.reply-form {
    display: flex;
    gap: 5px;
}

.reply-form input.reply-input {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 500;
    flex: 1;
    padding: 5px;
    background: #25292b;
    color: #fff;
    border: 1px solid #25292b;
    border-radius: 5px;
}

.reply-form input.reply-input::placeholder {
    color: #8899a6;
}

.reply-form input.reply-input:focus {
    outline: #1da1f2;
    border: 1px solid #1da1f2;
}

.reply-form button.reply-send {
    background: #146191;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}

.reply-form button.reply-send:hover {
    background-color: #1da1f2;
}

.comment-form-wrapper.sticky {
    position: sticky;
    top: 75px;
    background: transparent;
    z-index: 99;
}

.comment-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
}

.send-comment-btn {
    background-color: #1da0f2;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.send-comment-btn:hover {
    background-color: #0d8ddb;
}

.reply-to {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 4px;
    display: inline-block;
}

.loading-comments {
    font-weight: bold;
    font-size: 15px;
    color: #8899a6;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
}

.no-comment {
    font-weight: bold;
    font-size: 15px;
    color: #8899a6;
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
}

strong.no-comment-name {
    color: #fff!important;
}

.emoji-selector {
    display: flex;
    background-color: #25292b;
    z-index: 1;
    font-size: 0px;
    border-radius: 10px;
    padding: 3px;
    border: 1px solid #1da1f2;
    margin-left: -10px;
    gap: 10px;
    flex-wrap: wrap;
}

.emoji-option {
    cursor: pointer;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.emoji-option:hover {
    transform: scale(1.4);
}

.emoji-confetti {
    position: fixed;
    top: -20px;
    font-size: 24px;
    animation: fall 2s ease-in forwards;
    pointer-events: none;
    z-index: 9999;
}
@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.emoji-notif {
    position: fixed;
    bottom: 30px;
    font-size: 15px;
    font-weight: bold;
    left: 50%;
    transform: translateX(-50%);
    background: #25292b;
    border: 1px solid #1da1f2;
    color: #8899a6;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: fadeInOut 3s ease;
}
.emoji-notif img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
@keyframes fadeInOut {
    0% { opacity: 0; bottom: 10px; }
    10%, 90% { opacity: 1; bottom: 30px; }
    100% { opacity: 0; bottom: 50px; }
}

.emoji-react-btn {
    font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 500 !important;
    border-radius: 10px!important;
    font-size: 13px !important;
    padding: 7px 15px !important;
    border: 1px solid #25292b!important;
    color: #8899a6!important;
}

.emoji-react-btn:hover {
    background-color: #25292b !important;
    color: #fff !important;
}

.emoji-react-btn i {
    transition: transform 0.3s ease;
}

.emoji-react-btn:hover i {
    transform: rotate(225deg);
}

.emoji-react-btn.active i {
    transform: rotate(225deg);
}

.emoji-react-btn.active {
    background-color: #25292b !important;
    color: #fff !important;
}