/* News Detail Styles - Moderne, minimalistisk design */

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
}

.news-detail-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e0d0;
}

.news-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #5a4a2f;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-detail-content {
    font-size: 13px;
    line-height: 1.2;
    color: #222;
    margin-bottom: 16px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 13px;
    color: #8b7355;
    padding-top: 12px;
    border-top: 1px solid #e8e0d0;
}

.news-detail-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-detail-author a {
    color: #6d5c3f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.news-detail-author a:hover {
    color: #5a4a2f;
}

.news-detail-date {
    font-weight: 500;
}

.news-detail-category {
    background: #f5f1e8;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #d4c4a8;
    font-size: 11px;
    font-weight: 500;
    color: #6d5c3f;
}

.news-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e0d0;
}

.news-detail-action {
    color: #6d5c3f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.news-detail-action:hover {
    background: #f5f1e8;
    border-color: #d4c4a8;
    color: #5a4a2f;
}

.news-detail-action.edit {
    color: #8b7355;
    font-style: italic;
    cursor: pointer;
}

.news-detail-action.delete {
    color: #d32f2f;
}

.news-detail-action.delete:hover {
    background: #ffebee;
    border-color: #d32f2f;
    color: #b71c1c;
}

/* Comments Section */
.comments-section {
    margin-top: 20px;
}

.comments-header {
    font-size: 16px;
    font-weight: 500;
    color: #6d5c3f;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d8c2a6;
}

.comment-item {
    background: #d8c2a6;
    border: 1px solid #d8c2a6;
    border-radius: 3px;
    padding: 8px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.comment-item:hover {
    border-color: #d4c4a8;
    box-shadow: none;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author a {
    color: #6d5c3f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.15s ease;
}

.comment-date {
    font-size: 11px;
    color: #8b7355;
    font-weight: 500;
}

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

.comment-action {
    color: #8b7355;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.comment-action:hover {
    background: #f5f1e8;
    color: #6d5c3f;
}

.comment-action.delete {
    color: #d32f2f;
}

.comment-action.delete:hover {
    background: #ffebee;
    color: #b71c1c;
}

.comment-content {
    font-size: 13px;
    line-height: 1.3;
    color: #6d5c3f;
    margin-bottom: 6px;
}

/* Create Comment Form */
.create-comment-section {
    background: #d8c2a6;
    border: none;
    border-top: 1px solid #d8bd87;
    border-radius: 1px;
    padding: 16px 12px 12px 12px;
    margin-top: 18px;
}

.create-comment-header {
    font-size: 15px;
    font-weight: 500;
    color: #8b7355;
    margin-bottom: 8px;
}

.create-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: #8b7355;
}

.form-input {
    padding: 6px 8px;
    border: 1px solid #d4c4a8;
    border-radius: 4px;
    background: #e0d3c1;
    color: #222;
    font-size: 13px;
    transition: border-color 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: #c4b393;
    box-shadow: none;
}

.form-textarea {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.form-submit {
    background: #c4b393;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.form-submit:hover {
    background: #b8a583;
    transform: none;
}

.form-submit:active {
    transform: none;
}

.form-input:read-only {
    background: #b6b5b2;
    cursor: not-allowed;
    color: #6d5c3f;
    opacity: 0.75;
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 20px 10px;
    color: #8b7355;
    font-style: italic;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-detail-container {
        padding: 16px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-detail-actions {
        gap: 12px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .news-detail-container {
        padding: 12px;
    }
    
    .news-detail-title {
        font-size: 20px;
    }
    
    .comment-item {
        padding: 12px;
    }
    
    .create-comment-section {
        padding: 16px;
    }
} 

.news-admin-dropdown {
    position: relative;
    display: inline-block;
}

.news-admin-toggle {
    background: none;
    border: none;
    color: #8b7355;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
    font-weight: bold;
    line-height: 1;
}

.news-admin-toggle:hover {
    background: #f5f1e8;
    color: #6d5c3f;
}

.news-admin-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #f8f4ef;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    box-shadow: none;
    padding: 4px 0;
}

.news-admin-dropdown.active .news-admin-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-admin-link {
    display: block;
    padding: 7px 16px;
    color: #6d5c3f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 0;
}

.news-admin-link:hover {
    background: #f5f1e8;
    color: #5a4a2f;
}

.news-admin-link.delete-link {
    color: #d32f2f;
}

.news-admin-link.delete-link:hover {
    background: #ffebee;
    color: #b71c1c;
} 

@media (max-width: 600px) {
    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .news-admin-dropdown {
        align-self: flex-end;
    }
} 