/* Reset i podstawowe style */
.provido-forum-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.provido-forum-container {
    color: #333;
    line-height: 1.5;
}

.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Główna zawartość */
.main-content {
    display: flex;
    gap: 25px;
}

.posts {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Posty */
.post {
    background-color: #D5D4D6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #e0e0e0;
    position: relative;
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: flex-start;
}

.post-category {
    background-color: #8026ff;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.post-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffffff;
    padding: 10px;
    border: 1px solid #5a5e60;
    border-radius: 3px;
    background-color: #3a3d3f;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-excerpt {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a0a0a0;
    border-top: 1px solid #5a5e60;
    padding-top: 12px;
    align-items: center;
}

.post-comments {
    cursor: pointer;
    user-select: none;
}

.post-comments:hover {
    color: #8026ff;
}

.post-actions {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.edit-post, .delete-post {
    background-color: #8026ff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
}

.delete-post {
    background-color: #ff4444;
}

.edit-post:hover {
    background-color: #6a1fd9;
}

.delete-post:hover {
    background-color: #cc0000;
}

.edit-form {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #3a3d3f;
    border-radius: 5px;
    border: 1px solid #5a5e60;
}

.edit-form textarea {
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.cancel-edit {
    background-color: #666;
}

.cancel-edit:hover {
    background-color: #555;
}

/* Komentarze */
.comments-section {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #5a5e60;
    display: none;
}

.comment {
    padding: 12px;
    margin-bottom: 12px;
    background-color: #3a3d3f;
    border-radius: 5px;
    color: #e0e0e0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.comment-author {
    font-weight: bold;
    color: #8026ff;
}

.comment-date {
    color: #a0a0a0;
}

.comment-content {
    color: #d0d0d0;
    font-size: 13px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.add-comment-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #000000;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #5a5e60;
    border-radius: 3px;
    font-size: 13px;
    background-color: #3a3d3f;
    color: #e0e0e0;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #8026ff;
    outline: none;
}

.form-textarea {
    min-height: 70px;
    resize: vertical;
}

.submit-button {
    background-color: #8026ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
}

.submit-button:hover {
    background-color: #6a1fd9;
}

/* Sidebar */
.sidebar-widget {
    background-color: #D5D4D6;
    border-radius: 5px;
    padding: 18px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #e0e0e0;
}

.sidebar-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid #5a5e60;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    padding: 8px 0;
    border-bottom: 1px solid #5a5e60;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list li a {
    text-decoration: none;
    color: #b0b0b0;
    display: block;
    padding: 4px 0;
    font-size: 13px;
    cursor: pointer;
}

.categories-list li a:hover {
    color: #8026ff;
}

.categories-list li a.active {
    color: #8026ff;
    font-weight: bold;
}

/* Formularz dodawania posta */
.add-post-form {
    background-color: #D5D4D6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #e0e0e0;
}

.add-post-form h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffffff;
}

.add-post-form .form-label {
    color: #000000;
}

.add-post-form .form-input,
.add-post-form .form-textarea,
.add-post-form .form-select {
    background-color: #3a3d3f;
    color: #e0e0e0;
    border: 1px solid #5a5e60;
}

.add-post-form .form-input:focus,
.add-post-form .form-textarea:focus,
.add-post-form .form-select:focus {
    border-color: #8026ff;
}

.login-info {
    background-color: #8026ff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.login-required {
    background-color: #ff4444;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.debug-info {
    background-color: #ff9900;
    color: black;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    display: none;
}

/* Responsywność */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .provido-forum-container {
        margin-top: 100px;
    }

    .post-actions {
        flex-direction: column;
    }
}