/* Index_main */

.newsInsert {
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    color: #8d6e63;
}

.newsInsert textarea {
    min-height: 70px;
    background: rgb(33, 33, 33);
    /* border: 1px solid white; */
    border-radius: 6px;
    padding: 8px;
    color: #eee;
    resize: vertical;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    width: 750px;
}

.newsTitle {
    justify-content: center;
    align-items: center;
    color: #8d6e63;
    text-align: center;
}

.newsHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.news-wrapper {
    background: rgb(33, 33, 33);
    border: 1px solid white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1200px;
    margin: 20px auto;
    color: white;
}

.newsHeaderContent {
    gap: 20px;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.news-date {
    color: white;
}

.news-wrapper {
    position: relative;
}

.news-title {
    color: white;
}

.news-content {
    color: #8d6e63;
}

.success-msg {
    color: #049c1d;
}

.avatar-small img {
    z-index: 10;
}

.more-btn {
    cursor: pointer;
}

.more-options {
    position: absolute;
    top: 10px;
    right: 10px;
}

.dropdown-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #8d6e63;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    right: 0;
    top: 25px;
    padding: 8px;
    z-index: 20;
    color: #8d6e63;
    background: rgb(33, 33, 33);
    border: none;
}

.dropdown-content.show {
    display: flex;
}

.dropdown-content button {
    display: block;
    width: auto;
    white-space: nowrap;
}

.smallbtn {
    position: relative;
    padding: 7px 20px;
    background-color: #8d6e63;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    user-select: none;
    color: white;
    display: inline-block;
    width: auto;
}

.smallbtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    transform: skewX(-20deg);
}

.smallbtn:hover::before {
    left: 100%;
}

.smallbtn:hover {
    background-color: #b18b7d; 
    transform: scale(1.05);
}

.deleteConfirm {
    position: relative;
    padding: 15px 40px;
    background-color: #e60909;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    user-select: none;
    color: white;
}

.deleteConfirm::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    transform: skewX(-20deg);
}

.deleteConfirm:hover::before {
    left: 100%;
}

.deleteConfirm:hover {
    background-color: #995959; 
    transform: scale(1.05);
}

.deleteesc {
    position: relative;
    padding: 15px 40px;
    background-color: #049c1d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    user-select: none;
    color: white;
}

.deleteesc::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    transform: skewX(-20deg);
}

.deleteesc:hover::before {
    left: 100%;
}

.deleteesc:hover {
    background-color: #599959; 
    transform: scale(1.05);
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 1200px) {
    .newsInsert textarea {
        width: 100%;
        max-width: 800px;
    }

    .news-wrapper {
        margin: 15px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .newsInsert {
        flex-direction: column;
        gap: 8px;
    }

    .newsInsert textarea {
        width: 100%;
        max-width: 100%;
        min-height: 60px;
        font-size: 13px;
    }

    .news-wrapper {
        max-width: 100%;
        margin: 12px;
        padding: 12px;
        font-size: 14px;
    }

    .news-header {
        gap: 8px;
        flex-wrap: wrap;
    }

    .dropdown-btn {
        font-size: 18px;
    }

    .smallbtn {
        padding: 6px 15px;
        font-size: 12px;
    }

    .deleteConfirm,
    .deleteesc {
        padding: 10px 20px;
        font-size: 12px;
    }

    .newsTitle,
    .newsHeader {
        font-size: 14px;
    }

    .more-options {
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .newsInsert textarea {
        width: 100%;
        font-size: 12px;
        padding: 6px;
    }

    .news-wrapper {
        max-width: 100%;
        margin: 10px 0;
        padding: 10px;
        font-size: 12px;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-content {
        font-size: 12px;
    }

    .news-date {
        font-size: 11px;
    }

    .dropdown-btn {
        font-size: 16px;
    }

    .smallbtn,
    .deleteConfirm,
    .deleteesc {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
    }

    .more-options {
        top: 5px;
        right: 5px;
    }
}