* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    color: #000;
    font-family: "Montserrat", sans-serif;
    padding-top: 106px;
    background: #EDEDED;
}

a {
    text-decoration: none;
    color: inherit;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 150px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.panel-add-container {
    background: #FFFFFF;
    border: 1px solid #D8D8D8;
    border-radius: 30px 30px 0px 0px;
    width: 100%;
    padding: 30px;
    height: 100vh;
}

.post-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.up-panel-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-id {
    font-size: 14px;
    color: #B7B7B7;
    font-weight: 500;
    text-align: right;
    margin-bottom: 5px;
}

.post-info-container {
    display: flex;
    flex-direction: column; 
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.post-info-content {
    display: flex;
    flex-direction: column; 
    gap: 8px;
    width: 100%;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
}

.post-info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0; 
}

.post-info-text {
    font-size: 14px;
    color: #868686;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; 
}

.post-info-num {
    font-weight: 700;
    color: #2D2D2D;
}

.back-btn {
    display: flex;
    align-items: center;
    background: #000;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    transition: 300ms;
}

.back-btn:hover {
    transform: scale(103%);
}

.back-btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.back-btn-text {
    font-family: "Unbounded";
    font-weight: 400;
    font-size: 16px;
    color: #fff;
}

.category-info {
    display: flex;
    align-items: center;
    background: #000;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
}

.category-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.category-text {
    font-family: "Unbounded";
    font-weight: 400;
    font-size: 16px;
    color: #fff;
}

.like-btn {
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 300ms;
    flex-shrink: 0;
}

.like-btn:hover {
    transform: scale(103%);
}

.content-title {
    font-family: "Montserrat";
    font-weight: 700;
    font-size: 24px;
    color: #2D2D2D;
    margin-bottom: 10px;
    max-width: 800px;

    word-wrap: break-word;  
    word-break: break-word;   
    white-space: normal;       
    overflow-wrap: break-word;  

    hyphens: auto;
}

.content-text {
    font-size: 16px;
    color: #868686;
    font-weight: 500;
    max-width: 600px;
    
    word-wrap: break-word;  
    word-break: break-word;   
    white-space: pre-wrap;    
    overflow-wrap: break-word;  

    hyphens: auto;             
}

.btn-container {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-btn {
    background: #000;
    border: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: 300ms;
}

.download-btn:hover {
    transform: scale(103%);
}

.download-btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.download-btn-text {
    font-family: "Unbounded";
    font-weight: 400;
    font-size: 16px;
    color: #fff;
}

.video-btn:hover {
    text-decoration: underline;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    transform: scale(1.05);
}

.file-info {
    margin-top: 20px;
    padding: 15px;
    background: rgb(0, 0, 0);
    border-radius: 10px;
}

.file-name {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
}

.file-size {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

.admin-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.admin-edit-btn,
.admin-delete-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.admin-edit-btn {
    background: #4A90E2;
    color: white;
}

.admin-delete-btn {
    background: #ff4444;
    color: white;
}

.admin-edit-btn:hover,
.admin-delete-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.date-publication-container {
    display: flex;
    flex-direction: column; 
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.date-publication-text {
    font-size: 14px;
    color: #868686;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; 
}
