* {
    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;
}

.main-title {
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #2D2D2D;
}

.main-panel {
    width: 100%;
    background: #fff;
    border-radius: 30px 30px 0px 0px;
    margin-top: 20px;
}

.post-panel {
    background: #fff;
    padding: 20px 25px;
    border-bottom: 1px solid #C5C5C5;
    display: flex;
    align-items: flex-start;
    transition: 300ms;
    border-top: none;
    border-left: none;
    border-right: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.post-panel:hover {
    background: #E8E8E8;
}

#first-post {
    border-radius: 30px 30px 0px 0px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #2D2D2D;
    max-width: 700px;

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

    hyphens: auto;
}

.post-text {
    font-size: 16px;
    max-width: 700px;
    color: #868686;
    font-weight: 600;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;

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

    hyphens: auto;
}

.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;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid #EAEAEA;
    min-width: 180px;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.category-filters {
    display: flex;
    gap: 15px;
}

.category-filter {
    padding: 8px 20px;
    background: rgb(0, 0, 0);
    border-radius: 30px;
    color: rgb(255, 255, 255);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-filter:hover {
    background: #1b1b1b;
}

.category-filter.active-filter {
    background: #0077ff;
    color: white;
}

.no-posts {
    font-family: "Unbounded";
    font-weight: 600;
    text-align: center;
    padding: 50px;
    color: #000;
    font-size: 18px;
}

.admin-quick-access {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.admin-quick-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #4A90E2;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.admin-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.search-input {
    width: 100%;
    max-width: 580px;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-field {
    width: 100%;
    padding: 12px 60px 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: all 0.2s;
    background: white;
    font-family: "Unbounded";
    font-size: 12px;
    font-weight: 300px;
    color: #000;
}

.search-field:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    color: white;
    font-size: 14px;
    transition: background 0.2s;
}

.search-button:hover {
    background: #292929;
}

.search-button-icon svg {
    width: 18px;
    height: 18px;
}

.search-field::placeholder {
    color: #999;
    font-size: 12px;
    font-family: "Unbounded"; 
    font-weight: 300;
    opacity: 1;
}

.categories-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-right: 15px;
    margin-bottom: 5px;
}

.post-category-badge.post-category-client {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.post-category-badge.post-category-mod {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.sort-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.sort-label {
    font-size: 14px;
    color: #666;
    font-family: 'Montserrat', sans-serif;
}

.sort-filter {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #666;
    background: #f5f5f5;
    transition: all 0.2s;
}

.sort-filter:hover {
    background: #e0e0e0;
    color: #333;
}

.active-sort {
    background: #000;
    color: white;
}

.active-sort:hover {
    background: #333;
    color: white;
}

.search-stats {
    margin-top: 15px;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Montserrat', sans-serif;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 30px;
}

.no-posts p {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 10px;
}

.no-posts-hint {
    font-size: 14px;
    color: #999;
}

@media (max-width: 768px) {
    .sort-filters {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sort-filter {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .post-category-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}
